-
Notifications
You must be signed in to change notification settings - Fork 6
/
tailwind.config.ts
68 lines (62 loc) · 1.73 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
import type { Config } from 'tailwindcss'
import defaultTheme from 'tailwindcss/defaultTheme'
import colors from 'tailwindcss/colors'
const borderColorDefault = 'rgb(31 41 55 / 0.1)' // border-gray-800/10
const accentColor700 = 'rgb(42, 90, 203)' // custom accent color
export const breakpoints = {
'sm': 640,
'md': 768,
'lg': 1104,
}
export default <Partial<Config>>{
future: {
hoverOnlyWhenSupported: true,
},
theme: {
container: {
center: true,
padding: '1.5rem',
},
screens: {
'sm': `${breakpoints.sm}px`,
'md': `${breakpoints.md}px`,
'lg': `${breakpoints.lg}px`,
},
extend: {
fontFamily: {
display: ['PlusJakartaSans', ...defaultTheme.fontFamily.sans],
},
colors: {
accent: {
700: accentColor700,
},
secondary: {
DEFAULT: 'rgb(212, 178, 255)',
},
gray: {
body: colors.gray[700],
},
frost: {
DEFAULT: `rgb(255 255 255 / 0.25)`, // white/25
200: `rgb(255 255 255 / 0.75)`, // white/75
},
},
borderColor: {
DEFAULT: borderColorDefault,
},
borderRadius: {
'box': '1rem',
},
boxShadow: {
'border': `0 0 0 1px ${borderColorDefault}`,
'border-accent-700': `0 0 0 1px ${accentColor700}`,
'border-and-shadow-sm': `0 0 0 1px ${borderColorDefault}, ${defaultTheme.boxShadow['sm']}`,
'border-and-shadow-lg': `0 0 0 1px ${borderColorDefault}, ${defaultTheme.boxShadow['lg']}`,
'border-and-inner': `0 0 0 1px ${borderColorDefault}, ${defaultTheme.boxShadow.inner}`,
'border-2': `0 0 0 2px ${borderColorDefault}`,
'border-2-and-shadow-lg': `0 0 0 2px ${borderColorDefault}, ${defaultTheme.boxShadow['lg']}`,
'border-2-and-shadow-xl': `0 0 0 2px ${borderColorDefault}, ${defaultTheme.boxShadow['xl']}`,
},
},
},
}