-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.js
118 lines (118 loc) · 3.12 KB
/
theme.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
module.exports = {
extend: {
fontFamily: {
'heading': ['Roboto Slab', 'serif'],
'body': ['Merriweather Sans', 'sans-serif']
},
colors: {
theme: {
text: '#4aacf3',
background: '#f5f5f5',
dot: '#828A92',
},
code: {
green: '#b5f4a5',
yellow: '#ffe484',
purple: '#d9a9ff',
red: '#ff8383',
blue: '#93ddfd',
white: '#fff',
},
logo: {
vue: "#41B883"
}
},
},
// https://github.com/benface/tailwindcss-typography
textStyles: theme => ({
heading: {
output: false,
color: theme('colors.blue.500'),
fontWeight: theme('fontWeight.bold'),
lineHeight: theme('lineHeight.tight'),
fontFamily: theme('fontFamily.heading'),
},
h1: { extends: 'heading', fontSize: theme('fontSize.6xl') },
h2: { extends: 'heading', fontSize: theme('fontSize.5xl') },
h3: { extends: 'heading', fontSize: theme('fontSize.4xl') },
link: {
fontWeight: theme('fontWeight.bold'),
color: theme('colors.blue.600'),
'&:hover': {
color: theme('colors.blue.500'),
textDecoration: 'underline',
},
},
markdown: {
backgroundColor: theme('colors.theme.background'),
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
overflow: 'hidden',
fontWeight: theme('fontWeight.normal'),
fontSize: '32px',
color: theme('colors.gray.900'),
lineHeight: theme('lineHeight.relaxed'),
'> * + *': {
marginTop: '1.5rem',
},
'> h1': { extends: 'h1' },
'> h2': { extends: 'h2' },
'> h3': { extends: 'h3' },
'ul': {
paddingLeft: '1.5rem',
listStyleType: 'disc',
},
'ol': {
paddingLeft: '1.5rem',
listStyleType: 'decimal',
},
'a': {
extends: 'link',
},
'b, strong': {
fontWeight: theme('fontWeight.bold'),
},
'i, em': {
fontStyle: 'italic',
},
'pre[class*=language-]': {
padding: '1rem',
fontSize: theme('fontSize.base'),
// fontFamily: theme('fontFamily.mono'),
fontWeight: theme('fontWeight.normal'),
lineHeight: theme('lineHeight.normal'),
backgroundColor: theme('colors.gray.800'),
color: theme('colors.gray.200'),
whitespace: 'nowrap',
scrollbarWidth: 'none',
},
'pre[class*=language-]::-webkit-scrollbar': {
display: 'none',
},
'table': {
width: '50%',
textAlign: 'left',
borderCollapse: 'collapse',
overflow: 'scroll-x',
},
'table th, table td': {
minWidth: '200px',
},
'table th': {
fontSize: theme('fontSize.lg'),
fontWeight: theme('fontWeight.semibold'),
padding: '.5rem',
color: theme('colors.gray.900'),
backgroundColor: theme('colors.gray.300'),
},
'table td': {
fontSize: theme('fontSize.lg'),
padding: '.5rem',
borderWidth: '1px',
borderColor: theme('colors.gray.400'),
}
},
}),
}