-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
88 lines (82 loc) · 2.43 KB
/
tailwind.config.js
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
88
import defaultConfig from "tailwindcss/defaultConfig";
import plugin from "tailwindcss/plugin";
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/app.html", "./src/**/*.{svelte,ts}"],
theme: {
extend: {
colors: {
yellow: { DEFAULT: "#f3e600", dark: "#d3c600" },
cyan: { light: "#75ffff", DEFAULT: "#04daf6", dark: "#008b9d", darker: "#00464f" },
red: { DEFAULT: "#ff003c", dark: "#910022", darker: "#40000f", darkest: "#090002" },
witcher: { gold: "#e1a735", silver: "#718381" },
},
fontFamily: {
sans: ["Rajdhani", ...defaultConfig.theme.fontFamily.sans],
witcher: ["Metamorphous", ...defaultConfig.theme.fontFamily.serif],
cyberpunk: ["Cyberpunk", ...defaultConfig.theme.fontFamily.sans],
},
listStyleType: {
dash: "'\\2013 '",
},
fill: {
"gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))",
},
animation: {
blink: "blink 0.5s linear infinite alternate",
},
boxShadow: {
"xl-front": "2px 3px 16px 8px rgb(0 0 0 / 0.9)",
},
keyframes: {
blink: {
from: { opacity: 1 },
to: { opacity: 0 },
},
},
transitionDuration: {
DEFAULT: "250ms",
},
dropShadow: {
px: "1px 1px 0 black",
},
},
},
plugins: [
plugin(function ({ addVariant, matchUtilities, matchVariant, theme }) {
addVariant("hover-focus", ["&:hover", "&:focus", "&:focus-within"]);
addVariant("group-hover-focus", [
":merge(.group):hover &",
":merge(.group):focus &",
":merge(.group):focus-within &",
]);
addVariant("peer-hover-focus", [
":merge(.peer):hover ~ &",
":merge(.peer):focus ~ &",
":merge(.peer):focus-within ~ &",
]);
addVariant("pseudo", ["&::before", "&::after"]);
addVariant("noscript", ["body.noscript &"]);
addVariant("script", ["body:not(.noscript) &"]);
matchVariant(
"max-v",
(value) => {
return `@media (max-height: ${value})`;
},
{ values: theme("screens") },
);
matchVariant(
"v",
(value) => {
return `@media (min-height: ${value})`;
},
{ values: theme("screens") },
);
matchUtilities({
clip: (value) => ({
"clip-path": value,
}),
});
}),
],
};