Fix theme cascade: use sentient variables directly in sheet/slides CSS

- Remove intermediate variable aliases in :root (they don't cascade)
- Replace --sheet-* and --slides-* with direct --sentient-* references
- Headers, borders, and cells now properly follow theme colors
- Dark themes will now paint dark backgrounds correctly
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-01-11 21:08:43 -03:00
parent 443f611289
commit 9b39088e37
2 changed files with 22 additions and 28 deletions

View file

@ -8,9 +8,6 @@
============================================================================= */ ============================================================================= */
:root { :root {
--sheet-grid-border: var(--sentient-border, #e0e0e0);
--sheet-header-bg: var(--sentient-bg-secondary, #f5f5f5);
--sheet-cell-selected: var(--sentient-accent, #4285f4);
--sheet-cell-range: rgba(66, 133, 244, 0.1); --sheet-cell-range: rgba(66, 133, 244, 0.1);
} }
@ -394,9 +391,9 @@
} }
.grid-corner { .grid-corner {
background: var(--sheet-header-bg); background: var(--sentient-bg-secondary, #f5f5f5);
border-right: 1px solid var(--sheet-grid-border); border-right: 1px solid var(--sentient-border, #e0e0e0);
border-bottom: 1px solid var(--sheet-grid-border); border-bottom: 1px solid var(--sentient-border, #e0e0e0);
position: sticky; position: sticky;
top: 0; top: 0;
left: 0; left: 0;
@ -412,7 +409,7 @@
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 20; z-index: 20;
background: var(--sheet-header-bg); background: var(--sentient-bg-secondary, #f5f5f5);
} }
.column-header { .column-header {
@ -422,8 +419,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-right: 1px solid var(--sheet-grid-border); border-right: 1px solid var(--sentient-border, #e0e0e0);
border-bottom: 1px solid var(--sheet-grid-border); border-bottom: 1px solid var(--sentient-border, #e0e0e0);
font-size: 12px; font-size: 12px;
font-weight: 500; font-weight: 500;
color: var(--sentient-text-secondary, #666); color: var(--sentient-text-secondary, #666);
@ -438,7 +435,7 @@
} }
.column-header.selected { .column-header.selected {
background: var(--sheet-cell-selected); background: var(--sentient-accent, #4285f4);
color: white; color: white;
} }
@ -453,7 +450,7 @@
} }
.column-resize:hover { .column-resize:hover {
background: var(--sheet-cell-selected); background: var(--sentient-accent, #4285f4);
} }
/* ============================================================================= /* =============================================================================
@ -466,7 +463,7 @@
position: sticky; position: sticky;
left: 0; left: 0;
z-index: 20; z-index: 20;
background: var(--sheet-header-bg); background: var(--sentient-bg-secondary, #f5f5f5);
} }
.row-header { .row-header {
@ -476,8 +473,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-right: 1px solid var(--sheet-grid-border); border-right: 1px solid var(--sentient-border, #e0e0e0);
border-bottom: 1px solid var(--sheet-grid-border); border-bottom: 1px solid var(--sentient-border, #e0e0e0);
font-size: 12px; font-size: 12px;
font-weight: 500; font-weight: 500;
color: var(--sentient-text-secondary, #666); color: var(--sentient-text-secondary, #666);
@ -491,7 +488,7 @@
} }
.row-header.selected { .row-header.selected {
background: var(--sheet-cell-selected); background: var(--sentient-accent, #4285f4);
color: white; color: white;
} }
@ -517,8 +514,8 @@
padding: 0 6px; padding: 0 6px;
display: flex; display: flex;
align-items: center; align-items: center;
border-right: 1px solid var(--sheet-grid-border); border-right: 1px solid var(--sentient-border, #e0e0e0);
border-bottom: 1px solid var(--sheet-grid-border); border-bottom: 1px solid var(--sentient-border, #e0e0e0);
font-size: 13px; font-size: 13px;
background: var(--sentient-bg-primary, #ffffff); background: var(--sentient-bg-primary, #ffffff);
color: var(--sentient-text-primary, #212121); color: var(--sentient-text-primary, #212121);
@ -534,7 +531,7 @@
} }
.cell.selected { .cell.selected {
outline: 2px solid var(--sheet-cell-selected); outline: 2px solid var(--sentient-accent, #4285f4);
outline-offset: -1px; outline-offset: -1px;
z-index: 5; z-index: 5;
} }
@ -552,7 +549,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
border: none; border: none;
outline: 2px solid var(--sheet-cell-selected); outline: 2px solid var(--sentient-accent, #4285f4);
padding: 0 6px; padding: 0 6px;
font-size: 13px; font-size: 13px;
font-family: inherit; font-family: inherit;
@ -566,8 +563,8 @@
.selection-box { .selection-box {
position: absolute; position: absolute;
border: 2px solid var(--sheet-cell-selected); border: 2px solid var(--sentient-accent, #4285f4);
background: var(--sheet-cell-range); background: var(--sentient-accent-light, rgba(66, 133, 244, 0.1));
pointer-events: none; pointer-events: none;
z-index: 10; z-index: 10;
display: none; display: none;
@ -575,7 +572,7 @@
.copy-box { .copy-box {
position: absolute; position: absolute;
border: 2px dashed var(--sheet-cell-selected); border: 2px dashed var(--sentient-accent, #4285f4);
pointer-events: none; pointer-events: none;
z-index: 11; z-index: 11;
} }
@ -588,7 +585,7 @@
position: absolute; position: absolute;
width: 8px; width: 8px;
height: 8px; height: 8px;
background: var(--sheet-cell-selected); background: var(--sentient-accent, #4285f4);
border: 1px solid var(--sentient-bg-primary, #ffffff); border: 1px solid var(--sentient-bg-primary, #ffffff);
cursor: crosshair; cursor: crosshair;
z-index: 15; z-index: 15;

View file

@ -1,8 +1,5 @@
:root { :root {
--slides-grid-border: var(--sentient-border, #e0e0e0); --slides-cell-range: rgba(66, 133, 244, 0.1);
--slides-header-bg: var(--sentient-bg-secondary, #f5f5f5);
--slides-selected: var(--sentient-accent, #4285f4);
--slides-canvas-bg: #e5e5e5;
} }
* { * {
@ -370,7 +367,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
background: var(--slides-canvas-bg); background: var(--sentient-bg-tertiary, #e5e5e5);
} }
.slide-canvas-container { .slide-canvas-container {