-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
tailwind.config.ts
84 lines (83 loc) · 2.22 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
/** @type {import('tailwindcss').Config} */
/* eslint-disable max-len */
import plugin from 'tailwindcss/plugin';
import { colorPalette } from 'reablocks';
module.exports = {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
'./stories/**/*.{js,ts,jsx,tsx}',
'./node_modules/reablocks/**/*.{js,jsx,ts,tsx}'
],
darkMode: 'selector',
lightMode: 'selector',
theme: {
extend: {
borderRadius: {
'3xl': '20px'
},
colors: {
primary: {
DEFAULT: colorPalette.blue[500],
active: colorPalette.blue[500],
hover: colorPalette.blue[600],
inactive: colorPalette.blue[200]
},
secondary: {
DEFAULT: colorPalette.gray[700],
active: colorPalette.gray[700],
hover: colorPalette.gray[800],
inactive: colorPalette.gray[400]
},
success: {
DEFAULT: colorPalette.green[500],
active: colorPalette.green[500],
hover: colorPalette.green[600]
},
error: {
DEFAULT: colorPalette.red[500],
active: colorPalette.red[500],
hover: colorPalette.red[600]
},
warning: {
DEFAULT: colorPalette.orange[500],
active: colorPalette.orange[500],
hover: colorPalette.orange[600]
},
info: {
DEFAULT: colorPalette.blue[500],
active: colorPalette.blue[500],
hover: colorPalette.blue[600]
},
background: {
level1: colorPalette.white,
level2: colorPalette.gray[950],
level3: colorPalette.gray[900],
level4: colorPalette.gray[800]
},
panel: {
DEFAULT: colorPalette['black-pearl'],
accent: colorPalette['charade']
},
surface: {
DEFAULT: colorPalette['charade']
},
typography: {
DEFAULT: colorPalette['athens-gray']
},
accent: {
DEFAULT: colorPalette['waterloo'],
active: colorPalette['anakiwa']
}
}
}
},
plugins: [
plugin(({ addVariant }) => {
addVariant(
'disabled-within',
'&:has(input:is(:disabled),button:is(:disabled))'
);
})
]
};