259 lines
7.6 KiB
SCSS
259 lines
7.6 KiB
SCSS
// ========================================
|
|
// DESIGN TOKENS - Modern UI Design System
|
|
// ========================================
|
|
|
|
// Dynamic Theme Variables (CSS Custom Properties)
|
|
// ========================================
|
|
:root {
|
|
// Default theme colors (fallback)
|
|
--theme-primary: #0ea5e9;
|
|
--theme-secondary: #64748b;
|
|
--theme-accent: #8b5cf6;
|
|
--theme-error: #ef4444;
|
|
--theme-error-dark: #dc2626;
|
|
--theme-background: #f8fafc;
|
|
--theme-surface: #ffffff;
|
|
--theme-text: #1f2937;
|
|
--theme-text-secondary: #6b7280;
|
|
--theme-border-radius: 0.5rem;
|
|
--theme-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
|
--theme-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
--theme-font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
--theme-font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
|
|
}
|
|
|
|
// Color Palette
|
|
// ========================================
|
|
|
|
// Primary Colors (with theme support)
|
|
$primary-50: #f0f9ff;
|
|
$primary-100: #e0f2fe;
|
|
$primary-200: #bae6fd;
|
|
$primary-300: #7dd3fc;
|
|
$primary-400: #38bdf8;
|
|
$primary-500: var(--theme-primary, #0ea5e9); // Dynamic primary
|
|
$primary-600: #0284c7;
|
|
$primary-700: #0369a1;
|
|
$primary-800: #075985;
|
|
$primary-900: #0c4a6e;
|
|
|
|
// Secondary Colors (with theme support)
|
|
$secondary-50: #f8fafc;
|
|
$secondary-100: #f1f5f9;
|
|
$secondary-200: #e2e8f0;
|
|
$secondary-300: #cbd5e1;
|
|
$secondary-400: #94a3b8;
|
|
$secondary-500: var(--theme-secondary, #64748b); // Dynamic secondary
|
|
$secondary-600: #475569;
|
|
$secondary-700: #334155;
|
|
$secondary-800: #1e293b;
|
|
$secondary-900: #0f172a;
|
|
|
|
// Accent Colors (with theme support)
|
|
$accent-purple: var(--theme-accent, #8b5cf6);
|
|
$accent-green: #10b981;
|
|
$accent-orange: #f59e0b;
|
|
$accent-red: #ef4444;
|
|
$accent-pink: #ec4899;
|
|
|
|
// Neutral Colors (with theme support)
|
|
$white: #ffffff;
|
|
$gray-50: #f9fafb;
|
|
$gray-100: #f3f4f6;
|
|
$gray-200: #e5e7eb;
|
|
$gray-300: #d1d5db;
|
|
$gray-400: #9ca3af;
|
|
$gray-500: #6b7280;
|
|
$gray-600: #4b5563;
|
|
$gray-700: #374151;
|
|
$gray-800: #1f2937;
|
|
$gray-900: var(--theme-text, #111827); // Dynamic text color
|
|
$black: #000000;
|
|
|
|
// Theme-aware colors
|
|
$theme-background: var(--theme-background, #f8fafc);
|
|
$theme-surface: var(--theme-surface, #ffffff);
|
|
$theme-text: var(--theme-text, #1f2937);
|
|
$theme-text-secondary: var(--theme-text-secondary, #6b7280);
|
|
|
|
// Semantic Colors
|
|
$success: $accent-green;
|
|
$warning: $accent-orange;
|
|
$error: $accent-red;
|
|
$info: $primary-500;
|
|
|
|
// Typography
|
|
// ========================================
|
|
|
|
// Font Families (with theme support)
|
|
$font-primary: var(--theme-font-primary, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
|
|
$font-secondary: var(--theme-font-secondary, 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
|
|
$font-mono: var(--theme-font-mono, 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace);
|
|
|
|
// Font Sizes
|
|
$text-xs: 0.75rem; // 12px
|
|
$text-sm: 0.875rem; // 14px
|
|
$text-base: 1rem; // 16px
|
|
$text-lg: 1.125rem; // 18px
|
|
$text-xl: 1.25rem; // 20px
|
|
$text-2xl: 1.5rem; // 24px
|
|
$text-3xl: 1.875rem; // 30px
|
|
$text-4xl: 2.25rem; // 36px
|
|
$text-5xl: 3rem; // 48px
|
|
$text-6xl: 3.75rem; // 60px
|
|
|
|
// Font Weights
|
|
$font-thin: 100;
|
|
$font-light: 300;
|
|
$font-normal: 400;
|
|
$font-medium: 500;
|
|
$font-semibold: 600;
|
|
$font-bold: 700;
|
|
$font-extrabold: 800;
|
|
$font-black: 900;
|
|
|
|
// Line Heights
|
|
$leading-none: 1;
|
|
$leading-tight: 1.25;
|
|
$leading-snug: 1.375;
|
|
$leading-normal: 1.5;
|
|
$leading-relaxed: 1.625;
|
|
$leading-loose: 2;
|
|
|
|
// Spacing System
|
|
// ========================================
|
|
|
|
$space-0: 0;
|
|
$space-1: 0.25rem; // 4px
|
|
$space-2: 0.5rem; // 8px
|
|
$space-3: 0.75rem; // 12px
|
|
$space-4: 1rem; // 16px
|
|
$space-5: 1.25rem; // 20px
|
|
$space-6: 1.5rem; // 24px
|
|
$space-8: 2rem; // 32px
|
|
$space-10: 2.5rem; // 40px
|
|
$space-12: 3rem; // 48px
|
|
$space-16: 4rem; // 64px
|
|
$space-20: 5rem; // 80px
|
|
$space-24: 6rem; // 96px
|
|
$space-32: 8rem; // 128px
|
|
|
|
// Border Radius (with theme support)
|
|
// ========================================
|
|
|
|
$radius-none: 0;
|
|
$radius-sm: 0.125rem; // 2px
|
|
$radius-base: 0.25rem; // 4px
|
|
$radius-md: 0.375rem; // 6px
|
|
$radius-lg: var(--theme-border-radius, 0.5rem); // Dynamic border radius
|
|
$radius-xl: 0.75rem; // 12px
|
|
$radius-2xl: 1rem; // 16px
|
|
$radius-3xl: 1.5rem; // 24px
|
|
$radius-full: 9999px;
|
|
|
|
// Shadows (with theme support)
|
|
// ========================================
|
|
|
|
$shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
$shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
$shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
$shadow-lg: var(--theme-shadow, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)); // Dynamic shadow
|
|
$shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
$shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
$shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
|
|
|
|
// Glassmorphism Shadows
|
|
$glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
|
|
$glass-shadow-lg: 0 20px 40px 0 rgba(31, 38, 135, 0.4);
|
|
|
|
// Animation
|
|
// ========================================
|
|
|
|
// Timing Functions
|
|
$ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
$ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
$ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
$ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
$ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
|
|
// Duration
|
|
$duration-75: 75ms;
|
|
$duration-100: 100ms;
|
|
$duration-150: 150ms;
|
|
$duration-200: 200ms;
|
|
$duration-300: 300ms;
|
|
$duration-500: 500ms;
|
|
$duration-700: 700ms;
|
|
$duration-1000: 1000ms;
|
|
|
|
// Responsive Breakpoints
|
|
// ========================================
|
|
|
|
$breakpoint-sm: 640px; // Small devices
|
|
$breakpoint-md: 768px; // Medium devices
|
|
$breakpoint-lg: 1024px; // Large devices
|
|
$breakpoint-xl: 1280px; // Extra large devices
|
|
$breakpoint-2xl: 1536px; // 2X large devices
|
|
|
|
// Z-Index Scale
|
|
// ========================================
|
|
|
|
$z-dropdown: 1000;
|
|
$z-sticky: 1020;
|
|
$z-fixed: 1030;
|
|
$z-modal-backdrop: 1040;
|
|
$z-modal: 1050;
|
|
$z-popover: 1060;
|
|
$z-tooltip: 1070;
|
|
$z-toast: 1080;
|
|
|
|
// Component Specific Variables
|
|
// ========================================
|
|
|
|
// Header
|
|
$header-height: 4rem; // 64px
|
|
$header-bg: rgba(255, 255, 255, 0.95);
|
|
$header-border: rgba(0, 0, 0, 0.1);
|
|
|
|
// Sidebar
|
|
$sidebar-width: 16rem; // 256px
|
|
$sidebar-width-collapsed: 4rem; // 64px
|
|
$sidebar-bg: rgba(255, 255, 255, 0.98);
|
|
$sidebar-border: rgba(0, 0, 0, 0.05);
|
|
|
|
// Cards
|
|
$card-bg: rgba(255, 255, 255, 0.9);
|
|
$card-border: rgba(0, 0, 0, 0.05);
|
|
$card-shadow: $shadow-lg;
|
|
|
|
// Buttons
|
|
$btn-height-sm: 2rem; // 32px
|
|
$btn-height-md: 2.5rem; // 40px
|
|
$btn-height-lg: 3rem; // 48px
|
|
|
|
// Form Elements
|
|
$input-height: 2.5rem; // 40px
|
|
$input-border: rgba(0, 0, 0, 0.1);
|
|
$input-border-focus: $primary-500;
|
|
$input-border-error: $error;
|
|
|
|
// Gradients
|
|
// ========================================
|
|
|
|
$gradient-primary: linear-gradient(135deg, $primary-500 0%, $primary-700 100%);
|
|
$gradient-secondary: linear-gradient(135deg, $secondary-500 0%, $secondary-700 100%);
|
|
$gradient-accent: linear-gradient(135deg, $accent-purple 0%, $accent-pink 100%);
|
|
$gradient-success: linear-gradient(135deg, $accent-green 0%, #059669 100%);
|
|
$gradient-warning: linear-gradient(135deg, $accent-orange 0%, #d97706 100%);
|
|
$gradient-error: linear-gradient(135deg, $accent-red 0%, #dc2626 100%);
|
|
|
|
// Glassmorphism Gradients
|
|
$glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
|
|
$glass-gradient-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
|
|
|
|
// Backdrop Blur
|
|
$backdrop-blur-sm: blur(4px);
|
|
$backdrop-blur-md: blur(8px);
|
|
$backdrop-blur-lg: blur(16px);
|
|
$backdrop-blur-xl: blur(24px);
|