-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
98 lines (90 loc) · 2.91 KB
/
tailwind.config.ts
File metadata and controls
98 lines (90 loc) · 2.91 KB
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
import type { Config } from "tailwindcss";
const plugin = require("tailwindcss/plugin");
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
backgroundImage: {
darkSlash: "url('../../public/images/general/dark_slash.png')",
lightSlash: "url('../../public/images/general/light_slash.png')",
},
content: {
darkSlash: "url('../../public/images/general/dark_slash.png')",
lightSlash: "url('../../public/images/general/light_slash.png')",
},
colors: {
lightBg: "#F5E7D3",
lightText: "#AC4800",
lightText80: "rgba(172, 72, 0, 0.8)",
lightText60: "rgba(172, 72, 0, 0.6)",
lightText20: "rgba(172, 72, 0, 0.2)",
darkBg: "#1D1C1C",
darkText: "#F5E7D3",
darkText80: "rgba(245, 231, 211, 0.8)",
darkText60: "rgba(245, 231, 211, 0.6)",
darkText20: "rgba(245, 231, 211, 0.2)",
accent: "#323816",
},
screens: {
xs: "480px",
// => @media (min-width: 480px) { ... }
sm: "768px",
// => @media (min-width: 768px) { ... }
md: "992px",
// => @media (min-width: 992px) { ... }
lg: "1200px",
// => @media (min-width: 1200px) { ... }
xl: "1320px",
// => @media (min-width: 1320px) { ... }
"2xl": "1920px",
},
keyframes: {
smooth: {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
carousel: {
// to: { transform: 'translate(calc(-50% - 23vw))' },
"0%": { transform: "translateX(0%)" },
"100%": { transform: "translateX(-100%)" },
},
carouselSlow: {
// to: { transform: 'translate(calc(-50% - 23vw))' },
"0%": { transform: "translateX(0%)" },
"100%": { transform: "translateX(-50%)" },
},
},
animation: {
"spin-slow": "spin 8s linear infinite",
"appear": "smooth 0.6s cubic-bezier(0.83, 0, 0.17, 1)",
"carousel": "carousel 7s linear infinite backwards",
"carousel-slow": "carousel 20s linear infinite backwards",
"carousel-slower": "carouselSlow 220s linear infinite backwards",
},
},
},
plugins: [
plugin(({ addBase, theme }: { addBase: any; theme: any }) => {
addBase({
".scrollbar::-webkit-scrollbar": {
width: "3px",
},
".scrollbar::-webkit-scrollbar-track": {
backgroundColor: "transparent",
},
".scrollbar.scrollLight::-webkit-scrollbar-thumb": {
backgroundColor: "rgba(172, 72, 0, 0.8)",
},
".scrollbar.scrollDark::-webkit-scrollbar-thumb": {
backgroundColor: "rgba(245, 231, 211, 0.8)",
},
});
}),
],
darkMode: "selector",
};
export default config;