File size: 5,778 Bytes
41e1749 e384bec 41e1749 e384bec 41e1749 e384bec 41e1749 e384bec 41e1749 e384bec 41e1749 97ed8d3 41e1749 e384bec 41e1749 e384bec 41e1749 97ed8d3 41e1749 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | /**
* Bayan Design System — Theme Tokens
* Comfortable palettes for long Arabic reading (Notion / Grammarly inspired)
*/
/* ── Shared structural tokens ── */
:root {
--font-family-primary: 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;
--font-size-display: 3rem;
--font-size-h1: 2.25rem;
--font-size-h2: 1.875rem;
--font-size-h3: 1.25rem;
--font-size-body: 1rem;
--font-size-editor: 1.125rem;
--font-size-caption: 0.875rem;
--font-size-label: 0.75rem;
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--line-height-editor: 1.9;
--line-height-body: 1.75;
--letter-spacing-arabic: 0.015em;
--spacing-xs: 0.25rem;
--spacing-sm: 0.5rem;
--spacing-md: 1rem;
--spacing-lg: 1.5rem;
--spacing-xl: 2rem;
--spacing-section: 6rem;
--radius-sm: 0.5rem;
--radius-md: 0.75rem;
--radius-lg: 1rem;
--radius-xl: 1.5rem;
--radius-card: 1rem;
--transition-fast: 0.15s ease;
--transition-base: 0.2s ease;
--transition-slow: 0.3s ease;
--transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* ── Dark Theme — soft charcoal, easy on eyes ── */
:root,
[data-theme="dark"] {
color-scheme: dark;
--color-bg: #12141A;
--color-surface: #1A1D26;
--color-surface-elevated: #242833;
--color-editor: #1E2229;
--color-primary: #6BA3E0;
--color-secondary: #A594E8;
--color-accent: #6BBECF;
--color-success: #6BC98A;
--color-warning: #E4B35A;
--color-error: #E88A8A;
--color-text-primary: #ECEEF2;
--color-text-secondary: #B4BBC6;
--color-text-muted: #8A939F;
--color-text-inverse: #F4F5F7;
--color-placeholder: #9AA3AE;
--color-border: rgba(236, 238, 242, 0.09);
--color-border-strong: rgba(236, 238, 242, 0.16);
--focus-ring: rgba(107, 163, 224, 0.42);
--shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.16);
--shadow-card: 0 8px 24px rgba(0, 0, 0, 0.28);
--shadow-popover: 0 16px 40px rgba(0, 0, 0, 0.38);
--shadow-editor: 0 2px 16px rgba(0, 0, 0, 0.2);
--shadow-glow: 0 0 20px rgba(107, 163, 224, 0.15);
--gradient-primary: linear-gradient(135deg, #6BA3E0, #A594E8);
--gradient-surface: linear-gradient(180deg, var(--color-surface), var(--color-bg));
--color-overlay: rgba(8, 10, 14, 0.62);
--highlight-spelling-bg: rgba(232, 138, 138, 0.16);
--highlight-spelling-border: #E88A8A;
--highlight-grammar-bg: rgba(228, 179, 90, 0.16);
--highlight-grammar-border: #E4B35A;
--highlight-punctuation-bg: rgba(107, 201, 138, 0.14);
--highlight-punctuation-border: #6BC98A;
--color-nav-bg: rgba(18, 20, 26, 0.94);
--color-badge-spelling-bg: rgba(232, 138, 138, 0.18);
--color-badge-grammar-bg: rgba(228, 179, 90, 0.18);
--color-badge-punctuation-bg: rgba(107, 201, 138, 0.16);
--color-summary-accent-bg: rgba(165, 148, 232, 0.14);
--color-summary-accent-border: rgba(165, 148, 232, 0.38);
--color-suggestion-hover-bg: rgba(107, 163, 224, 0.12);
--color-primary-subtle-bg: rgba(107, 163, 224, 0.14);
--color-primary-subtle-border: rgba(107, 163, 224, 0.32);
--primary-color: var(--color-primary);
--secondary-color: var(--color-secondary);
--text-color: var(--color-text-primary);
--text-secondary: var(--color-text-secondary);
--surface-color: var(--color-surface);
--background-color: var(--color-bg);
--success-color: var(--color-success);
--warning-color: var(--color-warning);
--error-color: var(--color-error);
--nav-bg: var(--color-nav-bg);
}
/* ── Light Theme — warm paper, strong readable text ── */
[data-theme="light"] {
color-scheme: light;
--color-bg: #F3F1EC;
--color-surface: #FAF9F6;
--color-surface-elevated: #EFEBE4;
--color-editor: #FFFDF8;
--color-primary: #2B6CB8;
--color-secondary: #6B57A8;
--color-accent: #2A8F9E;
--color-success: #2F8554;
--color-warning: #B7791F;
--color-error: #C53030;
--color-text-primary: #1A1D21;
--color-text-secondary: #3A424E;
--color-text-muted: #5A6472;
--color-text-inverse: #FAFAF8;
--color-placeholder: #6B7580;
--color-border: rgba(26, 29, 33, 0.1);
--color-border-strong: rgba(26, 29, 33, 0.18);
--focus-ring: rgba(43, 108, 184, 0.32);
--shadow-xs: 0 1px 3px rgba(26, 29, 33, 0.05);
--shadow-card: 0 6px 20px rgba(26, 29, 33, 0.07);
--shadow-popover: 0 14px 36px rgba(26, 29, 33, 0.11);
--shadow-editor: 0 1px 8px rgba(26, 29, 33, 0.05);
--shadow-glow: 0 0 20px rgba(43, 108, 184, 0.1);
--gradient-primary: linear-gradient(135deg, #2B6CB8, #6B57A8);
--gradient-surface: linear-gradient(180deg, var(--color-surface), var(--color-bg));
--color-overlay: rgba(26, 29, 33, 0.38);
--highlight-spelling-bg: #FDECEC;
--highlight-spelling-border: #C53030;
--highlight-grammar-bg: #FEF6E4;
--highlight-grammar-border: #B7791F;
--highlight-punctuation-bg: #EAF6EE;
--highlight-punctuation-border: #2F8554;
--color-nav-bg: rgba(250, 249, 246, 0.94);
--color-badge-spelling-bg: rgba(197, 48, 48, 0.1);
--color-badge-grammar-bg: rgba(183, 121, 31, 0.12);
--color-badge-punctuation-bg: rgba(47, 133, 84, 0.1);
--color-summary-accent-bg: rgba(107, 87, 168, 0.08);
--color-summary-accent-border: rgba(107, 87, 168, 0.22);
--color-suggestion-hover-bg: rgba(43, 108, 184, 0.07);
--color-primary-subtle-bg: rgba(43, 108, 184, 0.09);
--color-primary-subtle-border: rgba(43, 108, 184, 0.22);
--primary-color: var(--color-primary);
--secondary-color: var(--color-secondary);
--text-color: var(--color-text-primary);
--text-secondary: var(--color-text-secondary);
--surface-color: var(--color-surface);
--background-color: var(--color-bg);
--success-color: var(--color-success);
--warning-color: var(--color-warning);
--error-color: var(--color-error);
--nav-bg: var(--color-nav-bg);
}
|