-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.cjs
62 lines (60 loc) · 1.56 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
55
56
57
58
59
60
61
62
/** @type {import('tailwindcss').Config} */
const withOpacity = (variableName) => {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
};
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
safelist: [{ pattern: /w-1\/\d*/ }],
theme: {
extend: {
brightness: {
40: '.40',
175: '1.75'
},
colors: {
primary: withOpacity('--color-primary'),
secondary: withOpacity('--color-secondary'),
accent: withOpacity('--color-accent'),
success: withOpacity('--color-success'),
warning: withOpacity('--color-warning'),
error: withOpacity('--color-error'),
disabled: withOpacity('--color-disabled'),
'light-gray': withOpacity('--color-light-gray'),
background: withOpacity('--color-background')
},
fontFamily: {
raleway: ['Raleway', 'sans-serif']
}
}
},
daisyui: {
themes: [
{
light: {
...require('daisyui/src/colors/themes')['[data-theme=light]'],
primary: 'rgb(46, 70, 255)',
secondary: 'rgb(255, 85, 128)',
accent: 'rgb(255, 220, 0)',
success: 'rgb(77, 224, 136)',
warning: 'rgb(255, 220, 0)',
error: 'rgb(255, 85, 85)'
},
dark: {
...require('daisyui/src/colors/themes')['[data-theme=dark]'],
primary: 'rgb(255, 85, 128)',
secondary: 'rgb(46, 70, 255)',
accent: 'rgb(255, 220, 0)',
success: 'rgb(77, 224, 136)',
warning: 'rgb(255, 220, 0)',
error: 'rgb(255, 85, 85)'
}
}
]
},
plugins: [require('daisyui')]
};