92 lines
3.1 KiB
TypeScript
92 lines
3.1 KiB
TypeScript
import type { Config } from "tailwindcss";
|
|
|
|
const config = {
|
|
darkMode: "class",
|
|
content: [
|
|
"./pages/**/*.{ts,tsx}",
|
|
"./components/**/*.{ts,tsx}",
|
|
"./app/**/*.{ts,tsx}",
|
|
"./src/**/*.{ts,tsx}",
|
|
],
|
|
prefix: "",
|
|
theme: {
|
|
container: {
|
|
center: true,
|
|
padding: "2rem",
|
|
screens: {
|
|
"2xl": "1400px",
|
|
},
|
|
},
|
|
extend: {
|
|
colors: {
|
|
background: "#0B0D17",
|
|
foreground: "#F8FAFC",
|
|
|
|
// ТЕПЕРЬ PRIMARY = ФИОЛЕТОВЫЙ
|
|
primary: {
|
|
DEFAULT: "#8B3DFF", // Яркий, сочный фиолетовый
|
|
foreground: "#FFFFFF", // Белый текст на фиолетовом фоне
|
|
},
|
|
// ТЕПЕРЬ SECONDARY = CYAN
|
|
secondary: {
|
|
DEFAULT: "#00E5F2", // Светлый циан
|
|
foreground: "#000000", // Черный текст на голубом фоне
|
|
},
|
|
muted: {
|
|
DEFAULT: "#1E2136",
|
|
foreground: "#A0AEC0", // Светлый серый для читаемости
|
|
},
|
|
border: "#2A2E45",
|
|
card: {
|
|
DEFAULT: "rgba(22, 25, 43, 0.6)",
|
|
foreground: "#F8FAFC",
|
|
},
|
|
},
|
|
animation: {
|
|
"accordion-down": "accordion-down 0.2s ease-out",
|
|
"accordion-up": "accordion-up 0.2s ease-out",
|
|
"pulse-primary":
|
|
"pulse-primary 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
|
|
},
|
|
keyframes: {
|
|
"accordion-down": {
|
|
from: { height: "0" },
|
|
to: { height: "var(--radix-accordion-content-height)" },
|
|
},
|
|
"accordion-up": {
|
|
from: { height: "var(--radix-accordion-content-height)" },
|
|
to: { height: "0" },
|
|
},
|
|
"pulse-primary": {
|
|
"0%, 100%": {
|
|
opacity: "1",
|
|
boxShadow: "0 0 10px #8B3DFF, 0 0 20px #8B3DFF",
|
|
},
|
|
"50%": {
|
|
opacity: ".5",
|
|
boxShadow: "0 0 5px #8B3DFF, 0 0 10px #8B3DFF",
|
|
},
|
|
},
|
|
},
|
|
// Tailwind автоматически создаст классы: cursor-net-default, cursor-net-pointer и т.д.
|
|
cursor: {
|
|
"net-default": "url('/cursors/default.png') 1 1, auto",
|
|
"net-pointer": "url('/cursors/pointer.png') 13 1, pointer",
|
|
"net-text": "url('/cursors/text.png') 16 16, text",
|
|
"net-wait": "url('/cursors/wait.png') 16 16, wait", // Переименовал в wait.png для единообразия
|
|
"net-crosshair": "url('/cursors/crosshair.png') 16 16, crosshair",
|
|
"net-move": "url('/cursors/move.png') 16 16, move",
|
|
"net-not-allowed": "url('/cursors/not-allowed.png') 16 16, not-allowed",
|
|
"net-help": "url('/cursors/help.png') 1 1, help",
|
|
"net-grab": "url('/cursors/grab.png') 16 16, grab",
|
|
"net-grabbing": "url('/cursors/grabbing.png') 16 16, grabbing",
|
|
"net-resize-h": "url('/cursors/resize-h.png') 16 16, ew-resize",
|
|
"net-resize-v": "url('/cursors/resize-v.png') 16 16, ns-resize",
|
|
},
|
|
},
|
|
},
|
|
plugins: [require("tailwindcss-animate")],
|
|
} satisfies Config;
|
|
|
|
export default config;
|