-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
54 lines (54 loc) · 1.67 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
backgroundColor: {
default: 'rgb(var(--color-bg-default) / <alpha-value>)',
overlay: 'rgb(var(--color-bg-overlay) / <alpha-value>)',
inset: 'rgb(var(--color-bg-inset) / <alpha-value>)',
subtle: 'rgb(var(--color-bg-subtle) / <alpha-value>)',
neutral: {
emphasis: 'rgb(var(--color-neutral-emphasis) / <alpha-value>)',
muted: 'rgb(var(--color-neutral-muted))',
subtle: 'rgb(var(--color-neutral-subtle))'
}
}
},
screens: {
sm: '0px',
xs: '380px',
md: '544px',
lg: '768px'
},
textColor: {
default: 'rgb(var(--color-fg-default) / <alpha-value>)',
muted: 'rgb(var(--color-fg-muted) / <alpha-value>)',
subtle: 'rgb(var(--color-fg-subtle) / <alpha-value>)',
emphasis: 'rgb(var(--color-fg-emphasis) / <alpha-value>)'
},
boxShadow: {
default: 'var(--color-shadow-default)',
medium: 'var(--color-shadow-medium)',
large: 'var(--color-shadow-large)',
'extra-large': 'var(--color-shadow-extra-large)',
'outline-default': 'var(--color-shadow-outline-default)',
'outline-muted': 'var(--color-shadow-outline-muted)',
// --color-shadow-ambient
ambient: 'var(--color-shadow-ambient)'
},
borderColor: {
default: 'rgb(var(--color-border-default) / <alpha-value>)',
muted: 'rgb(var(--color-border-muted) / <alpha-value>)',
subtle: 'rgb(var(--color-border-subtle))',
emphasis: 'rgb(var(--color-border-emphasis))'
}
},
plugins: [
function ({ addVariant }) {
addVariant('child', '& > *');
addVariant('child-hover', '& > *:hover');
},
require('@tailwindcss/forms')
]
};