246 lines
5.8 KiB
CSS
246 lines
5.8 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-geist-sans);
|
|
--font-mono: var(--font-mono);
|
|
--font-heading: var(--font-mono);
|
|
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
|
|
--radius-sm: 0.75rem;
|
|
--radius-md: 1rem;
|
|
--radius-lg: 1.5rem;
|
|
--radius-xl: 2rem;
|
|
--radius-2xl: 2.5rem;
|
|
--radius-3xl: 3rem;
|
|
}
|
|
|
|
:root {
|
|
/* Остужаем фон, чтобы он не был слепяще белым */
|
|
--background: oklch(0.98 0.01 240);
|
|
--foreground: oklch(0.2 0.02 260);
|
|
|
|
/* Карточки теперь чистые белые с легким блюром */
|
|
--card: oklch(1 0 0 / 90%);
|
|
--card-foreground: oklch(0.2 0.02 260);
|
|
--popover: oklch(1 0 0 / 95%);
|
|
--popover-foreground: oklch(0.2 0.02 260);
|
|
|
|
/* Светлая тема */
|
|
/* Primary = Более глубокий фиолетовый для контраста */
|
|
--primary: oklch(0.5 0.2 290);
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
/* Secondary = Более насыщенный циан (ближе к синему) */
|
|
--secondary: oklch(0.55 0.15 220);
|
|
--secondary-foreground: oklch(1 0 0);
|
|
|
|
--muted: oklch(0.94 0.01 240);
|
|
--muted-foreground: oklch(0.45 0.02 260);
|
|
--accent: oklch(0.94 0.02 290);
|
|
--accent-foreground: oklch(0.45 0.25 290);
|
|
--border: oklch(0.85 0.02 260);
|
|
--input: oklch(0.9 0.02 260);
|
|
--ring: oklch(0.5 0.2 290);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.1 0.01 260);
|
|
--foreground: oklch(0.98 0 0);
|
|
|
|
--card: oklch(0.14 0.02 260 / 50%);
|
|
--card-foreground: oklch(0.98 0 0);
|
|
--popover: oklch(0.12 0.02 260 / 80%);
|
|
--popover-foreground: oklch(0.98 0 0);
|
|
|
|
/* ТЕПЕРЬ PRIMARY = ФИОЛЕТОВЫЙ */
|
|
--primary: oklch(0.65 0.25 290);
|
|
--primary-foreground: oklch(0.98 0 0);
|
|
|
|
/* ТЕПЕРЬ SECONDARY = CYAN */
|
|
--secondary: oklch(0.85 0.15 190);
|
|
--secondary-foreground: oklch(0.1 0.01 260);
|
|
|
|
--muted: oklch(0.18 0.02 260);
|
|
--muted-foreground: oklch(0.85 0.02 260);
|
|
|
|
--accent: oklch(0.2 0.04 260);
|
|
--accent-foreground: oklch(0.98 0 0);
|
|
|
|
--border: oklch(0.25 0.03 260 / 60%);
|
|
--input: oklch(0.2 0.03 260 / 50%);
|
|
--ring: oklch(0.65 0.25 290);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
cursor:
|
|
url("/cursors/default.png") 0 0,
|
|
auto;
|
|
}
|
|
|
|
a,
|
|
button,
|
|
[role="button"],
|
|
.cursor-pointer-trigger {
|
|
cursor:
|
|
url("/cursors/pointer.png") 16 0,
|
|
pointer;
|
|
}
|
|
|
|
/* Текстовые поля и выделение текста */
|
|
input,
|
|
textarea,
|
|
[contenteditable="true"],
|
|
.selection-area {
|
|
cursor:
|
|
url("/cursors/text.png") 16 16,
|
|
text;
|
|
}
|
|
|
|
/* Состояние загрузки (можно вешать классом на body при fetch) */
|
|
.loading-state {
|
|
cursor:
|
|
url("/cursors/loading.png") 16 16,
|
|
wait;
|
|
}
|
|
}
|
|
|
|
.shadow-md {
|
|
box-shadow:
|
|
0 4px 6px -1px rgb(0 0 0 / 0.05),
|
|
0 2px 4px -2px rgb(0 0 0 / 0.05);
|
|
}
|
|
|
|
.dark .shadow-2xl {
|
|
/* Тонкое свечение для темной темы, которое не режет глаз */
|
|
box-shadow:
|
|
0 25px 50px -12px rgb(0 0 0 / 0.5),
|
|
0 0 20px -5px oklch(var(--primary) / 0.1);
|
|
}
|
|
|
|
@layer utilities {
|
|
.text-neon-cyan {
|
|
color: #ffffff;
|
|
text-shadow:
|
|
0 0 2px #fff,
|
|
0 0 8px #00f0ff,
|
|
0 0 15px #00f0ff,
|
|
0 0 30px #00f0ff;
|
|
}
|
|
|
|
.text-neon-purple {
|
|
color: #ffffff;
|
|
text-shadow:
|
|
0 0 2px #fff,
|
|
0 0 8px #8b3dff,
|
|
0 0 15px #8b3dff,
|
|
0 0 30px #8b3dff;
|
|
}
|
|
|
|
.light .text-neon-cyan {
|
|
color: #0284c7;
|
|
text-shadow: 0 0 2px rgba(2, 132, 199, 0.2);
|
|
}
|
|
|
|
.light .text-neon-purple {
|
|
color: #6d28d9;
|
|
text-shadow: 0 0 2px rgba(109, 40, 217, 0.2);
|
|
}
|
|
|
|
.animate-neon-flicker {
|
|
animation: neon-flicker 4s infinite alternate ease-in-out;
|
|
}
|
|
}
|
|
|
|
@keyframes neon-flicker {
|
|
0%,
|
|
18%,
|
|
22%,
|
|
25%,
|
|
53%,
|
|
57%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
20%,
|
|
24%,
|
|
55% {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
@keyframes scan {
|
|
from {
|
|
left: -100%;
|
|
}
|
|
to {
|
|
left: 100%;
|
|
}
|
|
}
|
|
|
|
.animate-scan {
|
|
animation: scan 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
}
|
|
|
|
@layer utilities {
|
|
.custom-scrollbar-retro::-webkit-scrollbar {
|
|
width: 16px;
|
|
}
|
|
.custom-scrollbar-retro::-webkit-scrollbar-track {
|
|
background: #dfdfdf;
|
|
box-shadow:
|
|
inset 1px 1px #fff,
|
|
inset -1px -1px #808080;
|
|
}
|
|
.custom-scrollbar-retro::-webkit-scrollbar-thumb {
|
|
background: #c0c0c0;
|
|
border: 2px solid #dfdfdf;
|
|
box-shadow:
|
|
1px 1px #808080,
|
|
-1px -1px #fff;
|
|
}
|
|
.dark .custom-scrollbar-retro::-webkit-scrollbar-track {
|
|
background: #1a1a1a;
|
|
}
|
|
.dark .custom-scrollbar-retro::-webkit-scrollbar-thumb {
|
|
background: #333;
|
|
}
|
|
}
|
|
|
|
#matrix-canvas {
|
|
display: block;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1; /* Чтобы фон был ЗА контентом */
|
|
pointer-events: auto; /* Чтобы мышка и свайпы работали */
|
|
background-color: #0a0a0c; /* Твой темный цвет из шейдера, чтобы не было белых вспышек */
|
|
}
|