-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
65 lines (64 loc) · 1.45 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
const colors = require('tailwindcss/colors')
// const { breakpoints } = require('./.codelab.js')
/**
* This only works if `tailwind.config.js` & `postcss.config.js` are at the project root
*/
module.exports = {
plugins: [],
theme: {
extend: {
minHeight: {
'1/2': '50%',
'1/3': '33%',
'2/3': '66%',
'1/4': '25%',
'2/4': '50%',
'3/4': '70%',
},
minWidth: {
'1/2': '50%',
'1/3': '33%',
'2/3': '66%',
'1/4': '25%',
'2/4': '50%',
'3/4': '70%',
},
colors: {
primary: colors.violet['700'],
},
// colors: ({ theme }) => ({
// primary: theme('colors.violet')
// }),
screens: {
laptop: '768px',
tablet: '0px',
desktop: '1200px',
},
},
fontFamily: {
body: ['Nunito'],
display: ['Montserrat'],
},
container: {
center: true,
},
screens: {
xs: '0px',
sm: '576px',
// => @media (min-width: 576px) { ... }
md: '768px',
// => @media (min-width: 768px) { ... }
lg: '992px',
// => @media (min-width: 992px) { ... }
xl: '1200px',
// => @media (min-width: 1200px) { ... }
'2xl': '1600px',
// => @media (min-width: 1600px) { ... }
},
},
corePlugins: {
// Reset adds `background:transparent`, which background-color can't override
preflight: false,
},
variants: {},
}