-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
118 lines (111 loc) · 3.13 KB
/
tailwind.config.js
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
/* eslint-disable no-undef */
const {fontFamily} = require('tailwindcss/defaultTheme')
const primaryColors = {
50: 'var(--color-primary-50)',
100: 'var(--color-primary-100)',
300: 'var(--color-primary-300)',
500: 'var(--color-primary-500)',
700: 'var(--color-primary-700)',
900: 'var(--color-primary-900)',
}
const primaryInvertedColors = {
50: 'var(--color-primary-inverted-50)',
100: 'var(--color-primary-inverted-100)',
300: 'var(--color-primary-inverted-300)',
500: 'var(--color-primary-inverted-500)',
700: 'var(--color-primary-inverted-700)',
900: 'var(--color-primary-inverted-900)',
}
const primaryForegroundColors = {
50: 'var(--color-primary-foreground-50)',
100: 'var(--color-primary-foreground-100)',
300: 'var(--color-primary-foreground-300)',
500: 'var(--color-primary-foreground-500)',
700: 'var(--color-primary-foreground-700)',
900: 'var(--color-primary-foreground-900)',
}
const backgroundColors = {
50: 'var(--color-background-50)',
100: 'var(--color-background-100)',
300: 'var(--color-background-300)',
500: 'var(--color-background-500)',
700: 'var(--color-background-700)',
900: 'var(--color-background-900)',
'50-backdrop': 'var(--color-background-50-backdrop)',
'100-backdrop': 'var(--color-background-100-backdrop)',
'500-backdrop': 'var(--color-background-500-backdrop)',
'900-backdrop': 'var(--color-background-900-backdrop)',
darken: 'var(--color-background-darken)',
}
const foregroundColors = {
50: 'var(--color-foreground-50)',
100: 'var(--color-foreground-100)',
300: 'var(--color-foreground-300)',
500: 'var(--color-foreground-500)',
700: 'var(--color-foreground-700)',
900: 'var(--color-foreground-900)',
}
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./contexts/**/*.{js,ts,jsx,tsx}',
'./styles/**/*.{sass,scss,css}',
],
theme: {
fontFamily: {
sans: ['var(--font-inter)', ...fontFamily.sans],
serif: ['var(--font-noto)', ...fontFamily.serif],
mono: ['var(--font-roboto-mono)', ...fontFamily.mono],
},
colors: {
current: 'currentColor',
},
extend: {
screens: {
xs: '400px',
},
textColor: {
...foregroundColors,
primary: primaryColors,
on: {
primary: primaryInvertedColors,
},
fg: {
primary: primaryForegroundColors,
},
},
backgroundColor: {
...backgroundColors,
primary: primaryColors,
fg: {
...foregroundColors,
primary: primaryColors,
},
},
borderColor: {
background: backgroundColors,
foreground: foregroundColors,
primary: primaryColors,
bg: {
primary: primaryColors,
},
},
ringColor: {
background: backgroundColors,
foreground: foregroundColors,
primary: primaryColors,
},
padding: {
'1/3': '33.333%',
'1/2': '50%',
'2/3': '66.666%',
full: '100%',
},
spacing: {
'3/10': '30%',
},
},
},
plugins: [require('@tailwindcss/aspect-ratio')],
}