-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
83 lines (81 loc) · 1.95 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
const colors = require('tailwindcss/colors');
const redBase = '#d80303';
const themeColorLight = '#e66107';
const themeColorDark = '#6f42c1';
const textColorDark = '#64707d';
const titleColorDark = '#558';
module.exports = {
content: ['pages/**/*.{tsx,mdx}', './components/**/*.tsx'],
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
zIndex: {
'-10': '-10',
},
spacing: {
140: '35rem',
},
colors: {
'red-base': redBase,
'theme-color-light': themeColorLight,
green: colors.emerald,
yellow: colors.amber,
purple: colors.violet,
},
keyframes: {
'banner-title': {
'0%': {
opacity: 0,
transform: 'scale(0.95)',
},
'100%': {
opacity: 1,
transform: 'scale(1)',
},
},
},
animation: {
'banner-title': '2s ease-out 0s 1 normal none running banner-title',
},
typography: (_theme) => ({
DEFAULT: {
css: {
a: {
textDecoration: 'none',
color: redBase,
'&:hover': {
color: 'black',
},
},
code: {
fontWeight: 300,
color: themeColorLight,
background: 'inherit !important',
},
},
},
dark: {
css: {
a: {
'&:hover': {
color: textColorDark,
},
},
code: {
fontWeight: 300,
color: themeColorDark,
background: 'inherit !important',
},
'h1,h2,h3,h4,h5,h6,th': {
color: titleColorDark,
},
'p,strong,pre code': {
color: textColorDark,
},
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
};