This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
110 lines (105 loc) · 2.23 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
import colors from 'tailwindcss/colors';
import plugin from 'tailwindcss/plugin';
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{ts,tsx}'],
theme: {
extend: {
zIndex: {
1: '1',
2: '2',
},
spacing: {
7.5: '1.875rem',
13: '3.25rem',
17: '4.24rem',
30: '7.5rem',
},
minWidth: {
14: '3.5rem',
16: '4rem',
},
minHeight: {
16: '4rem',
},
maxHeight: {
141: '35.25rem',
'50vh': '50vh',
},
flexGrow: {
4: '4',
},
aspectRatio: {
banner: '3 / 1',
},
keyframes: {
indeterminate: {
'0%': {
translate: '-100%',
},
'100%': {
translate: '400%',
},
},
},
animation: {
indeterminate: 'indeterminate 1s linear infinite',
},
},
colors: {
accent: 'rgb(var(--accent))',
accentDark: 'rgb(var(--accent-dark))',
background: 'rgb(var(--background))',
primary: {
DEFAULT: 'rgb(var(--primary))',
fg: 'rgb(var(--primary-fg))',
},
secondary: {
DEFAULT: 'rgb(var(--secondary))',
fg: 'rgb(var(--secondary-fg))',
},
hinted: {
DEFAULT: 'rgb(var(--hinted))',
fg: 'rgb(var(--hinted-fg))',
},
muted: {
DEFAULT: 'rgb(var(--muted))',
fg: 'rgb(var(--muted-fg))',
},
input: 'rgb(var(--input))',
divider: 'rgb(var(--divider))',
transparent: 'transparent',
black: colors.black,
white: colors.white,
red: colors.red,
green: colors.green,
},
fontFamily: {
sans: `"Roboto", ui-sans-serif, sans-serif, "Twemoji Mozilla", "Noto Color Emoji"`,
mono: `"JetBrains Mono NL", ui-monospace, monospace`,
},
},
corePlugins: {
outlineStyle: false,
},
darkMode: ['class', '.is-dark'],
plugins: [
plugin(({ addVariant, addUtilities }) => {
addVariant('modal', '&:modal');
addUtilities({
'.scrollbar-hide': {
'-ms-overflow-style': 'none',
'scrollbar-width': 'none',
'&::-webkit-scrollbar': {
display: 'none',
},
},
'.outline-none': { 'outline-style': 'none' },
'.outline': { 'outline-style': 'solid' },
'.outline-dashed': { 'outline-style': 'dashed' },
'.outline-dotted': { 'outline-style': 'dotted' },
'.outline-double': { 'outline-style': 'double' },
});
}),
],
};