-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
62 lines (59 loc) · 1.42 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
/* eslint @typescript-eslint/no-var-requires: "off" */
const defaultTheme = require('tailwindcss/defaultTheme')
// THIS OBJECT SHOULD BE SIMILAR TO ./theme/theme.js
const themeConstants = {
paper: '#F9F9F9',
primary: {
main: '#fff',
dark: '#e5e5e5',
},
secondary: {
main: '#212121',
dark: '#3A3A3A',
},
error: {
main: '#b22222',
dark: '#8b0000',
},
fg: { main: '#fff', dark: 'rgba(55, 65, 81, 1)' },
breakpoints: {
xs: '0px',
mb: '350px',
sm: '600px',
md: '960px',
lg: '1280px',
xl: '1920px',
},
}
module.exports = {
mode: 'jit',
content: [
'./pages/*.{js,ts,jsx,tsx}',
'./Components/**/*.{js,ts,jsx,tsx}',
'./hoc/*.{js,ts,jsx,tsx}',
'./Widgets/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'media', // or 'media' or 'class'
theme: {
extend: {
colors: {
paper: themeConstants.paper,
primary: themeConstants.primary,
secondary: themeConstants.secondary,
error: themeConstants.error,
fg: themeConstants.fg.main,
'fg-dark': themeConstants.fg.dark,
},
},
// We over ride the whole screens with breakpoints for width. The 'ha' breakpoint will help us in blocking hover animations on devices not supporting hover.
screens: {
...defaultTheme.screens,
...themeConstants.breakpoints,
ha: { raw: '(hover: hover)' },
},
},
variants: {
extend: {},
},
plugins: [],
}