TorbatYar/frontend/styles/globals.css
Mortezakoohjani 86b37c1de9 Speed up accounting sidebar navigation with shared session cache and prefetch.
Stop refetching /me on every page mount, warm shared accounting queries, prefetch nav routes, and keep the shell visible during soft SPA transitions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 18:31:24 +03:30

104 lines
2.6 KiB
CSS

@import url("/fonts/yekan-bakh/yekan-bakh.css");
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
/* Brand (white-label) */
--color-primary: #0284c7;
--color-secondary: #0f172a;
--color-primary-muted: rgba(2, 132, 199, 0.12);
--color-primary-soft: rgba(2, 132, 199, 0.08);
--color-secondary-muted: rgba(15, 23, 42, 0.06);
/* Design system surfaces */
--canvas: #f8fafc;
--surface: #ffffff;
--surface-muted: #f1f5f9;
--border: #e2e8f0;
--muted: #64748b;
--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
--shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
--radius-sm: 0.5rem;
--radius-md: 0.75rem;
--radius-lg: 1rem;
/* Healthcare module accents */
--health-accent: #0d9488;
--health-accent-soft: rgba(13, 148, 136, 0.12);
--health-calm: #14b8a6;
--health-success: #059669;
--health-warning: #d97706;
--health-danger: #dc2626;
/* Beauty module accents — warm luxury palette */
--beauty-accent: #b76e79;
--beauty-accent-soft: rgba(183, 110, 121, 0.14);
--beauty-warm: #c9a87c;
--beauty-calm: #d4a5a5;
--beauty-success: #059669;
--beauty-warning: #d97706;
--beauty-danger: #dc2626;
}
.dark {
--color-primary: #38bdf8;
--color-secondary: #f1f5f9;
--color-primary-muted: rgba(56, 189, 248, 0.16);
--color-primary-soft: rgba(56, 189, 248, 0.1);
--color-secondary-muted: rgba(241, 245, 249, 0.08);
--canvas: #0b1220;
--surface: #111827;
--surface-muted: #1e293b;
--border: #334155;
--muted: #94a3b8;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
--shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
--health-accent: #2dd4bf;
--health-accent-soft: rgba(45, 212, 191, 0.15);
--health-calm: #5eead4;
--health-success: #34d399;
--health-warning: #fbbf24;
--health-danger: #f87171;
--beauty-accent: #e8b4bc;
--beauty-accent-soft: rgba(232, 180, 188, 0.18);
--beauty-warm: #d4b896;
--beauty-calm: #e8c4c4;
--beauty-success: #34d399;
--beauty-warning: #fbbf24;
--beauty-danger: #f87171;
}
body {
font-family: "Yekan Bakh FaNum", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
@apply bg-[var(--canvas)] text-secondary antialiased;
}
@layer utilities {
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
}
@keyframes ty-route-progress {
0% {
transform: translateX(100%);
}
50% {
transform: translateX(0%);
}
100% {
transform: translateX(-100%);
}
}