-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.js
47 lines (44 loc) · 1.03 KB
/
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
/** @type {import('tailwindcss').Config} */
// This needs to be kept in sync with what's in `src/dialogs.tsx`.
const colors =
"slate|orange|amber|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|rose";
// This needs to be kept in sync with what's in `src/nodes.tsx`.
const backgrounds = [
// Node backgrounds
200, 300, 400,
// Node header
500,
// Handle background
700,
];
module.exports = {
content: ["./src/**/*.{html,tsx,js}"],
theme: {
extend: {},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/aspect-ratio"),
],
safelist: [
{
pattern: new RegExp(`bg-(${colors})-(${backgrounds.join("|")})`),
},
{
pattern: new RegExp(`bg-(${colors})-100`),
variants: ["hover"],
},
{
pattern: new RegExp(`border-(${colors})-300`),
},
{
pattern: new RegExp(`text-(${colors})-500`),
},
{
pattern: new RegExp(`(border|ring)-(${colors})-600`),
},
{
pattern: new RegExp(`ring-offset-(${colors})-700`),
},
],
};