| 1 |
/** |
| 2 |
* Shared SCSS Variables |
| 3 |
* |
| 4 |
* Design tokens and SCSS variables shared across admin and metabox components |
| 5 |
* |
| 6 |
* @package ThinkRank |
| 7 |
* @since 1.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
// Color Palette (matching original admin variables) |
| 11 |
$primary-blue: #2563eb; |
| 12 |
$primary-blue-dark: #1d4ed8; |
| 13 |
$primary-blue-light: #3b82f6; |
| 14 |
|
| 15 |
$success-green: #22c55e; |
| 16 |
$success-green-dark: #16a34a; |
| 17 |
$success-green-light: #34d399; |
| 18 |
|
| 19 |
$warning-orange: #f59e0b; |
| 20 |
$warning-orange-dark: #d97706; |
| 21 |
$warning-orange-light: #fbbf24; |
| 22 |
|
| 23 |
$error-red: #ef4444; |
| 24 |
$error-red-dark: #dc2626; |
| 25 |
$error-red-light: #f87171; |
| 26 |
|
| 27 |
$purple: #8b5cf6; |
| 28 |
$purple-dark: #7c3aed; |
| 29 |
$purple-light: #a78bfa; |
| 30 |
|
| 31 |
// Neutral Colors |
| 32 |
$gray-50: #f9fafb; |
| 33 |
$gray-100: #f3f4f6; |
| 34 |
$gray-200: #e5e7eb; |
| 35 |
$gray-300: #d1d5db; |
| 36 |
$gray-400: #9ca3af; |
| 37 |
$gray-500: #6b7280; |
| 38 |
$gray-600: #4b5563; |
| 39 |
$gray-700: #374151; |
| 40 |
$gray-800: #1f2937; |
| 41 |
$gray-900: #111827; |
| 42 |
|
| 43 |
$white: #ffffff; |
| 44 |
$black: #000000; |
| 45 |
|
| 46 |
// Provider Colors |
| 47 |
$openai-green: #10a37f; |
| 48 |
$openai-green-dark: #0d8f6f; |
| 49 |
$claude-orange: #d97757; |
| 50 |
$claude-orange-dark: #c96643; |
| 51 |
|
| 52 |
// Background Colors |
| 53 |
$bg-primary: $white; |
| 54 |
$bg-secondary: $gray-50; |
| 55 |
$bg-tertiary: $gray-100; |
| 56 |
|
| 57 |
// Text Colors |
| 58 |
$text-primary: $gray-900; |
| 59 |
$text-secondary: $gray-700; |
| 60 |
$text-tertiary: $gray-500; |
| 61 |
$text-muted: $gray-400; |
| 62 |
|
| 63 |
// Border Colors |
| 64 |
$border-light: $gray-200; |
| 65 |
$border-medium: $gray-300; |
| 66 |
$border-dark: $gray-400; |
| 67 |
|
| 68 |
// Legacy ThinkRank variables for compatibility |
| 69 |
$thinkrank-primary: $primary-blue; |
| 70 |
$thinkrank-secondary: $primary-blue-dark; |
| 71 |
$thinkrank-success: $success-green; |
| 72 |
$thinkrank-warning: $warning-orange; |
| 73 |
$thinkrank-error: $error-red; |
| 74 |
$thinkrank-text-primary: $text-primary; |
| 75 |
$thinkrank-text-secondary: $text-secondary; |
| 76 |
$thinkrank-text-light: $text-tertiary; |
| 77 |
$thinkrank-border: $border-medium; |
| 78 |
$thinkrank-border-light: $border-light; |
| 79 |
$thinkrank-bg: $bg-secondary; |
| 80 |
$thinkrank-white: $white; |
| 81 |
$thinkrank-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 82 |
$thinkrank-radius: 4px; |
| 83 |
$thinkrank-spacing: 16px; |
| 84 |
|
| 85 |
// Typography Scale |
| 86 |
$font-size-xs: 0.75rem; |
| 87 |
$font-size-sm: 0.875rem; |
| 88 |
$font-size-base: 1rem; |
| 89 |
$font-size-lg: 1.125rem; |
| 90 |
$font-size-xl: 1.25rem; |
| 91 |
$font-size-2xl: 1.5rem; |
| 92 |
$font-size-3xl: 1.875rem; |
| 93 |
|
| 94 |
// Font Weights |
| 95 |
$font-weight-normal: 400; |
| 96 |
$font-weight-medium: 500; |
| 97 |
$font-weight-semibold: 600; |
| 98 |
$font-weight-bold: 700; |
| 99 |
|
| 100 |
// Line Heights |
| 101 |
$line-height-tight: 1.25; |
| 102 |
$line-height-normal: 1.5; |
| 103 |
$line-height-relaxed: 1.75; |
| 104 |
|
| 105 |
// Spacing Scale (matching original admin variables) |
| 106 |
$spacing-xs: 0.25rem; // 4px |
| 107 |
$spacing-sm: 0.5rem; // 8px |
| 108 |
$spacing-md: 0.75rem; // 12px |
| 109 |
$spacing-lg: 1rem; // 16px |
| 110 |
$spacing-xl: 1.25rem; // 20px |
| 111 |
$spacing-2xl: 1.5rem; // 24px |
| 112 |
$spacing-3xl: 2rem; // 32px |
| 113 |
$spacing-4xl: 2.5rem; // 40px |
| 114 |
$spacing-5xl: 3rem; // 48px |
| 115 |
|
| 116 |
// Legacy spacing variables |
| 117 |
$spacing-1: 0.25rem; |
| 118 |
$spacing-2: 0.5rem; |
| 119 |
$spacing-3: 0.75rem; |
| 120 |
$spacing-4: 1rem; |
| 121 |
$spacing-5: 1.25rem; |
| 122 |
$spacing-6: 1.5rem; |
| 123 |
$spacing-8: 2rem; |
| 124 |
$spacing-10: 2.5rem; |
| 125 |
$spacing-12: 3rem; |
| 126 |
$spacing-16: 4rem; |
| 127 |
$spacing-20: 5rem; |
| 128 |
$spacing-24: 6rem; |
| 129 |
|
| 130 |
// Spacing Scale Map (for utility generation) |
| 131 |
$spacing-scale: ( |
| 132 |
'xs': $spacing-xs, |
| 133 |
'sm': $spacing-sm, |
| 134 |
'md': $spacing-md, |
| 135 |
'lg': $spacing-lg, |
| 136 |
'xl': $spacing-xl, |
| 137 |
'2xl': $spacing-2xl, |
| 138 |
'3xl': $spacing-3xl, |
| 139 |
'4xl': $spacing-4xl, |
| 140 |
'5xl': $spacing-5xl, |
| 141 |
'0': 0, |
| 142 |
'1': $spacing-1, |
| 143 |
'2': $spacing-2, |
| 144 |
'3': $spacing-3, |
| 145 |
'4': $spacing-4, |
| 146 |
'5': $spacing-5, |
| 147 |
'6': $spacing-6, |
| 148 |
'8': $spacing-8, |
| 149 |
'10': $spacing-10, |
| 150 |
'12': $spacing-12, |
| 151 |
'16': $spacing-16, |
| 152 |
'20': $spacing-20, |
| 153 |
'24': $spacing-24 |
| 154 |
); |
| 155 |
|
| 156 |
// Border Radius (matching original admin variables) |
| 157 |
$radius-sm: 0.25rem; // 4px |
| 158 |
$radius-md: 0.375rem; // 6px |
| 159 |
$radius-lg: 0.5rem; // 8px |
| 160 |
$radius-xl: 0.75rem; // 12px |
| 161 |
$radius-2xl: 1rem; // 16px |
| 162 |
$radius-3xl: 1.5rem; // 24px |
| 163 |
$radius-full: 9999px; |
| 164 |
|
| 165 |
// Shadows (matching original admin variables) |
| 166 |
$shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); |
| 167 |
$shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); |
| 168 |
$shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); |
| 169 |
$shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); |
| 170 |
$shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25); |
| 171 |
|
| 172 |
// Transitions (matching original admin variables) |
| 173 |
$transition-fast: 0.15s ease; |
| 174 |
$transition-normal: 0.2s ease; |
| 175 |
$transition-slow: 0.3s ease; |
| 176 |
|
| 177 |
// Breakpoints |
| 178 |
$breakpoint-xs: 480px; |
| 179 |
$breakpoint-sm: 640px; |
| 180 |
$breakpoint-md: 768px; |
| 181 |
$breakpoint-lg: 1024px; |
| 182 |
$breakpoint-xl: 1280px; |
| 183 |
$breakpoint-2xl: 1536px; |
| 184 |
|
| 185 |
// Z-index Scale |
| 186 |
$z-dropdown: 1000; |
| 187 |
$z-sticky: 1020; |
| 188 |
$z-fixed: 1030; |
| 189 |
$z-modal-backdrop: 1040; |
| 190 |
$z-modal: 1050; |
| 191 |
$z-popover: 1060; |
| 192 |
$z-tooltip: 1070; |
| 193 |
|
| 194 |
// Animation Durations |
| 195 |
$duration-fast: 0.15s; |
| 196 |
$duration-normal: 0.2s; |
| 197 |
$duration-slow: 0.3s; |
| 198 |
|
| 199 |
// Easing Functions |
| 200 |
$ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); |
| 201 |
$ease-out: cubic-bezier(0, 0, 0.2, 1); |
| 202 |
$ease-in: cubic-bezier(0.4, 0, 1, 1); |
| 203 |
|
| 204 |
// Component Specific Variables (matching original admin variables) |
| 205 |
|
| 206 |
// Buttons |
| 207 |
$button-height-sm: 2rem; |
| 208 |
$button-height-md: 2.5rem; |
| 209 |
$button-height-lg: 3rem; |
| 210 |
|
| 211 |
$button-padding-sm: $spacing-sm $spacing-md; |
| 212 |
$button-padding-md: $spacing-md $spacing-lg; |
| 213 |
$button-padding-lg: $spacing-lg $spacing-xl; |
| 214 |
|
| 215 |
// Cards |
| 216 |
$card-padding: $spacing-2xl; |
| 217 |
$card-border-radius: $radius-xl; |
| 218 |
$card-shadow: $shadow-md; |
| 219 |
|
| 220 |
// Forms |
| 221 |
$input-height: 2.75rem; |
| 222 |
$input-padding: $spacing-md $spacing-lg; |
| 223 |
$input-border-radius: $radius-md; |
| 224 |
|
| 225 |
// Dashboard |
| 226 |
$dashboard-card-min-height: 140px; |
| 227 |
$dashboard-gap: $spacing-2xl; |
| 228 |
$dashboard-icon-size: 3rem; |
| 229 |
|