forked from nolimits4web/swiper-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
61 lines (60 loc) · 1.68 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
const colors = require('tailwindcss/colors');
module.exports = {
content: ['./src/**/*.js', './src/**/*.mdx', './src/**/*.md'],
darkMode: 'class',
theme: {
extend: {
colors: {
primary: '#0080ff',
primaryLight: '#0080ff',
green: colors.emerald,
yellow: colors.amber,
purple: colors.violet,
'dark-0': '#111827',
'dark-1': '#1c273f',
},
typography: (theme) => ({
DEFAULT: {
css: {},
},
dark: {
css: {
color: theme('colors.gray.400'),
'h2, h3, h4': {
color: theme('colors.gray.200'),
},
'h2 small, h3 small, h4 small': {
color: theme('colors.gray.400'),
},
code: {
color: theme('colors.gray.300'),
backgroundColor: theme('colors.gray.800'),
},
hr: {
borderColor: theme('colors.gray.200'),
opacity: '0.05',
},
pre: {
boxShadow: 'inset 0 0 0 1px rgb(255 255 255 / 0.1)',
},
a: {
color: theme('colors.primaryLight'),
borderBottomColor: theme('colors.primaryLight'),
},
strong: {
color: theme('colors.gray.200'),
},
// thead: {
// color: theme('colors.gray.300'),
// borderBottomColor: 'rgb(148 163 184 / 0.2)',
// },
// 'tbody tr': {
// borderBottomColor: 'rgb(148 163 184 / 0.1)',
// },
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
};