-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
69 lines (68 loc) · 2.07 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
66
67
68
69
import type { Config } from "tailwindcss";
const { nextui } = require("@nextui-org/react");
import theme from "./themes/static.json";
const config: Config = {
content: [
"./src/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
aspectRatio: {
"4/3": "4/3",
},
fontSize: {
clamp: "clamp(1rem, 5vw, 3rem)",
},
keyframes: {
"scrolling-banner": {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-50% - var(--gap)/2))" },
},
"scrolling-banner-vertical": {
from: { transform: "translateY(0)" },
to: { transform: "translateY(calc(-50% - var(--gap)/2))" },
},
text: {
"0%, 100%": {
"background-size": "200% 200%",
"background-position": "left center",
},
"50%": {
"background-size": "200% 200%",
"background-position": "right center",
},
},
},
animation: {
"scrolling-banner": "scrolling-banner var(--duration) linear infinite",
"scrolling-banner-vertical":
"scrolling-banner-vertical var(--duration) linear infinite",
text: "text 5s ease infinite",
},
...theme.background,
},
},
// darkMode: "class",
plugins: [
nextui({
prefix: "nextui", // prefix for themes variables
addCommonColors: false, // override common colors (e.g. "blue", "green", "pink").
defaultTheme: "light", // default theme from the themes object
defaultExtendTheme: "light", // default theme to extend on custom themes
layout: {}, // common layout tokens (applied to all themes)
themes: {
light: {
colors: {
background: "#ffffff", // or DEFAULT
foreground: "#11181C", // or 50 to 900 DEFAULT
...theme.colors,
},
},
},
}),
],
};
export default config;