forked from electh/nextflux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
51 lines (49 loc) · 1.34 KB
/
Copy pathtailwind.config.js
File metadata and controls
51 lines (49 loc) · 1.34 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
/** @type {import('tailwindcss').Config} */
import typography from "@tailwindcss/typography";
import safe from "tailwindcss-safe-area";
export default {
content: ["./index.html", "./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
colors: {},
screens: {
// 自定义 display-mode: standalone 媒体查询
standalone: { raw: "(display-mode: standalone)" },
},
boxShadow: {
custom: "var(--shadow-custom)",
"custom-md": "var(--shadow-custom-md)",
"custom-inner": "var(--shadow-custom-inner)",
"custom-btn": "var(--shadow-custom-btn)",
},
keyframes: {
"collapsible-down": {
from: {
height: "0",
opacity: "0.3",
},
to: {
height: "var(--radix-collapsible-content-height)",
opacity: "1",
},
},
"collapsible-up": {
from: {
height: "var(--radix-collapsible-content-height)",
opacity: "1",
},
to: {
height: "0",
opacity: "0.3",
},
},
},
animation: {
"collapsible-down": "collapsible-down 0.2s ease-out",
"collapsible-up": "collapsible-up 0.2s ease-out",
},
},
},
darkMode: ["selector", '[class$="dark"]'],
plugins: [typography, safe],
};