This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
72 lines (71 loc) · 1.73 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
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
function shades(color, levels = []) {
return Object.assign(
{ DEFAULT: `rgba(var(--c-${color}), <alpha-value>)` },
...levels.map((level) => ({
[level]: `rgba(var(--c-${color}-${level}), <alpha-value>)`,
}))
);
}
export default {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
safelist: ['bg-success', 'bg-warning', 'bg-danger'],
theme: {
colors: {
primary: shades('primary', [5, 10, 20, 40, 70, 80]),
body: shades('body', [60, 80]),
link: shades('link', [10, 30, 70, 110]),
warning: shades('warning', [10, 30, 70]),
success: shades('success', [10, 30, 70, 110]),
danger: shades('danger', [10, 30, 70, 110]),
white: shades('white'),
black: shades('black'),
grey: {
lighter: '#eee',
light: '#c7c7c7',
DEFAULT: '#a4a4a4',
dark: '#5f5f5f',
darker: '#434343',
},
},
fontFamily: {
body: 'var(--ff-body)',
title: 'var(--ff-title)',
},
extend: {
borderRadius: {
DEFAULT: '3px',
},
lineHeight: {
5.5: '1.375rem',
},
screens: {
xs: '475px',
lg: '1264px' /* Offset by 240px for menu */,
xl: '1640px',
},
padding: {
4.5: '1.125rem',
},
spacing: {
menu: '240px',
},
height: {
7.5: '1.875rem',
},
boxShadow: {
DEFAULT: '0 0 8px 0 rgba(0, 0, 0, 0.2)',
input: 'var(--bs-input)',
'auth-box': '0 0 1rem 0.125rem rgba(51, 51, 51, 0.4)',
},
fontSize: {
'1.8xl': '1.375rem',
'2.2xl': '1.625rem',
'3.5xl': '2rem',
},
transitionProperty: {
width: 'width',
},
},
},
plugins: [],
};