-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
71 lines (70 loc) · 2.31 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
const { fontFamily, boxShadow } = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
darkMode: "class",
theme: {
extend: {
fontFamily: {
sans: ["var(--font-inter)", ...fontFamily.sans],
},
boxShadow: {
"skeuo-toggle-group": `
inset 0 1px 2px 0 rgb(0, 0, 0, .1),
inset 0 0 8px 0 rgb(0, 0, 0, .05),
0 0 1px 1px rgb(255, 255, 255, .5)
`,
"skeuo-toggle-group-dark": `
inset 0 1px 2px 0 rgb(0, 0, 0, .5),
inset 0 0 8px 0 rgb(255, 255, 255, .05),
0 0 1px 1px rgb(0, 0, 0, .05)
`,
"skeuo-toggle": `
inset 0 0 1px 1px rgb(255, 255, 255, .5),
0 1px 1px 0 rgb(0, 0, 0, .05),
0 1px 2px 0 rgb(0, 0, 0, .3)
`,
"skeuo-toggle-dark": `
inset 0 0 1px 1px rgb(255, 255, 255, .05),
0 1px 1px 0 rgb(0, 0, 0, .05),
0 1px 2px 0 rgb(0, 0, 0, .3)
`,
skeuo: `0 0 0 1px rgb(0, 0, 0, .05), 0 1px 0 0 rgb(0, 0, 0, .1), ${boxShadow.DEFAULT}`,
"skeuo-md": `0 0 0 1px rgb(0, 0, 0, .05), 0 1px 0 0 rgb(0, 0, 0, .1), ${boxShadow.md}`,
"skeuo-lg": `0 0 0 1px rgb(0, 0, 0, .05), 0 1px 0 0 rgb(0, 0, 0, .1), ${boxShadow.lg}`,
"skeuo-dark": `0 0 0 1px rgb(0, 0, 0, .8), inset 0 0 2px 1px rgb(255, 255, 255, .05), ${boxShadow.DEFAULT}`,
},
keyframes: {
enter: {
from: {
opacity: "var(--tw-enter-opacity, 1)",
transform:
"translate(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0))",
},
},
exit: {
to: {
opacity: "var(--tw-exit-opacity, 1)",
transform:
"translate(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0))",
},
},
},
animation: {
in: "enter 100ms ease-in-out",
out: "exit 100ms ease-in-out",
},
},
},
plugins: [
require("@tailwindcss/line-clamp"),
plugin(function ({ addVariant }) {
addVariant("data-delayed-open", '&[data-state="delayed-open"]');
addVariant("data-closed", '&[data-state="closed"]');
}),
],
};