-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
55 lines (51 loc) · 877 Bytes
/
tailwind.config.js
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
const { Theme } = require('./build/index.js');
const theme = new Theme({
colors: {
somecolor: '#e9e6ff',
primary: {
DEFAULT: '#ffcccc',
100: '#ffcccc',
200: '#ff9999',
300: '#ff6666',
400: '#ff3333',
},
},
});
const darkMode = theme.variant(
{
colors: {
primary: {
DEFAULT: '#0f172a',
400: '#475569',
300: '#334155',
200: '#1e293b',
100: '#0f172a',
},
},
},
{
mediaQuery: '@media (prefers-color-scheme: dark)',
}
);
const coolTheme = theme.variant(
{
colors: {
somecolor: '#555',
},
},
{
selector: '[data-theme="cool-theme"]',
}
);
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [],
theme: {
extend: {},
},
plugins: [
theme.create({
'[data-theme="dark"]': darkMode,
}),
],
};