-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
tailwind.config.js
43 lines (40 loc) · 1.17 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
const twColors = require('./tw-colors')
const alwaysColor = require('tailwindcss/colors')
const { addDynamicIconSelectors } = require('@iconify/tailwind')
const deprecatedColorKeyMap = {
lightBlue: 'sky',
warmGray: 'stone',
trueGray: 'neutral',
coolGray: 'gray',
blueGray: 'slate',
}
for (const key in deprecatedColorKeyMap) {
Reflect.deleteProperty(alwaysColor, key)
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.html', './src/**/*.vue', './src/**/*.tsx'],
darkMode: ['class', 'html.dark'],
theme: {
colors: twColors,
extend: {
colors: {
always: alwaysColor,
accent: 'var(--theme-color)',
hover: 'var(--theme-hover-color)',
deep: 'var(--theme-active-color)',
},
fontFamily: {
mono: `Roboto Mono,Monaco,monospace`,
},
screens: {
'light-mode': { raw: '(prefers-color-scheme: light)' },
'dark-mode': { raw: '(prefers-color-scheme: dark)' },
phone: { raw: '(max-width: 768px)' },
desktop: { raw: '(min-width: 1024px)' },
tablet: { raw: '(max-width: 1023px)' },
},
},
},
plugins: [addDynamicIconSelectors()],
}