-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
54 lines (52 loc) · 1.49 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
import type { Config } from "tailwindcss";
const plugin = require("tailwindcss/plugin");
export default {
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./app.vue",
"./error.vue",
],
theme: {
extend: {
colors: {
app: {
primary: "hsl(var(--color-app-primary) / <alpha-value>)",
secondary: "hsl(var(--color-app-secondary) / <alpha-value>)",
// fonts
parag: "hsl(var(--color-app-paragraph) / <alpha-value>)",
link: "hsl(var(--color-app-link) / <alpha-value>)",
text: "hsl(var(--color-app-text) / <alpha-value>)",
title: "hsl(var(--color-app-title) / <alpha-value>)",
// surfaces
surface: "hsl(var(--color-app-surface) / <alpha-value>)",
background: "hsl(var(--color-app-background) / <alpha-value>)",
// buttons
btn: "hsl(var(--color-app-bg-button) / <alpha-value>)",
},
},
},
},
plugins: [
plugin(function (obj: any) {
obj.addUtilities({
".flex-center": {
display: "flex",
alignItems: "center",
justifyContent: "center",
},
".flex-center-between": {
display: "flex",
alignItems: "center",
justifyContent: "space-between",
},
".flex-column": {
display: "flex",
flexDirection: "column",
},
});
}),
],
} satisfies Config;