This repository has been archived by the owner on Feb 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtailwind.config.js
119 lines (116 loc) · 3.21 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
const { nextui } = require("@nextui-org/react");
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
container: {
center: true,
screens: {
"2xl": "1200px",
},
},
fontFamily: {
sBold: "SpaceGrotesk-Bold",
sSemiBold: "SpaceGrotesk-SemiBold",
sMedium: "SpaceGrotesk-Medium",
sRegular: "SpaceGrotesk-Regular",
oSemibold: "Orbitron-SemiBold",
},
colors: {
background: {
DEFAULT: "#030303",
50: "#111217",
},
foreground: {
DEFAULT: "#FFFFFF",
50: "#B2B2B2",
100: "#8C8C8C",
},
primary: {
DEFAULT: "#00FFF6",
50: "#F0FDFD",
100: "#E0FCFC",
200: "#D0F8F8",
300: "#C0F4F4",
400: "#B0F0F0",
500: "#00FFF6",
600: "#00E2E2",
700: "#00C5C5",
800: "#00A8A8",
900: "#008B8B",
950: "#006666",
},
secondary: {
DEFAULT: "#5624DC",
50: "#EEE9FB",
100: "#DDD3F8",
200: "#BBA7F1",
300: "#997BEA",
400: "#774FE3",
500: "#5624DC",
600: "#441CB0",
700: "#331584",
800: "#220E58",
900: "#11072C",
950: "#080416",
},
},
animation: {
orbit: "orbit calc(var(--duration)*1s) linear infinite",
marquee: "marquee var(--duration) linear infinite",
"marquee-vertical": "marquee-vertical var(--duration) linear infinite",
aurora: "aurora 60s linear infinite",
},
keyframes: {
orbit: {
"0%": {
transform:
"rotate(0deg) translateY(calc(var(--radius) * 1px)) rotate(0deg)",
},
"100%": {
transform:
"rotate(360deg) translateY(calc(var(--radius) * 1px)) rotate(-360deg)",
},
},
marquee: {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-100% - var(--gap)))" },
},
"marquee-vertical": {
from: { transform: "translateY(0)" },
to: { transform: "translateY(calc(-100% - var(--gap)))" },
},
aurora: {
from: {
backgroundPosition: "50% 50%, 50% 50%",
},
to: {
backgroundPosition: "350% 50%, 350% 50%",
},
},
},
plugins: [addVariablesForColors],
},
},
darkMode: "class",
plugins: [nextui(), addVariablesForColors, require("tailwindcss-animate")],
};
function addVariablesForColors({ addBase, theme }) {
let allColors = flattenColorPalette(theme("colors"));
let newVars = Object.fromEntries(
Object.entries(allColors).map(([key, val]) => [`--${key}`, val])
);
addBase({
":root": newVars,
});
}