-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
79 lines (77 loc) · 1.83 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
const colors = require('tailwindcss/colors');
const { fontFamily, spacing } = require('tailwindcss/defaultTheme');
module.exports = {
purge: [
'./pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./layouts/**/*.{ts,tsx}',
],
darkMode: 'class', // or 'media' or 'class'
mode: 'jit',
theme: {
extend: {
fontFamily: {
sans: ['Inter', ...fontFamily.sans],
},
colors: {
subtext: '#A9A8A8',
accent: '#3c8bd6',
'accent-light': '#5FA0DD',
'accent-dark': '#256DB1',
'light-black': '#1A1A1B',
teal: colors.teal,
sky: colors.sky,
gray: colors.gray,
},
typography: {
DEFAULT: {
css: {
a: {
color: '#3c8bd6',
'&:hover': {
color: '#256DB1',
},
},
' h2, h3, h4': {
'scroll-margin-top': spacing['24'],
},
},
},
dark: {
css: {
color: colors['gray']['200'],
a: {
color: '#5FA0DD',
'&:hover': {
color: '#3c8bd6',
},
code: { color: colors['blue']['400'] },
},
'h2,h3,h4': {
color: colors['white'],
'scroll-margin-top': spacing['24'],
},
strong: {
color: colors['gray']['200'],
},
blockquote: {
color: colors['gray']['200'],
},
ul: {
li: {
'&:before': { backgroundColor: colors['gray']['400'] },
},
},
},
},
},
},
},
variants: {
extend: {},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/line-clamp'),
],
};