forked from Crossbell-Box/xLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
87 lines (84 loc) · 2.29 KB
/
tailwind.config.ts
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
import { Config } from "tailwindcss"
import {
createVariableColors,
getDefaultColors,
variableColorsPlugin,
} from "tailwindcss-variable-colors"
import { iconsPlugin } from "@egoist/tailwindcss-icons"
const config: Config = {
content: ["./src/**/*.tsx"],
safelist: ["i-mingcute-link-line", "i-mingcute-copy-2-line"],
darkMode: ["class", "html.dark"],
theme: {
colors: createVariableColors(),
extend: {
boxShadow: {
modal: `rgb(0 0 0 / 20%) 0px 0px 1px, rgb(0 0 0 / 20%) 0px 20px 40px`,
"card-hover": `rgb(0 0 0 / 5%) 0px 0px 1px, rgb(0 0 0 / 12%) 0px 15px 30px`,
card: `rgb(0 0 0 / 5%) 0px 0px 1px, rgb(0 0 0 / 4%) 0px 15px 30px`,
button: `0 1.5px 1px var(--shadow-color-button)`,
},
colors: {
border: "var(--border-color)",
accent: "var(--theme-color)",
hover: "var(--hover-color)",
always: getDefaultColors() as any,
},
spacing: {
sidebar: `240px`,
},
fontFamily: {
mono: `Roboto Mono,Monaco,monospace`,
},
keyframes: {
"buzz-out": {
"10%": {
transform: "translateX(3px) rotate(2deg)",
},
"20%": {
transform: "translateX(-3px) rotate(-2deg)",
},
"30%": {
transform: "translateX(3px) rotate(2deg)",
},
"40%": {
transform: "translateX(-3px) rotate(-2deg)",
},
"50%": {
transform: "translateX(2px) rotate(1deg)",
},
"60%": {
transform: "translateX(-2px) rotate(-1deg)",
},
"70%": {
transform: "translateX(2px) rotate(1deg)",
},
"80%": {
transform: "translateX(-2px) rotate(-1deg)",
},
"90%": {
transform: "translateX(1px) rotate(0)",
},
"100%": {
transform: "translateX(-1px) rotate(0)",
},
},
},
animation: {
"buzz-out": "buzz-out .75s linear 1",
},
transitionDuration: {
"400": "400ms",
"800": "800ms",
},
},
},
variants: {},
plugins: [
require("tailwindcss-animate"),
require("tailwind-scrollbar-hide"),
iconsPlugin(),
variableColorsPlugin(),
],
}
export default config