forked from spacesprotocol/explorer
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind.config.js
More file actions
41 lines (36 loc) · 1016 Bytes
/
Copy pathtailwind.config.js
File metadata and controls
41 lines (36 loc) · 1016 Bytes
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
/** @type {import('tailwindcss').Config} */
import daisyui from 'daisyui';
import typeography from '@tailwindcss/typography';
import { themeVariants } from "tailwindcss-theme-variants";
const colors = ['red-500', 'blue-500', 'green-500', 'yellow-500', 'purple-500', 'pink-500', 'indigo-500', 'teal-500', 'cyan-500', 'lime-500', 'amber-500', 'orange-500', 'gray-500', 'white', 'black'];
const classes = ['border', 'text', 'badge', 'bg'];
const safelist = [];
for (let cls of classes) {
for (let color of colors)
safelist.push(`${cls}-${color}`);
}
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
safelist,
theme: {
extend: {},
},
plugins: [
daisyui,
typeography,
themeVariants({
themes: {
light: {
selector: `[data-theme="wireframe"]`,
},
dark: {
selector: `[data-theme="black]"`,
},
},
}),
],
daisyui: {
themes: ["black", "wireframe"],
},
darkMode: ['class', '[data-theme="black"]']
}