-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.cjs
80 lines (77 loc) · 1.52 KB
/
tailwind.config.cjs
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
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
animation: {
'glow-pulse': 'glow-pulse 1s ease-in-out infinite',
},
},
colors: {
lightestGreen: '#CAD2C5',
lightGreen: '#84A98C',
green: '#52796F',
darkGreen: '#354F52',
darkestGreen: '#2F3E46',
red: '#F77F7F',
},
spacing: {
0: '0px',
1: '8px',
2: '16px',
3: '24px',
5: '40px',
8: '64px',
'1col': '216px',
'2col': '456px',
page: '936px',
},
maxWidth: {
'1col': '216px',
'2col': '456px',
page: '936px',
},
borderRadius: {
1: '8px',
},
boxShadow: {
glow: '0 0 20px',
},
fontWeight: {
normal: 400,
bold: 700,
},
fontFamily: {
inter: '"Inter", sans-serif',
newsreader: '"Newsreader", serif',
},
fontSize: {
title: ['4.25rem', '5rem'],
header: ['2.625rem', '3rem'],
// subheader: ['1.25rem', '2rem'],
base: ['1rem', '1.5rem'],
},
},
plugins: [
plugin(({ addVariant, addUtilities }) => {
// "child:" selector
addVariant('child', '&>*');
addUtilities({
// For body text. Changes to Newsreader and adjusts size to fit with body text
'.emphasis': {
'font-family': '"Newsreader", serif',
//
'font-size': '1.125rem',
'line-height': '1.5rem',
},
// For links
'.link': {
'font-weight': 700,
color: module.exports.theme.colors.lightGreen,
},
});
}),
require('@tailwindcss/forms'),
],
};