-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtailwind.config.ts
91 lines (89 loc) · 2.74 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
import plugin from 'tailwindcss/plugin'
import type { Config } from 'tailwindcss/types/config'
export default {
content: ['./index.html', './src/**/*.{js,jsx,ts,tsx}'],
darkMode: 'class',
safelist: [
{
pattern:
/bg-(red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone)-100/,
},
{
pattern:
/bg-(red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone)-600/,
variants: ['dark'],
},
{
pattern:
/outline-(red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone)-300/,
},
{
pattern:
/text-(red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone)-800/,
},
{
pattern:
/text-(red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose|slate|gray|zinc|neutral|stone)-50/,
variants: ['dark'],
},
],
theme: {
fontFamily: {
sans: [
'Helvetica Neue',
'Segoe UI',
'Roboto',
'Verdana',
'Arial',
'sans-serif',
],
mono: [
'JetBrains Mono',
'IBM Plex Mono',
'Cascadia Code',
'Roboto Mono',
'Fira Code',
'monospace',
],
},
boxShadow: {
sm: '0 1px 2px 0 rgb(0 0 0 / 0.15)',
},
extend: {
colors: {
brand: {
50: '#f6fdfd',
100: '#cce6e5',
200: '#a1cfce',
300: '#76b9b8',
400: '#4aa3a2',
500: '#1f8d8b',
600: '#1e7170',
700: '#1b5857',
800: '#163f3e',
900: '#102828',
},
},
backgroundImage: {
'page-light': 'url("/assets/images/background-light.jpg")',
'page-dark': 'url("/assets/images/background-dark.jpg")',
},
},
},
plugins: [
plugin(({ addVariant, addUtilities }) => {
addVariant('supports-backdrop', '@supports (backdrop-filter: blur(1px))')
addUtilities({
'.scrollbargutter-auto': { 'scrollbar-gutter': 'auto' },
'.scrollbargutter-stable': { 'scrollbar-gutter': 'stable' },
'.scrollbargutter-stable-both': {
'scrollbar-gutter': 'stable both-edges',
},
'.scrollbargutter-inherit': { 'scrollbar-gutter': 'inherit' },
'.scrollbargutter-initial': { 'scrollbar-gutter': 'initial' },
'.scrollbargutter-revert': { 'scrollbar-gutter': 'revert' },
'.scrollbargutter-unset': { 'scrollbar-gutter': 'unset' },
})
}),
],
} satisfies Config