-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
151 lines (149 loc) · 4.15 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/** @typedef { import('tailwindcss/defaultConfig') } DefaultConfig */
/** @typedef { import('tailwindcss/defaultTheme') } DefaultTheme */
/** @typedef { DefaultConfig & { theme: { extend: DefaultTheme } } } TailwindConfig */
const defaultTheme = require('tailwindcss/defaultTheme')
const polished = require('polished')
/** @type {TailwindConfig} */
module.exports = {
mode: "jit",
purge: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}'
],
darkMode: false, // or 'media' or 'class'
theme: {
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
spacing: {
0: '0px',
1: '5px',
2: '10px',
3: '15px',
4: '20px',
5: '40px',
6: '60px',
7: '80px',
8: '100px',
},
space: {
0: '0px',
'1px': "1px",
'2px': "2px",
'3px': "3px",
'4px': "4px",
1: '5px',
2: '10px',
3: '15px',
4: '20px',
5: '40px',
6: '60px',
7: '80px',
8: '100px',
'30px': '30px',
},
extend: {
fontFamily: {
'identity': [
'League Gothic',
...defaultTheme.fontFamily.sans
],
'mono': [
'PT Mono',
...defaultTheme.fontFamily.mono
],
'serif': [
'PT Serif',
...defaultTheme.fontFamily.serif
],
},
colors: {
transparent: 'transparent',
inherit: 'inherit',
white: '#ffffff',
lightBlue: '#d2dcf8',
activeBlue: '#C6CCFF',
inactiveBlue: '#E6E8FF',
hoverBlue: '#4B5AE7',
darkGrey: "#434343",
midGrey: "#b2b2b2",
lightGrey: '#d2d2d2',
gwYellow: '#EBFF00',
gwBlue: '#3B97EC',
gwBlueLight: '#E8EFF5',
gwBackground: '#F8F8F8',
gwPink: '#DD96FF',
gwPink50: polished.rgba('#DD96FF', 0.5),
gwPinkLight: '#FFCAD9',
gwOrange: '#FF8038',
gwOrange50: polished.rgba('#FF8038', 0.5),
gwOrangeLight: '#FFC58E',
},
boxShadow: theme => ({
'noglow': 'inset 0 0 0 0 #FF8038',
'glow': `inset 4px 4px 20px 6px ${theme('colors.hoverBlue')}`,
'white': 'inset 4px 4px 20px 6px #FFffff',
'innerGwPink': `inset 0px 0px 10px 6px ${polished.rgba('#DD96FF', 0.5)}`,
'innerActiveBlue': `inset 0px 0px 10px 6px ${polished.rgba(`${theme('colors.activeBlue')}`, 0.5)}`,
'gwPink': `0px 1px 10px 5px ${theme('colors.gwPink50')}`,
'hoverBlue': `0px 1px 10px 5px ${theme('colors.hoverBlue')}`,
'gwOrange': `0px 1px 10px 5px ${theme('colors.gwOrange50')}`
}),
maxWidth: {
full: "100%"
},
typography: theme => ({
DEFAULT: {
css: {
color: 'inherit',
h1: { color: 'inherit' },
h2: { color: 'inherit' },
h3: { color: 'inherit' },
h4: { color: 'inherit' },
h5: { color: 'inherit' },
a: {
fontFamily: theme('fontFamily.link'),
color: '#434343',
'&:hover': {
color: theme('darkGrey'),
},
},
p: {
marginTop: theme('space.4'),
marginBottom: theme('space.4'),
},
blockquote: {
marginTop: theme('space.5'),
marginBottom: theme('space.5'),
fontFamily: theme('fontFamily.identity').slice().reverse(),
fontSize: theme('fontSize.3xl'),
lineHeight: '1.25em',
fontStyle: 'normal',
border: 'none',
margin: 'none',
// background: `0% 0% url(/images/spaceinvader.png) no-repeat`,
// backgroundSize: '32px 38px',
paddingLeft: 40,
' p:first-of-type::before': {
content: '"👾" !important',
float: 'left',
marginLeft: -40
},
':after': { display: 'none' },
}
},
},
})
},
},
variants: {
extend: {},
},
plugins: [
require('@tailwindcss/typography'),
],
}