-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
84 lines (82 loc) · 2.55 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
import { join } from "path";
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
import { skeleton } from "@skeletonlabs/tw-plugin";
import { sneakyCrowSkeletonTheme } from "./theme";
const config = {
darkMode: "selector",
content: [
"./src/**/*.{html,js,svelte,ts}",
join(require.resolve("@skeletonlabs/skeleton"), "../**/*.{html,js,svelte,ts}")
],
theme: {
fontFamily: {
sans: ["Outfit", "sans-serif"],
mono: [
"ui-monospace",
"SFMono-Regular",
"Menlo",
"Monaco",
"Consolas",
"Liberation Mono",
"Courier New",
"monospace"
]
},
fontSize: {
xs: "0.9rem",
sm: "1rem",
base: ["1.25rem", { lineHeight: "1.5rem" }],
lg: ["1.5rem", { lineHeight: "1.8rem" }],
xl: ["2rem", { lineHeight: "2.2rem" }],
"2xl": ["3.2rem", { lineHeight: "3.4rem" }],
"3xl": ["3.8rem", { lineHeight: "4rem" }],
"4xl": ["4.5rem", { lineHeight: "4.7rem" }],
"5xl": ["5.5rem", { lineHeight: "5.7rem" }],
"6xl": ["6.5rem", { lineHeight: "6.7rem" }],
"7xl": ["7.5rem", { lineHeight: "7.7rem" }],
"8xl": ["8.5rem", { lineHeight: "8.7rem" }],
"9xl": ["9.5rem", { lineHeight: "9.7rem" }]
},
extend: {
colors: {
black: "#1f1f1f",
white: "#fefcd9"
},
gridTemplateColumns: {
header: "100px repeat(5, 1fr)"
},
gridTemplateRows: {
main: "min-content 1fr min-content"
},
boxShadow: {
"flat-green": "10px 10px #0ba750"
},
transitionProperty: {
height: "height"
}
}
},
plugins: [
skeleton({
themes: {
custom: [sneakyCrowSkeletonTheme]
}
}),
plugin(function ({ addUtilities }) {
addUtilities({
// https://developer.mozilla.org/en-US/docs/Web/CSS/writing-mode
".horizontal-writing-tb": { "writing-mode": "horizontal-tb" },
".vertical-writing-rl": { "writing-mode": "vertical-rl" },
".vertical-writing-lr": { "writing-mode": "vertical-lr" },
// https://developer.mozilla.org/en-US/docs/Web/CSS/text-orientation
".orientation-mixed": { "text-orientation": "mixed" },
".orientation-upright": { "text-orientation": "upright" },
".orientation-sideways-right": { "text-orientation": "sideways-right" },
".orientation-sideways": { "text-orientation": "sideways" },
".orientation-glyph": { "text-orientation": "use-glyph-orientation" }
});
})
]
} satisfies Config;
export default config;