- theme-overrides.css: add !important to form control dark mode rules (background/color/border-color) — MetroUI's un-layered select rule was winning the cascade regardless of inline styles; color-scheme: dark forces OS-native chrome (dropdown arrow) to dark theme - ProjectDetail.tsx: add fieldStyle const with CSS vars for all select/input/textarea elements; fix standalone inline-style selects and container divs (log body, ABC header, Sheet/Text toggles) - Separator.tsx: update ctrl style to use var(--background/foreground) and colorScheme: inherit - LyricsLivePreview.tsx: replace dark:bg-gray-800 / dark:text-gray-400 Tailwind dark-mode classes with inline CSS var styles on tab bar container and all tab/icon buttons; add lp-btn hover rule - Sidebar.tsx: fix toggle button clipped by aside overflow:hidden — change aside to overflow:visible, wrap collapsed strip in own overflow:hidden div - ThemeContext.tsx: set root.style.colorScheme = r for OS chrome theming - index.html: add <meta name="color-scheme" content="light dark"> - index.css: Phase 7 — replace @layer base + @apply and @layer utilities + theme() with plain CSS (height: 100%, rem values for sidebar widths)
186 lines
5.6 KiB
CSS
Executable File
186 lines
5.6 KiB
CSS
Executable File
/*
|
|
* index.css — StemEngine global styles
|
|
*
|
|
* Phase 1 (MetroUI migration): Tailwind stays active for inner pages
|
|
* (Separator, ProjectDetail, Settings, Sidebar). MetroUI is loaded in
|
|
* main.tsx after this file. Both systems coexist during the migration;
|
|
* @tailwind directives are removed in Phase 6 once all components are migrated.
|
|
*/
|
|
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
/* ── Brand color palette (default: Blue) ─────────────────────────────────────
|
|
Values are bare RGB channels so Tailwind's opacity modifier works:
|
|
bg-brand-500/30 → rgb(var(--brand-500) / 0.3)
|
|
──────────────────────────────────────────────────────────────────────────── */
|
|
:root {
|
|
--brand-50: 239 246 255;
|
|
--brand-100: 219 234 254;
|
|
--brand-200: 191 219 254;
|
|
--brand-300: 147 197 253;
|
|
--brand-400: 96 165 250;
|
|
--brand-500: 59 130 246;
|
|
--brand-600: 37 99 235;
|
|
--brand-700: 29 78 216;
|
|
--brand-800: 30 64 175;
|
|
--brand-900: 30 58 138;
|
|
--brand-950: 23 37 84;
|
|
}
|
|
|
|
/* ── Violet ─────────────────────────────────────────────────────────────── */
|
|
[data-accent="violet"] {
|
|
--brand-50: 245 243 255;
|
|
--brand-100: 237 233 254;
|
|
--brand-200: 221 214 254;
|
|
--brand-300: 196 181 253;
|
|
--brand-400: 167 139 250;
|
|
--brand-500: 139 92 246;
|
|
--brand-600: 124 58 237;
|
|
--brand-700: 109 40 217;
|
|
--brand-800: 91 33 182;
|
|
--brand-900: 76 29 149;
|
|
--brand-950: 46 16 101;
|
|
}
|
|
|
|
/* ── Rose ────────────────────────────────────────────────────────────────── */
|
|
[data-accent="rose"] {
|
|
--brand-50: 255 241 242;
|
|
--brand-100: 255 228 230;
|
|
--brand-200: 254 205 211;
|
|
--brand-300: 253 164 175;
|
|
--brand-400: 251 113 133;
|
|
--brand-500: 244 63 94;
|
|
--brand-600: 225 29 72;
|
|
--brand-700: 190 18 60;
|
|
--brand-800: 159 18 57;
|
|
--brand-900: 136 19 55;
|
|
--brand-950: 76 5 25;
|
|
}
|
|
|
|
/* ── Emerald ─────────────────────────────────────────────────────────────── */
|
|
[data-accent="emerald"] {
|
|
--brand-50: 236 253 245;
|
|
--brand-100: 209 250 229;
|
|
--brand-200: 167 243 208;
|
|
--brand-300: 110 231 183;
|
|
--brand-400: 52 211 153;
|
|
--brand-500: 16 185 129;
|
|
--brand-600: 5 150 105;
|
|
--brand-700: 4 120 87;
|
|
--brand-800: 6 95 70;
|
|
--brand-900: 6 78 59;
|
|
--brand-950: 2 44 34;
|
|
}
|
|
|
|
/* ── Amber ───────────────────────────────────────────────────────────────── */
|
|
[data-accent="amber"] {
|
|
--brand-50: 255 251 235;
|
|
--brand-100: 254 243 199;
|
|
--brand-200: 253 230 138;
|
|
--brand-300: 252 211 77;
|
|
--brand-400: 251 191 36;
|
|
--brand-500: 245 158 11;
|
|
--brand-600: 217 119 6;
|
|
--brand-700: 180 83 9;
|
|
--brand-800: 146 64 14;
|
|
--brand-900: 120 53 15;
|
|
--brand-950: 69 26 3;
|
|
}
|
|
|
|
/* ── Cyan ────────────────────────────────────────────────────────────────── */
|
|
[data-accent="cyan"] {
|
|
--brand-50: 236 254 255;
|
|
--brand-100: 207 250 254;
|
|
--brand-200: 165 243 252;
|
|
--brand-300: 103 232 249;
|
|
--brand-400: 34 211 238;
|
|
--brand-500: 6 182 212;
|
|
--brand-600: 8 145 178;
|
|
--brand-700: 14 116 144;
|
|
--brand-800: 21 94 117;
|
|
--brand-900: 22 78 99;
|
|
--brand-950: 8 51 68;
|
|
}
|
|
|
|
/* Phase 7: converted from @layer base + @apply */
|
|
html, body, #root {
|
|
height: 100%;
|
|
}
|
|
body {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Phase 7: converted from @layer utilities + @apply / theme() */
|
|
.sidebar-open {
|
|
width: 18rem; /* was: @apply w-72 */
|
|
}
|
|
.sidebar-closed {
|
|
width: 3.5rem; /* was: @apply w-14 */
|
|
}
|
|
|
|
/* On small screens the sidebar overlays content instead of pushing it */
|
|
@media (max-width: 639px) {
|
|
.sidebar-open {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 30;
|
|
width: 18rem; /* was: theme('spacing.72') */
|
|
}
|
|
.sidebar-closed {
|
|
width: 2.5rem; /* was: theme('spacing.10') */
|
|
}
|
|
}
|
|
|
|
/* Custom scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-color, #cbd5e1);
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: color-mix(in srgb, var(--border-color, #94a3b8) 80%, #000);
|
|
}
|
|
|
|
/* Range input styling — appearance: none so we fully control thumb shape.
|
|
Height must be set explicitly; without it the track collapses to ~0px.
|
|
accent-color is NOT used here because it is ignored when appearance: none is active. */
|
|
input[type="range"] {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background: var(--border-color, #e2e8f0);
|
|
height: 6px;
|
|
border-radius: 9999px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type="range"]::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: rgb(var(--brand-500, 59 130 246));
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type="range"]::-moz-range-thumb {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: rgb(var(--brand-500, 59 130 246));
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|