-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
99 lines (95 loc) · 1.88 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
92
93
94
95
96
97
98
99
import { type Config } from 'tailwindcss';
import typography from '@tailwindcss/typography';
import TailwindColors from 'tailwindcss/colors';
import plugin from 'tailwindcss/plugin';
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
darkMode: 'selector',
theme: {
extend: {
fontFamily: {
sans: [
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Oxygen',
'Ubuntu',
'Cantarell',
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol'
],
mono: [
'ui-monospace',
'SFMono-Regular',
'SF Mono',
'Menlo',
'Consolas',
'Liberation Mono',
'monospace'
]
},
borderRadius: {
none: '0',
sm: '.125rem',
DEFAULT: '.25rem',
lg: '.5rem',
full: '9999px'
},
opacity: {
'0': '0',
'20': '0.2',
'40': '0.4',
'60': '0.6',
'80': '0.8',
'100': '1'
},
width: {
vfull: '100vw'
},
height: {
vfull: '100vh'
},
colors: {
primary: {
DEFAULT: 'rgb(var(--color-primary) / <alpha-value>)',
...TailwindColors.indigo
},
secondary: {
DEFAULT: 'rgb(var(--color-secondary) / <alpha-value>)',
...TailwindColors.sky
},
background: 'rgb(var(--color-background) / <alpha-value>)',
navbar: 'rgb(var(--color-navbar) / <alpha-value>)'
},
textColor: {
default: {
DEFAULT: 'rgb(var(--color-primary-text) / <alpha-value>)',
...TailwindColors.slate
}
}
}
},
plugins: [
typography,
plugin(({ addVariant, matchUtilities, theme }): void => {
addVariant('hocus', ['&:hover', '&:focus']);
// Square utility
matchUtilities(
{
square: (value) => ({
width: value,
height: value
})
},
{ values: theme('spacing') }
);
})
]
} satisfies Config;