-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
74 lines (70 loc) · 1.85 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
const plugin = require('tailwindcss/plugin')
module.exports = {
content: [ "./**/*.html", "./**/*.templ", "./**/*.go", ],
theme: {
extend: {
gridTemplateColumns: {
'docs': '19rem 1fr',
},
typography: {
DEFAULT: {
css: {
h1: {
"margin-bottom": "0",
padding: "0.25rem",
"border-bottom-width": "2px",
},
q: {
display: "block",
"margin-bottom": "1.25rem",
"padding-left": "1rem",
"border-left-width": "4px",
"color":"#656d76",
}
}
}
}
},
},
plugins: [
require('@tailwindcss/typography'),
plugin(function({ addUtilities, addComponents, e, prefix, config }) {
const newUtilities = {
'.horizontal-tb': {
writingMode: 'horizontal-tb',
},
'.vertical-rl': {
writingMode: 'vertical-rl',
'-webkit-writing-mode': 'vertical-rl',
'-ms-writing-mode': 'vertical-rl',
},
'.vertical-lr': {
writingMode: 'vertical-lr',
'-webkit-writing-mode': 'vertical-lr',
'-ms-writing-mode': 'vertical-lr',
}
}
addUtilities(newUtilities)
}),
plugin(function({ addComponents }) {
addComponents({
'.scrollbar::-webkit-scrollbar' : {
width: '10px',
height: '10px',
},
'.scrollbar::-webkit-scrollbar-track' : {
'border-radius': '100vh',
background: '#f7f4ed',
},
'.scrollbar::-webkit-scrollbar-thumb' : {
background: '#e0cbcb',
'border-radius': '100vh',
border: '2px solid #f6f7ed',
},
'.scrollbar::-webkit-scrollbar-thumb:hover' : {
background: '#c0a0b9',
},
})
})
],
}