-
Notifications
You must be signed in to change notification settings - Fork 0
/
tw.config.js
68 lines (67 loc) · 1.79 KB
/
tw.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
const colors = require('tailwindcss/colors')
module.exports = {
mode: 'jit',
purge: ['./.vitepress/theme/**/*.vue'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
cyan: colors.cyan,
violet: colors.violet,
fuchsia: colors.fuchsia,
lime: colors.lime,
'light-blue': colors.lightBlue,
rose: colors.rose,
emerald: colors.emerald,
},
maxWidth: {
'8xl': '90rem',
},
maxHeight: (theme) => ({
'(screen-16)': `calc(100vh - ${theme('spacing.16')})`,
}),
boxShadow: {
px: '0 0 0 1px rgba(0, 0, 0, 0.5)',
link:
'inset 0 -0.125em 0 0 #fff, inset 0 -0.375em 0 0 rgba(165, 243, 252, 0.4)',
},
height: (theme) => ({
'(screen-16)': `calc(100vh - ${theme('spacing.16')})`,
}),
typography: (theme) => ({
DEFAULT: {
css: {
maxWidth: 'none',
color: theme('colors.gray.500'),
a: {
color: theme('colors.cyan.700'),
fontWeight: theme('fontWeight.medium'),
textDecoration: 'none',
boxShadow: theme('boxShadow.link'),
},
'a code': {
color: 'inherit',
fontWeight: 'inherit',
},
code: {
fontWeight: '400',
color: theme('colors.violet.600'),
},
strong: {
color: theme('colors.gray.900'),
fontWeight: theme('fontWeight.medium'),
},
'a strong': {
color: 'inherit',
fontWeight: 'inherit',
},
},
},
}),
},
},
variants: {
extend: {},
},
plugins: [require('@tailwindcss/typography')],
}