-
-
Notifications
You must be signed in to change notification settings - Fork 612
/
Copy pathtailwind.config.js
97 lines (87 loc) · 3.12 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
const colors = require('tailwindcss/colors');
module.exports = {
// TODO: jit appears to be a bit buggy inside dynamic code (loops etc). cba to figure out why.
// mode: 'jit',
purge: [
'./src/pages/**/*.{js,ts,jsx,tsx,md,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/layouts/**/*.{js,ts,jsx,tsx}',
],
// needed in situations where we're using tailwind in prose aka markdown :(
// https://github.com/tailwindlabs/tailwindcss-typography/issues/32
important: true,
theme: {
fontFamily: {
display: ['Poppins', 'sans-serif'],
serif: ['Inter', 'sans-serif'],
monospaced: ['Space Mono', 'monospaced'],
},
extend: {
colors: {
'game-t6': {
DEFAULT: '#F36B1B',
},
'game-iw5': {
DEFAULT: '#00BF9F',
},
'game-t4': {
DEFAULT: '#93c5fd',
darker: '#94a3b8',
},
orange: colors.orange,
bluegray: colors.blueGray,
},
// dark theme largely stolen from https://stefanzweifel.io/posts/2020/07/20/add-dark-mode-support-to-at-tailwindcsstypography
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.gray.300'),
a: {
color: theme('colors.red.500'),
'&:hover': {
color: theme('colors.red.600'),
},
},
h1: {
color: theme('colors.white'),
},
h2: {
color: theme('colors.white'),
},
h3: {
color: theme('colors.white'),
},
h4: {
color: theme('colors.white'),
},
h5: {
color: theme('colors.white'),
},
h6: {
color: theme('colors.white'),
},
strong: {
color: theme('colors.gray.300'),
},
code: {
color: theme('colors.gray.300'),
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
figcaption: {
color: theme('colors.gray.500'),
},
},
},
}),
},
},
variants: {
extend: {},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
};