-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.cjs
47 lines (46 loc) · 1.36 KB
/
tailwind.config.cjs
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
/* eslint-disable @typescript-eslint/no-var-requires */
const plugin = require("tailwindcss/plugin");
const {
tailwindPrintVariantPlugin,
} = require("./src/lib/tailwind-print-variant");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{html,js,jsx,ts,tsx,mdx}"],
darkMode: "class",
theme: {
extend: {
screens: { xs: "380px" },
textColor: {
accent: "var(--text-accent)",
dark: "#1e1e1e",
"dark-invert": "var(--dark-invert)",
subtle: "#6f6f6f",
"subtle-invert": "var(--subtle-invert)",
"subtle-white": "#ffffffd1",
"subtle-white-invert": "var(--subtle-white-invert)",
},
colors: {
accent: "#046b46",
"black-invert": "rgb(var(--black-invert) / <alpha-value>)",
},
fontFamily: {
inter: ['"Inter"', "sans-serif"],
"fira-code": ['"Fira Code"', "monospace"],
"roboto-slab": ['"Roboto Slab"', "serif"],
},
listStyleType: {
"lower-latin": "lower-latin",
},
animation: {
blink: "cursor-blink 1s steps(1) infinite",
},
},
},
plugins: [
tailwindPrintVariantPlugin,
plugin(function ({ addVariant }) {
addVariant("exclusive-hover", "&:hover:not(:has(.hover-exclude:hover))");
addVariant("targeted-hover", "&:has(.hover-target:hover)");
}),
],
};