-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
98 lines (96 loc) · 2.5 KB
/
tailwind.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
typography: {
DEFAULT: {
css: {
'maxWidth': '640px',
'blockquote p:first-of-type::before': {
content: "''",
},
'.w-640':{
maxWidth: '640px'
},
'blockquote' :{
'border-left': '0.25rem solid #fcd34d',
},
'li': {
color: 'white',
},
'li::marker' :{
'color': 'white',
},
'a':{
'color': '#0072F5',
textDecoration: 'wavy underline',
'&:hover': {
'color': '#fcd34d',
}
},
'img': {
margin: '24px 0px',
borderRadius: "0.5rem",
},
'h1':{
color: '#fbbf24',
},
'h3':{
color: '#fde68a',
},
'h2':{
margin: '32px 0 12px',
fontSize: '28px',
color: '#fcd34d',
},
'code::before': {
content: "''",
},
'code::after': {
content: "''",
},
'code': {
'padding': '3px',
'font-weight': '400',
'backgroundColor': '#262626',
'borderRadius': "0.5rem",
'color': '#f87171'
},
'ul': {
},
'small': {
color: '#d4d4d4',
},
'p': {
color: '#FFFFFF',
'&>code':{ // 인용문 안에 있는 code 색 변경
color: '#f87171',
}
},
'cite':{
color : 'grey',
'font-size': '0.85rem',
'display': 'block',
'text-align': 'center',
'overflow-x': 'auto', // 모바일 버전에서 url이 너무 길 경우 대비
}
}
}
}
},
},
plugins: [
require('@tailwindcss/typography'),
],
}
export default config