363 lines
12 KiB
CSS
363 lines
12 KiB
CSS
/**
|
|
* Global Theme Variables
|
|
*
|
|
* This file defines the design system for the entire application.
|
|
* All colors, spacing, typography, and other design tokens are centralized here.
|
|
*
|
|
* Usage: var(--variable-name)
|
|
* Example: color: var(--color-primary);
|
|
*/
|
|
|
|
:root {
|
|
/* ============================================
|
|
COLOR PALETTE
|
|
============================================ */
|
|
|
|
/* Primary Colors */
|
|
--color-primary: dodgerblue;
|
|
--color-primary-hover: #1677d2;
|
|
--color-primary-light: #dceeff;
|
|
--color-primary-dark: #0f5db4;
|
|
|
|
/* Secondary Colors */
|
|
--color-secondary: #7c5a3c;
|
|
--color-secondary-hover: #64462e;
|
|
--color-secondary-light: #f5ede4;
|
|
|
|
/* Accent Colors */
|
|
--color-accent: #f59e0b;
|
|
--color-accent-light: #fff2d8;
|
|
|
|
/* Semantic Colors */
|
|
--color-success: #15803d;
|
|
--color-success-hover: #166534;
|
|
--color-success-light: #dcfce7;
|
|
|
|
--color-danger: #dc2626;
|
|
--color-danger-hover: #b91c1c;
|
|
--color-danger-light: #fee2e2;
|
|
|
|
--color-warning: #d97706;
|
|
--color-warning-hover: #b45309;
|
|
--color-warning-light: #ffedd5;
|
|
|
|
--color-info: #0369a1;
|
|
--color-info-hover: #075985;
|
|
--color-info-light: #dbeafe;
|
|
|
|
/* Neutral Colors */
|
|
--color-white: #ffffff;
|
|
--color-black: #0f172a;
|
|
--color-gray-50: #fcfbf8;
|
|
--color-gray-100: #f6f3ee;
|
|
--color-gray-200: #ebe6dd;
|
|
--color-gray-300: #ddd4c7;
|
|
--color-gray-400: #b6ab9a;
|
|
--color-gray-500: #8e8579;
|
|
--color-gray-600: #6b645b;
|
|
--color-gray-700: #47423d;
|
|
--color-gray-800: #2d2a27;
|
|
--color-gray-900: #1c1917;
|
|
|
|
/* Text Colors */
|
|
--color-text-primary: #1f2937;
|
|
--color-text-secondary: #5b6473;
|
|
--color-text-muted: #8e98a8;
|
|
--color-text-inverse: #f8fafc;
|
|
--color-text-disabled: #9aa4b2;
|
|
|
|
/* Background Colors */
|
|
--color-bg-body: #f4f1ea;
|
|
--color-bg-surface: rgba(255, 255, 255, 0.9);
|
|
--color-bg-elevated: rgba(255, 255, 255, 0.98);
|
|
--color-bg-hover: #f2f7f6;
|
|
--color-bg-disabled: #ece7de;
|
|
--color-bg-hero: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 158, 11, 0.12));
|
|
|
|
/* Border Colors */
|
|
--color-border-light: rgba(119, 107, 91, 0.18);
|
|
--color-border-medium: rgba(119, 107, 91, 0.32);
|
|
--color-border-dark: rgba(91, 81, 69, 0.55);
|
|
--color-border-disabled: rgba(148, 163, 184, 0.35);
|
|
|
|
/* ============================================
|
|
SPACING
|
|
============================================ */
|
|
--spacing-xs: 0.25rem;
|
|
--spacing-sm: 0.5rem;
|
|
--spacing-md: 1rem;
|
|
--spacing-lg: 1.5rem;
|
|
--spacing-xl: 2rem;
|
|
--spacing-2xl: 3rem;
|
|
--spacing-3xl: 4rem;
|
|
|
|
/* ============================================
|
|
TYPOGRAPHY
|
|
============================================ */
|
|
--font-family-base: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
|
|
--font-family-heading: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", sans-serif;
|
|
--font-family-mono: "IBM Plex Mono", "Cascadia Code", "Consolas", monospace;
|
|
|
|
--font-size-xs: 0.75rem;
|
|
--font-size-sm: 0.875rem;
|
|
--font-size-base: 1rem;
|
|
--font-size-lg: 1.125rem;
|
|
--font-size-xl: 1.25rem;
|
|
--font-size-2xl: 1.5rem;
|
|
--font-size-3xl: 2rem;
|
|
--font-size-4xl: 2.75rem;
|
|
|
|
--font-weight-normal: 400;
|
|
--font-weight-medium: 500;
|
|
--font-weight-semibold: 600;
|
|
--font-weight-bold: 700;
|
|
|
|
--line-height-tight: 1.15;
|
|
--line-height-normal: 1.5;
|
|
--line-height-relaxed: 1.75;
|
|
|
|
/* ============================================
|
|
BORDERS & RADIUS
|
|
============================================ */
|
|
--border-width-thin: 1px;
|
|
--border-width-medium: 2px;
|
|
--border-width-thick: 4px;
|
|
|
|
--border-radius-sm: 10px;
|
|
--border-radius-md: 14px;
|
|
--border-radius-lg: 20px;
|
|
--border-radius-xl: 28px;
|
|
--border-radius-full: 999px;
|
|
|
|
/* ============================================
|
|
SHADOWS
|
|
============================================ */
|
|
--shadow-sm: 0 8px 20px rgba(36, 33, 28, 0.06);
|
|
--shadow-md: 0 16px 34px rgba(36, 33, 28, 0.1);
|
|
--shadow-lg: 0 24px 56px rgba(36, 33, 28, 0.14);
|
|
--shadow-xl: 0 32px 80px rgba(36, 33, 28, 0.18);
|
|
--shadow-card: 0 14px 36px rgba(36, 33, 28, 0.09);
|
|
|
|
/* ============================================
|
|
TRANSITIONS
|
|
============================================ */
|
|
--transition-fast: 0.15s ease;
|
|
--transition-base: 0.24s ease;
|
|
--transition-slow: 0.35s ease;
|
|
|
|
/* ============================================
|
|
Z-INDEX LAYERS
|
|
============================================ */
|
|
--z-dropdown: 100;
|
|
--z-sticky: 200;
|
|
--z-fixed: 300;
|
|
--z-modal-backdrop: 900;
|
|
--z-modal: 1000;
|
|
--z-tooltip: 1100;
|
|
|
|
/* ============================================
|
|
LAYOUT
|
|
============================================ */
|
|
--container-max-width: 560px;
|
|
--page-max-width: 1180px;
|
|
--container-padding: var(--spacing-md);
|
|
|
|
/* ============================================
|
|
COMPONENT-SPECIFIC
|
|
============================================ */
|
|
--button-padding-y: 0.8rem;
|
|
--button-padding-x: 1.25rem;
|
|
--button-border-radius: var(--border-radius-full);
|
|
--button-font-weight: var(--font-weight-semibold);
|
|
|
|
--input-padding-y: 0.85rem;
|
|
--input-padding-x: 1rem;
|
|
--input-border-color: var(--color-border-light);
|
|
--input-border-radius: var(--border-radius-md);
|
|
--input-focus-border-color: var(--color-primary);
|
|
--input-focus-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
|
|
|
|
--card-bg: var(--color-bg-surface);
|
|
--card-padding: var(--spacing-lg);
|
|
--card-border-radius: var(--border-radius-lg);
|
|
--card-shadow: var(--shadow-card);
|
|
|
|
--button-secondary-bg: rgba(30, 144, 255, 0.12);
|
|
--button-secondary-hover-bg: rgba(30, 144, 255, 0.2);
|
|
--button-secondary-border: rgba(30, 144, 255, 0.26);
|
|
--button-secondary-border-hover: rgba(30, 144, 255, 0.42);
|
|
--button-secondary-text: var(--color-primary-dark);
|
|
|
|
--button-ghost-bg: rgba(30, 144, 255, 0.08);
|
|
--button-ghost-hover-bg: rgba(30, 144, 255, 0.16);
|
|
--button-ghost-border: rgba(30, 144, 255, 0.22);
|
|
--button-ghost-border-hover: rgba(30, 144, 255, 0.38);
|
|
--button-ghost-text: var(--color-primary-dark);
|
|
|
|
--modal-backdrop-bg: rgba(15, 23, 42, 0.48);
|
|
--modal-bg: var(--color-bg-elevated);
|
|
--modal-border-radius: var(--border-radius-lg);
|
|
--modal-padding: var(--spacing-lg);
|
|
--modal-max-width: 500px;
|
|
|
|
/* ============================================
|
|
SIMPLIFIED ALIASES
|
|
============================================ */
|
|
--primary: var(--color-primary);
|
|
--primary-dark: var(--color-primary-dark);
|
|
--primary-light: var(--color-primary-light);
|
|
--danger: var(--color-danger);
|
|
--danger-dark: var(--color-danger-hover);
|
|
--success: var(--color-success);
|
|
--success-light: var(--color-success-light);
|
|
--text-primary: var(--color-text-primary);
|
|
--text-secondary: var(--color-text-secondary);
|
|
--background: var(--color-bg-body);
|
|
--border: var(--color-border-light);
|
|
--card-hover: var(--color-bg-hover);
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--color-primary: #5fb2ff;
|
|
--color-primary-hover: #83c4ff;
|
|
--color-primary-light: rgba(95, 178, 255, 0.14);
|
|
--color-primary-dark: #2d8ff0;
|
|
|
|
--color-secondary: #f4c27a;
|
|
--color-secondary-hover: #ffd59e;
|
|
--color-secondary-light: rgba(244, 194, 122, 0.12);
|
|
--color-accent: #fbbf24;
|
|
--color-accent-light: rgba(251, 191, 36, 0.16);
|
|
|
|
--color-success: #4ade80;
|
|
--color-success-hover: #86efac;
|
|
--color-success-light: rgba(74, 222, 128, 0.16);
|
|
|
|
--color-danger: #f87171;
|
|
--color-danger-hover: #fca5a5;
|
|
--color-danger-light: rgba(248, 113, 113, 0.16);
|
|
|
|
--color-warning: #fbbf24;
|
|
--color-warning-hover: #fcd34d;
|
|
--color-warning-light: rgba(251, 191, 36, 0.16);
|
|
|
|
--color-info: #38bdf8;
|
|
--color-info-hover: #7dd3fc;
|
|
--color-info-light: rgba(56, 189, 248, 0.16);
|
|
|
|
--color-text-primary: #f4f7fb;
|
|
--color-text-secondary: #b2bccb;
|
|
--color-text-muted: #7f8aa0;
|
|
--color-text-inverse: #0f172a;
|
|
--color-text-disabled: #667085;
|
|
|
|
--color-bg-body: #0f1722;
|
|
--color-bg-surface: rgba(15, 23, 34, 0.84);
|
|
--color-bg-elevated: rgba(20, 29, 42, 0.96);
|
|
--color-bg-hover: rgba(30, 41, 59, 0.95);
|
|
--color-bg-disabled: rgba(30, 41, 59, 0.7);
|
|
--color-bg-hero: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(251, 191, 36, 0.16));
|
|
|
|
--color-border-light: rgba(148, 163, 184, 0.18);
|
|
--color-border-medium: rgba(148, 163, 184, 0.32);
|
|
--color-border-dark: rgba(203, 213, 225, 0.48);
|
|
--color-border-disabled: rgba(100, 116, 139, 0.3);
|
|
|
|
--color-gray-50: #111827;
|
|
--color-gray-100: #172030;
|
|
--color-gray-200: #1f2937;
|
|
--color-gray-300: #334155;
|
|
--color-gray-400: #475569;
|
|
--color-gray-500: #64748b;
|
|
--color-gray-600: #94a3b8;
|
|
--color-gray-700: #cbd5e1;
|
|
--color-gray-800: #e2e8f0;
|
|
--color-gray-900: #f8fafc;
|
|
|
|
--shadow-sm: 0 10px 24px rgba(2, 6, 23, 0.24);
|
|
--shadow-md: 0 18px 40px rgba(2, 6, 23, 0.34);
|
|
--shadow-lg: 0 28px 60px rgba(2, 6, 23, 0.42);
|
|
--shadow-xl: 0 42px 90px rgba(2, 6, 23, 0.5);
|
|
--shadow-card: 0 18px 44px rgba(2, 6, 23, 0.34);
|
|
|
|
--modal-backdrop-bg: rgba(2, 6, 23, 0.72);
|
|
--modal-bg: var(--color-bg-elevated);
|
|
--input-focus-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
|
|
--card-bg: var(--color-bg-surface);
|
|
|
|
--button-secondary-bg: rgba(95, 178, 255, 0.18);
|
|
--button-secondary-hover-bg: rgba(95, 178, 255, 0.28);
|
|
--button-secondary-border: rgba(95, 178, 255, 0.3);
|
|
--button-secondary-border-hover: rgba(131, 196, 255, 0.5);
|
|
--button-secondary-text: #d8ecff;
|
|
|
|
--button-ghost-bg: rgba(95, 178, 255, 0.12);
|
|
--button-ghost-hover-bg: rgba(95, 178, 255, 0.22);
|
|
--button-ghost-border: rgba(95, 178, 255, 0.24);
|
|
--button-ghost-border-hover: rgba(131, 196, 255, 0.4);
|
|
--button-ghost-text: #d8ecff;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
/* Auto mode will use data-theme attribute set by JS */
|
|
}
|
|
|
|
.dark-mode {
|
|
--color-text-primary: #f4f7fb;
|
|
--color-text-secondary: #b2bccb;
|
|
--color-bg-body: #0f1722;
|
|
--color-bg-surface: rgba(15, 23, 34, 0.84);
|
|
--color-border-light: rgba(148, 163, 184, 0.18);
|
|
--color-border-medium: rgba(148, 163, 184, 0.32);
|
|
}
|
|
|
|
/* ============================================
|
|
UTILITY CLASSES
|
|
============================================ */
|
|
|
|
.m-0 { margin: 0 !important; }
|
|
.mt-1 { margin-top: var(--spacing-xs) !important; }
|
|
.mt-2 { margin-top: var(--spacing-sm) !important; }
|
|
.mt-3 { margin-top: var(--spacing-md) !important; }
|
|
.mt-4 { margin-top: var(--spacing-lg) !important; }
|
|
|
|
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
|
|
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
|
|
.mb-3 { margin-bottom: var(--spacing-md) !important; }
|
|
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
|
|
|
|
.p-0 { padding: 0 !important; }
|
|
.p-1 { padding: var(--spacing-xs) !important; }
|
|
.p-2 { padding: var(--spacing-sm) !important; }
|
|
.p-3 { padding: var(--spacing-md) !important; }
|
|
.p-4 { padding: var(--spacing-lg) !important; }
|
|
|
|
.text-center { text-align: center !important; }
|
|
.text-left { text-align: left !important; }
|
|
.text-right { text-align: right !important; }
|
|
|
|
.text-primary { color: var(--color-primary) !important; }
|
|
.text-secondary { color: var(--color-text-secondary) !important; }
|
|
.text-muted { color: var(--color-text-muted) !important; }
|
|
.text-danger { color: var(--color-danger) !important; }
|
|
.text-success { color: var(--color-success) !important; }
|
|
|
|
.font-weight-normal { font-weight: var(--font-weight-normal) !important; }
|
|
.font-weight-medium { font-weight: var(--font-weight-medium) !important; }
|
|
.font-weight-semibold { font-weight: var(--font-weight-semibold) !important; }
|
|
.font-weight-bold { font-weight: var(--font-weight-bold) !important; }
|
|
|
|
.d-none { display: none !important; }
|
|
.d-block { display: block !important; }
|
|
.d-flex { display: flex !important; }
|
|
.d-inline-block { display: inline-block !important; }
|
|
|
|
.flex-column { flex-direction: column !important; }
|
|
.flex-row { flex-direction: row !important; }
|
|
.justify-center { justify-content: center !important; }
|
|
.justify-between { justify-content: space-between !important; }
|
|
.align-center { align-items: center !important; }
|
|
.gap-1 { gap: var(--spacing-xs) !important; }
|
|
.gap-2 { gap: var(--spacing-sm) !important; }
|
|
.gap-3 { gap: var(--spacing-md) !important; }
|