-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
95 lines (92 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
const defaultTheme = require('tailwindcss/defaultTheme')
const { config } = require('./my-config')
const primary = config.primaryColour
const navHeight = '60px'
const contentHeight = 'calc(var(--vh, 1vh) * 100)'
const bodyHeight = `calc(${contentHeight} - ${navHeight})`
module.exports = {
mode: 'jit',
purge: [
'./src/**/*.js',
'./src/**/*.jsx',
'./src/**/*.ts',
'./src/**/*.tsx',
],
theme: {
fontFamily: {
sans: [...config.fonts, ...defaultTheme.fontFamily.sans],
},
extend: {
zIndex: {
'-10': '-10',
'-20': '-20',
},
borderColor: {
primary,
},
color: {
primary,
pink: '#B58DAE',
},
textColor: {
primary: '#E8EBEF',
red: '#C16069',
orange: '#D2876D',
green: '#A2BF8A',
teal: '#8EBCBB',
yellow: '#ECCC87',
blue: '#80A0C2',
darkBlue: '#5C748E',
magenta: '#B58DAE',
violet: '#5D80AE',
cyan: '#86C0D1',
darkCyan: '#507681',
},
backgroundColor: {
primary: config.bgColour,
},
height: {
nav: navHeight,
body: bodyHeight,
content: contentHeight,
},
maxWidth: {
screen: '100vw',
},
maxHeight: {
screen: '100vh',
},
minHeight: {
body: bodyHeight,
},
typography: theme => {
const color = theme('colors.gray.100')
return {
DEFAULT: {
css: {
color,
'h1,h2,h3,h4,h5,h6': {
color,
},
'ol > li::before': {
color,
},
'a,strong,thead,blockquote': {
color,
},
'a code': {
color,
},
pre: false,
code: false,
'pre code': false,
'code::before': false,
'code::after': false,
},
},
}
},
},
},
plugins: [require('@tailwindcss/typography')],
}