-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.cjs
More file actions
38 lines (36 loc) · 908 Bytes
/
tailwind.config.cjs
File metadata and controls
38 lines (36 loc) · 908 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
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
export default {
content: [],
theme: {
extend: {
colors: {
primary: '#5A54D6',
warning: '#D03838',
success: '#52C41A',
gray: '#707088',
'gray-stroke': '#3D3D4E',
'gray-dark': '#22222B',
dark: '#191921',
black: '#13131A',
},
boxShadow: {
base: '0px 0px 40px 4px rgba(0, 0, 0, 0.04)',
},
fontFamily: {
montserrat: ['Montserrat', 'sans-serif'],
},
},
},
darkMode: ['class'],
plugins: [
plugin(({addVariant, e}) => {
addVariant('gdark', ({container, separator}) => {
container.walkRules((rule) => {
const className = rule.selector.slice(1);
rule.selector = `:global(.dark) .${e(`gdark${separator}${className}`)}`;
})
})
})
],
}