-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
123 lines (119 loc) · 2.92 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
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
119
120
121
122
123
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin')
module.exports = {
darkMode: ["class"],
content: [
'./pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
],
prefix: "",
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
// figma
primary: "#24221C",
secondary: {
DEFAULT: "#1C211B",
highlight: "#272820",
},
text: {
DEFAULT: "#F2E6DC",
secondary: {
DEFAULT: "#AFA79F",
highlight: "#64605A",
},
},
buttonText: {
DEFAULT: "#CBC1B9",
info: "#429DDE",
cancel: "#EBC8C2",
confirm: "#A8DC4D"
},
buttonBackground: {
DEFAULT: "#2E302E",
hover: "hsl(120, 8%, 24%)",
info: {
DEFAULT: "#154061",
hover: "hsl(206, 70%, 29%)"
},
cancel: {
DEFAULT: "#873023",
hover: "hsl(8, 66%, 39%)"
},
confirm: {
DEFAULT: "#657B3C",
hover: "hsl(81, 40%, 42%)"
}
},
},
fontFamily: {
'rust': ['"Roboto Condensed"', 'sans-serif'],
'roboto': ['"Roboto"', 'sans-serif'],
},
// styling for the markdown content
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.text.DEFAULT'),
h1: {
color: theme('colors.text.DEFAULT'),
textAlign: 'center',
},
h2: {
color: theme('colors.text.DEFAULT'),
},
a: {
color: theme('colors.buttonText.info'),
'&:hover': {
color: theme('colors.buttonBackground.info'),
},
},
strong: {
color: theme('colors.text.secondary.DEFAULT'),
},
pre: {
backgroundColor: theme('colors.secondary.DEFAULT'),
}
},
},
}),
},
},
plugins: [
require("tailwindcss-animate"),
require('@tailwindcss/typography'),
plugin(function ({ addUtilities }) {
addUtilities({
'.scrollbar-none': {
'scrollbar-width': '1px',
'&::-webkit-scrollbar': {
display: 'none',
},
},
'.scrollbar-modern': {
'scrollbar-width': 'auto',
'&::-webkit-scrollbar': {
width: '8px',
height: '8px',
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: 'rgba(0, 0, 0, 0.5)',
borderRadius: '4px',
},
'&::-webkit-scrollbar-track': {
backgroundColor: 'transparent',
},
}
})
})
],
}