forked from myparcelnl/developer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
72 lines (69 loc) · 1.75 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
/* eslint-disable @typescript-eslint/no-magic-numbers,no-magic-numbers */
import path from 'upath';
import defaultTheme from 'tailwindcss/defaultTheme';
import {type Config} from 'tailwindcss';
const colors = {
monstera: {
100: '#CFDEDA',
200: '#9FBEB5',
300: '#6F9D91',
400: '#3F7D6C',
500: '#0F5C47',
600: '#0C4A39',
700: '#09372B',
800: '#06251C',
900: '#03120E',
},
goldfish: {
100: '#FFE8CC',
200: '#FFD199',
300: '#FFBA66',
400: '#FFA333',
500: '#FF8C00',
600: '#CC7000',
700: '#995400',
800: '#663800',
900: '#331C00',
},
};
const config: Config = {
content: [
`!${path.resolve(__dirname, '.cache')}`,
`!${path.resolve(__dirname, '.temp')}`,
`!${path.resolve(__dirname, 'dist')}`,
path.resolve(__dirname, 'src/.vuepress/**/*.{ts,vue,json}'),
path.resolve(__dirname, 'src/**/*.md'),
],
safelist: [
// prevent code styles in base layer from getting purged.
'token',
'highlight-lines',
'highlight-line',
],
darkMode: 'class',
theme: {
borderRadius: {
none: '0',
sm: '0.175rem',
DEFAULT: '0.5rem',
lg: '1rem',
xl: '1.875rem',
full: '9999px',
},
extend: {
colors,
boxShadow: {
DEFAULT: '0 4px 6px 0 rgba(0, 0, 0, 0.1), 0 4px 6px 0 rgba(0, 0, 0, 0.06)',
},
fontFamily: {
display: ['Proxima Nova', ...defaultTheme.fontFamily.sans],
mono: ['JetBrains Mono', ...defaultTheme.fontFamily.mono],
},
maxHeight: ({theme}) => defaultTheme.height(theme),
maxWidth: ({theme}) => defaultTheme.width(theme),
minHeight: ({theme}) => defaultTheme.height(theme),
minWidth: ({theme}) => defaultTheme.width(theme),
},
},
};
export default config;