-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.ts
114 lines (110 loc) · 2.28 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import themes from 'daisyui/src/theming/themes';
import plugin from 'tailwindcss/plugin';
import { Config } from 'tailwindcss';
import daisyui from 'daisyui';
/**
* utility class presets
*/
function _presets() {
const shapes = ['circle', 'ellipse'];
const pos = {
c: 'center',
t: 'top',
b: 'bottom',
l: 'left',
r: 'right',
tl: 'top left',
tr: 'top right',
bl: 'bottom left',
br: 'bottom right',
};
const result: Record<string, string> = {};
for (const shape of shapes)
for (const [posName, posValue] of Object.entries(pos))
result[`${shape}-${posName}`] = `${shape} at ${posValue}`;
return result;
}
const radialGradientPlugin = plugin(
function ({ matchUtilities, theme }) {
matchUtilities(
{
// map to bg-radient-[*]
'bg-radient': value => ({
'background-image': `radial-gradient(${value},var(--tw-gradient-stops))`,
}),
},
{ values: theme('radialGradients') }
);
},
{
theme: {
radialGradients: _presets(),
},
}
);
const tailwindConfig = {
content: ['./index.html', './src/client/**/*.{js.jsx,tsx}'],
theme: {
extend: {
boxShadow: {
'glow-md': '0px 0px 15px -3px rgba(0, 0, 0, 0.3)',
'glow-xl': '0px 0px 43px -3px rgba(0, 0, 0, 0.3)',
'glow-3xl': '0px 0px 60px -3px rgba(0, 0, 0, 0.3)',
},
},
},
plugins: [daisyui, radialGradientPlugin],
daisyui: {
themes: [
'light',
'dark',
'cupcake',
'bumblebee',
'emerald',
'corporate',
'synthwave',
'retro',
'cyberpunk',
'valentine',
'halloween',
'garden',
'forest',
'aqua',
{
lofi: {
...themes.lofi,
neutral: '#101010',
accent: '#999',
},
},
'pastel',
'fantasy',
'wireframe',
{
black: {
...themes.black,
accent: '#999',
},
},
{
luxury: {
...themes.luxury,
accent: '#946573',
},
},
'dracula',
'cmyk',
'autumn',
'business',
'acid',
'lemonade',
'night',
'coffee',
'winter',
'dim',
'nord',
'sunset',
],
},
} satisfies Config;
export default tailwindConfig;