-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
85 lines (83 loc) · 3 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
const contentHeight = '44vh';
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
fontFamily: {
EBGaramond: ['EB Garamond', 'serif'],
},
backgroundImage: {
'left-top-header': "url('/frameTopLeft.png')",
'right-top-header': "url('/frameTopRight.png')",
'left-bottom-header': "url('/frameBottomLeft.png')",
'right-bottom-header': "url('/frameBottomRight.png')",
},
colors: {
golden: {
DEFAULT: '#b4832f',
light: '#b49258',
},
beige: {
DEFAULT: '#efebd9',
gray: '#e1e1e1',
light: '#f5f5dc',
},
},
spacing: {
'content-height': contentHeight,
},
minHeight: {
'content-height': contentHeight,
},
maxHeight: {
'content-height': contentHeight,
},
},
},
plugins: [
function ({ addComponents, theme }) {
addComponents({
'.scrollbar-golden': {
'&::-webkit-scrollbar': {
height: '7px',
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: theme('colors.golden.light'),
borderRadius: '4px',
},
'&::-webkit-scrollbar-thumb:active': {
backgroundColor: theme('colors.golden.DEFAULT'),
},
'&::-webkit-scrollbar-thumb:hover': {
display: 'block',
backgroundColor: theme('colors.golden.DEFAULT'),
shadow: theme('boxShadow.sm'),
},
'&::-webkit-scrollbar-track': {
backgroundColor: theme('colors.beige.gray'),
borderRadius: '4px',
},
'&::-webkit-scrollbar-track:hover': {
backgroundColor: theme('colors.beige.DEFAULT'),
shadow: theme('boxShadow.sm'),
},
'&::-webkit-scrollbar-track:active': {
backgroundColor: theme('colors.beige.DEFAULT'),
shadow: theme('boxShadow.sm'),
},
'&:hover': {
'&::-webkit-scrollbar-track': {
display: 'block',
},
},
'&:active': {
'&::-webkit-scrollbar-track': {
display: 'block',
},
},
},
});
},
],
};