-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.ts
65 lines (64 loc) · 1.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
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
import defaultTheme from "tailwindcss/defaultTheme";
import flattenColorPalette from "tailwindcss/lib/util/flattenColorPalette";
import tailwindcss3d from "tailwindcss-3d";
import svgToTinyDataUri from "mini-svg-data-uri";
export default {
content: ["./src/**/*.{html,svelte,js,ts}"],
theme: {
screens: {
xs: "475px",
...defaultTheme.screens,
xxl: "1600px"
},
extend: {
fontFamily: {
sans: ["Chillax", ...defaultTheme.fontFamily.sans],
variable: "Chillax Variable"
},
colors: {
dominant: "#30d158"
},
borderColor: {
primary: "white"
},
boxShadowColor: {
primary: "black"
},
textColor: {
primary: "white",
inverted: "black"
},
backgroundColor: {
primary: "black",
secondary: "#1c1c1e"
},
backgroundImage: {
glass:
"linear-gradient(107.36deg,hsla(0,0%,80%,.1) 37.79%,hsla(0,0%,90%,0.08) 80%,hsla(0,0%,100%,0) 102.99%)"
},
maxWidth: {
"large-screen": "120rem"
}
}
},
plugins: [
tailwindcss3d,
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
"bg-grid": value => ({
backgroundImage: `url("${svgToTinyDataUri(
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" fill="none" stroke="${value}"><path d="M0 .5H31.5V32"/></svg>`
)}")`
})
},
{ values: flattenColorPalette(theme("backgroundColor")), type: "color" }
);
})
],
future: {
hoverOnlyWhenSupported: true
}
} satisfies Config;