-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
87 lines (85 loc) · 2.46 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
import pluggables from 'tailwindcss-pluggables';
import plugin from 'tailwindcss/plugin';
/** @type {import('tailwindcss').Config} */
const tailwindConfig = {
content: [
'./src/app/**/*.{js,ts,tsx,mdx}',
'./src/components/**/*.{js,ts,tsx,mdx}',
'./src/content/**/*.{js,ts,tsx,mdx}',
],
theme: {
container: {
center: true,
padding: '1.5rem',
screens: { DEFAULT: '100%', md: '56rem' },
},
extend: {
zIndex: Array.from('123456789').reduce((acc, e) => Object.assign(acc, { [e]: e }), {}),
colors: {
inherit: 'inherit',
border: 'hsl(var(--border))',
subtle: 'hsl(var(--subtle))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
primary: {
DEFAULT: 'hsl(var(--primary))',
fg: 'hsl(var(--primary-fg))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
fg: 'hsl(var(--secondary-fg))',
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
fg: 'hsl(var(--destructive-fg))',
},
muted: {
DEFAULT: 'hsl(var(--muted))',
fg: 'hsl(var(--muted-fg))',
},
accent: {
DEFAULT: 'hsl(var(--accent))',
light: 'hsl(var(--accent-light))',
lighter: 'hsl(var(--accent-lighter))',
dark: 'hsl(var(--accent-dark))',
darker: 'hsl(var(--accent-darker))',
},
popover: {
DEFAULT: 'hsl(var(--popover))',
fg: 'hsl(var(--popover-fg))',
},
card: {
DEFAULT: 'hsl(var(--card))',
fg: 'hsl(var(--card-fg))',
},
},
fontFamily: {
inter: 'var(--font-inter)',
raleway: 'var(--font-raleway)',
},
data: {
opaque: 'opaque="true"',
active: 'active="true"',
selected: 'selected="true"',
},
},
},
plugins: [
...pluggables(),
// miscellaneous
plugin(({ addUtilities }) => {
addUtilities({
'.outline-ring': {
'@apply outline-none ring-ring/50 ring-offset-2 ring-offset-background ring-2': {},
},
'.link': {
'textDecorationColor': 'color-mix(in srgb, currentColor, hsl(var(--background)) 60%)',
'@apply underline underline-offset-2 hocus:underline-offset-4 cursor-pointer': {},
},
});
}),
],
};
export default tailwindConfig;