-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
tailwind.config.ts
139 lines (137 loc) · 4.04 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import { Config } from 'tailwindcss';
import defaultTheme from 'tailwindcss/defaultTheme';
import typography from '@tailwindcss/typography';
const config: Config = {
darkMode: ['class'],
content: [
'./pages/**/*.tsx',
'./src/components/**/*.tsx',
'./src/layouts/**/*.tsx',
'./src/**/*.tsx'
],
theme: {
extend: {
colors: {
'blue-opaque': 'rgb(13 42 148 / 18%)',
gray: {
'0': '#fff',
'100': '#fafafa',
'200': '#eaeaea',
'300': '#999999',
'400': '#d4d4d4',
'500': '#666666',
'600': '#444444',
'700': '#333333',
'800': '#222222',
'900': '#111010'
},
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))'
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))'
},
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))'
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))'
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))'
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))'
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
'3': 'hsl(var(--chart-3))',
'4': 'hsl(var(--chart-4))',
'5': 'hsl(var(--chart-5))'
}
},
fontFamily: {
sans: ['var(--font-graphik)', ...defaultTheme.fontFamily.sans]
},
typography: (theme: (arg0: string) => any) => ({
DEFAULT: {
css: {
color: theme('colors.gray.700'),
a: {
color: theme('colors.blue.500'),
'&:hover': {
color: theme('colors.blue.700')
},
code: { color: theme('colors.blue.400') }
},
'h2,h3,h4': {
'scroll-margin-top': defaultTheme.spacing[32]
},
thead: {
borderBottomColor: theme('colors.gray.200')
},
code: { color: theme('colors.pink.500') },
'blockquote p:first-of-type::before': false,
'blockquote p:last-of-type::after': false
}
}
}),
animation: {
'fade-in-down': 'fade-in-down 0.5s ease-out',
'fade-in-up': 'fade-in-up 0.5s ease-out',
'fade-in-left': 'fade-in-left 0.5s ease-out',
'fade-in-right': 'fade-in-right 0.5s ease-out',
'fade-in-down-fast': 'fade-in-down 0.25s ease-out',
'fade-in-up-fast': 'fade-in-up 0.25s ease-out',
'fade-in-left-fast': 'fade-in-left 0.25s ease-out',
'fade-in-right-fast': 'fade-in-right 0.25s ease-out',
'fade-in-down-slow': 'fade-in-down 1s ease-out',
'fade-in-up-slow': 'fade-in-up 1s ease-out',
'fade-in-left-slow': 'fade-in-left 1s ease-out',
'fade-in-right-slow': 'fade-in-right 1s ease-out'
},
variants: {
extend: {
animation: ['hover', 'focus']
}
}
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px'
},
fontSize: {
xs: '0.75rem',
sm: '0.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '4rem'
}
},
plugins: [typography, require('tailwindcss-animate')]
};
export default config;