-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
79 lines (79 loc) · 1.75 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 defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
purge: {
content: [
'./**/*.hbs',
'./src/**/*.js',
]
},
prefix: '',
important: false,
separator: ':',
theme: {
extend: {
fontFamily: {
sans: ["Inter var", ...defaultTheme.fontFamily.sans]
},
listStyleType: {
none: 'none',
disc: 'disc',
decimal: 'decimal',
latin: 'lower-latin',
roman: 'lower-roman'
},
scale: {
'-100': '-1'
},
screens: {
dm: {
raw: "(prefers-color-scheme: dark)"
}
}
},
typography: (theme) => ({
default: {
css: {
img: {
borderRadius: '0.375rem',
},
figure: {
borderRadius: '0.375rem',
},
'figure figcaption': {
textAlign: 'center'
},
':not(pre)>code': {
background: theme('colors.gray.100'),
border: theme('colors.gray.200'),
borderWidth: '1px',
borderStyle: 'solid',
paddingLeft: '0.25rem',
paddingRight: '0.25rem',
borderRadius: '0.25rem',
display: 'inline-block',
whiteSpace: 'nowrap',
},
':not(pre)>code::before': {
content: '""',
},
':not(pre)>code::after': {
content: '""',
},
'pre code': {
display: 'block',
whiteSpace: 'pre',
},
video: {
borderRadius: '0.375rem',
},
}
}
})
},
variants: {
textColor: ['responsive', 'hover', 'focus', 'group-hover'],
},
plugins: [
require('@tailwindcss/typography'),
],
};