forked from dailydotdev/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
111 lines (109 loc) · 2.74 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* eslint-disable @typescript-eslint/no-var-requires */
const colors = require('./tailwind/colors');
const overlay = require('./tailwind/overlay');
const boxShadow = require('./tailwind/boxShadow');
module.exports = {
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
theme: {
colors: {
...colors,
overlay,
theme: {
active: 'var(--theme-active)',
focus: 'var(--theme-focus)',
float: 'var(--theme-float)',
hover: 'var(--theme-hover)',
bg: {
primary: 'var(--theme-background-primary)',
secondary: 'var(--theme-background-secondary)',
tertiary: 'var(--theme-background-tertiary)',
},
label: {
primary: 'var(--theme-label-primary)',
secondary: 'var(--theme-label-secondary)',
tertiary: 'var(--theme-label-tertiary)',
quaternary: 'var(--theme-label-quaternary)',
disabled: 'var(--theme-label-disabled)',
link: 'var(--theme-label-link)',
invert: 'var(--theme-label-invert)',
},
divider: {
primary: 'var(--theme-divider-primary)',
secondary: 'var(--theme-divider-secondary)',
tertiary: 'var(--theme-divider-tertiary)',
quaternary: 'var(--theme-divider-quaternary)',
},
status: {
error: 'var(--theme-status-error)',
help: 'var(--theme-status-help)',
success: 'var(--theme-status-success)',
},
'post-disabled': 'var(--theme-post-disabled)',
},
white: '#ffffff',
transparent: 'transparent',
},
boxShadow,
opacity: {
0: '0',
40: '0.4',
50: '0.5',
64: '0.64',
100: '1',
},
zIndex: {
0: '0',
1: '1',
2: '2',
3: '3',
rank: '3',
'-1': '-1',
},
fontFamily: {
sans: [
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'Roboto',
'Helvetica',
'Ubuntu',
'Segoe UI',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
],
},
screens: {
mobileL: '420px',
tablet: '656px',
laptop: '1020px',
laptopL: '1360px',
laptopXL: '1668px',
desktop: '1976px',
desktopL: '2156px',
mouse: { raw: '(pointer: fine)' },
},
extend: {
borderRadius: {
10: '0.625rem',
},
opacity: {
24: '0.24',
32: '0.32',
},
},
},
variants: {
extend: {
borderWidth: ['group-hover'],
visibility: ['group-hover'],
},
},
plugins: [
require('./tailwind/caret'),
require('./tailwind/typography'),
require('./tailwind/buttons'),
],
};