Vue kit: the kit's classes wear Core's standard looks

UiButton gains styled variants beside the unstyled default ghost:
action (the gev-action-button surface, tone="danger" and size="compact"),
primary (that surface with the scene panel's main-action accent) and icon
(the panel collapse toggle's square glyph button). A pressed styled button
looks as a hovered one does. UiChip wears the read-only chip (now chip.css,
shared with the news chips), UiEmpty the one-line empty state (now
empty-state.css, shared with the news readout), and UiBadge and UiSegmented
carry their skins through the kit's own classes too.

Every kit selector shares one selector list with the Core skin it comes
from, in skins loaded before the feature stylesheets, so no rule is copied
and feature classes still win. The app renders as before: the voice card
chip and the Recent Imagery and Authoring empty states keep their own type
by inheriting it, and the dock pin buttons drop variant="icon", which they
never wore. kitStyles.test.mjs pins the shared rules.

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju committed 2026-11-18 23:42:55 -08:00
1 parent ec1fc6bc09
commit 9f8a4cb39d
22 files changed
+363 -61

No files matched your search

+32 -2
View File
@@ -1,5 +1,10 @@
/* Ordinary actions share one surface; feature classes own placement and width.
* Legacy scene-btn hooks keep untouched toggles/Street Level controls stable. */
* Legacy scene-btn hooks keep untouched toggles/Street Level controls stable.
* The kit's UiButton wears it as variant="action" (.ui-button--action) and
* variant="primary" (.ui-button--primary); its resting rules select one kit
* class, so a feature class loaded later still wins. */
.ui-button--action,
.ui-button--primary,
.gev-action-button,
.scene-btn {
background: rgba(255, 255, 255, 0.05);
@@ -19,6 +24,11 @@
white-space: nowrap;
}
/* A pressed kit action looks as a hovered one does. */
.ui-button--action:hover:not(:disabled),
.ui-button--primary:hover:not(:disabled),
.ui-button--action.ui-button--pressed:not(:disabled),
.ui-button--primary.ui-button--pressed:not(:disabled),
.gev-action-button:hover:not(:disabled),
.scene-btn:hover:not(:disabled) {
color: var(--accent);
@@ -26,12 +36,17 @@
background: rgba(0, 212, 255, 0.14);
}
.ui-button--action:disabled,
.ui-button--primary:disabled,
.gev-action-button:disabled,
.scene-btn:disabled {
opacity: 0.45;
cursor: default;
}
/* tone="danger". */
.ui-button--action.ui-button--danger:hover:not(:disabled),
.ui-button--action.ui-button--danger.ui-button--pressed:not(:disabled),
.gev-action-button--danger:hover:not(:disabled),
.scene-btn-danger:hover:not(:disabled) {
color: #ff7272;
@@ -39,7 +54,19 @@
background: rgba(255, 88, 88, 0.15);
}
/* Shot-row actions retain their smaller footprint and quieter hover treatment. */
/* One primary action per group: Authoring's CAPTURE SHOT and PLAY. The panel
id keeps those above the shared surface; scenes.css keeps their hover. The
kit selector stays at one class's weight. */
.ui-button--primary:where(:not(:disabled)),
#scene-panel .scene-btn-primary:not(:disabled) {
color: var(--accent);
border-color: color-mix(in srgb, var(--accent) 55%, transparent);
background: color-mix(in srgb, var(--accent) 10%, transparent);
}
/* Shot-row actions retain their smaller footprint and quieter hover treatment
(size="compact"). */
.ui-button--compact,
.gev-action-button--compact {
border-radius: 6px;
font-size: 8px;
@@ -47,12 +74,15 @@
padding: 4px 6px;
}
/* A pressed compact action keeps its pressed look under the pointer. */
.ui-button--compact:hover:not(:disabled):not(.ui-button--pressed),
.gev-action-button--compact:hover:not(:disabled) {
color: var(--text-primary);
border-color: var(--glass-border-hover);
background: rgba(255, 255, 255, 0.05);
}
.ui-button--compact.ui-button--danger:hover:not(:disabled),
.gev-action-button--compact.gev-action-button--danger:hover:not(:disabled) {
color: #ff7e7e;
border-color: #ff7e7e;
+23
View File
@@ -0,0 +1,23 @@
/* Read-only chips: a label that says what something is, never a control (a
chip that presses is a button). The kit's UiChip (.ui-chip) and the news
cards' chips wear it; feature classes loaded later restyle it. */
.ui-chip,
.news-chip {
padding: 2px 7px;
border: 1px solid var(--glass-border-hover);
border-radius: 999px;
color: var(--text-secondary);
font: 8px var(--font-mono);
letter-spacing: 0.08em;
text-transform: uppercase;
}
/* A selected chip takes the accent of the read-only badge (status-badge.css);
news marks official and confirmed reports this way. */
.ui-chip--selected,
.news-chip--official,
.news-chip--confirmed {
border-color: rgba(0, 212, 255, 0.32);
background: rgba(0, 212, 255, 0.09);
color: #9defff;
}
+6
View File
@@ -186,6 +186,9 @@ html:not([lang='en']):not(:lang(zh)):not(:lang(ja))
background: linear-gradient(to right, var(--glass-border), transparent);
}
/* A panel's collapse toggle, and the kit's square glyph button
(UiButton variant="icon"). */
.ui-button--icon,
.panel-collapse-btn {
width: 22px;
height: 22px;
@@ -205,6 +208,9 @@ html:not([lang='en']):not(:lang(zh)):not(:lang(ja))
color var(--transition-fast);
}
/* A pressed kit icon button looks as a hovered one does. */
.ui-button--icon:hover,
.ui-button--icon.ui-button--pressed,
.panel-collapse-btn:hover {
border-color: var(--glass-border-hover);
color: var(--text-primary);
+15
View File
@@ -0,0 +1,15 @@
/* A one-line empty state: dim mono text where a list would be. The kit's
UiEmpty (.ui-empty) and the news readout's empty and status lines wear it;
feature classes loaded later restyle it. */
.ui-empty,
.news-readout__empty,
.news-readout__status {
color: var(--text-dim);
font: 10px var(--font-mono);
}
/* The next step (a missing key's), under what it holds back. */
.ui-empty__hint {
display: block;
margin-top: 2px;
}
+2 -26
View File
@@ -163,16 +163,6 @@
.news-readout__list.is-stale {
opacity: 0.5;
}
.news-readout__status,
.news-readout__empty {
color: var(--text-dim);
font: 10px var(--font-mono);
}
/* A missing key's next step, under what it holds back. */
.news-readout__empty .ui-empty__hint {
display: block;
margin-top: 2px;
}
.news-readout__footer {
display: flex;
align-items: center;
@@ -327,22 +317,8 @@
flex-wrap: wrap;
gap: 4px;
}
/* GEV's read-only badge (status-badge.css), neutral unless attested. */
.news-chip {
padding: 2px 7px;
border: 1px solid var(--glass-border-hover);
border-radius: 999px;
color: var(--text-secondary);
font: 8px var(--font-mono);
letter-spacing: 0.08em;
text-transform: uppercase;
}
.news-chip--official,
.news-chip--confirmed {
border-color: rgba(0, 212, 255, 0.32);
background: rgba(0, 212, 255, 0.09);
color: #9defff;
}
/* A report's chips wear the shared chip (chip.css), neutral unless attested;
a claim is dashed. */
.news-chip--claimed {
border-style: dashed;
}
+4
View File
@@ -175,7 +175,11 @@
.recent-imagery-readout .ri-strip.searching {
opacity: 0.7;
}
/* A UiEmpty in the readout's own colour and type, not the shared empty
line's (empty-state.css). */
.recent-imagery-readout .ri-strip-empty {
color: inherit;
font: inherit;
flex: 1 0 100%;
align-self: center;
text-align: center;
+5 -9
View File
@@ -219,14 +219,6 @@ html:not([lang='en']) #scene-panel .scene-controls .scene-btn {
margin-top: 2px;
}
/* One primary action per step: CAPTURE SHOT and PLAY. The panel id keeps
this above the shared button surface. */
#scene-panel .scene-btn-primary:not(:disabled) {
color: var(--accent);
border-color: color-mix(in srgb, var(--accent) 55%, transparent);
background: color-mix(in srgb, var(--accent) 10%, transparent);
}
/* The file row is housekeeping; it stays quieter than the steps above. */
#scene-panel .scene-file-controls .scene-btn {
font-size: 9px;
@@ -236,7 +228,8 @@ html:not([lang='en']) #scene-panel .scene-controls .scene-btn {
background: transparent;
}
/* Keep the shared hover on the restyled actions. */
/* Keep the shared hover on the restyled actions; CAPTURE SHOT and PLAY take
their resting emphasis from action-button.css. */
#scene-panel .scene-btn-primary:hover:not(:disabled),
#scene-panel .scene-file-controls .scene-btn:hover:not(:disabled) {
color: var(--accent);
@@ -337,6 +330,9 @@ html:not([lang='en']) #scene-panel .scene-controls .scene-btn {
border-radius: 8px;
padding: 16px 12px;
text-align: center;
/* A UiEmpty in the panel's weight, not the shared empty line's
(empty-state.css). */
font: inherit;
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.3px;
+10 -1
View File
@@ -1,4 +1,6 @@
/* Shared one-of-many control. Feature classes retain surrounding placement. */
/* Shared one-of-many control. Feature classes retain surrounding placement.
The kit's UiSegmented (.ui-segmented, .ui-segmented__item) wears it. */
.ui-segmented,
.gev-segmented {
display: inline-flex;
min-width: 0;
@@ -6,9 +8,11 @@
border-radius: 6px;
overflow: hidden;
}
.ui-segmented[hidden],
.gev-segmented[hidden] {
display: none;
}
.ui-segmented__item,
.gev-segment {
flex: 1;
min-width: min-content;
@@ -28,23 +32,28 @@
background-color var(--transition-fast),
color var(--transition-fast);
}
.ui-segmented__item + .ui-segmented__item,
.gev-segment + .gev-segment {
border-left: 1px solid var(--glass-border);
}
.ui-segmented__item:hover:not(:disabled),
.gev-segment:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.ui-segmented__item[aria-checked='true'],
.gev-segment[aria-checked='true'] {
background: var(--accent);
color: #000;
}
.ui-segmented__item:focus-visible,
.gev-segment:focus-visible {
position: relative;
outline: 2px solid var(--text-primary);
outline-offset: -3px;
box-shadow: inset 0 0 0 4px #061014;
}
.ui-segmented__item:disabled,
.gev-segment:disabled {
opacity: 0.42;
cursor: not-allowed;
+4 -1
View File
@@ -1,5 +1,7 @@
/* Read-only badges. Feature CSS supplies meaning through explicit colors;
appearance variants change density/shape without interpreting status codes. */
appearance variants change density/shape without interpreting status codes.
The kit's UiBadge (.ui-badge) wears it. */
.ui-badge,
.gev-status-badge {
display: inline-flex;
align-items: center;
@@ -38,6 +40,7 @@
}
/* Explicitly beat the component display rule, including in older browsers. */
.ui-badge[hidden],
.gev-status-badge[hidden] {
display: none;
}
+3
View File
@@ -240,11 +240,14 @@
gap: 0.25rem;
}
/* A UiChip in the card's own type: the card's line height and weight, not
the shared chip's (chip.css). */
.gev-voice-card-chip {
padding: 0.08rem 0.3rem;
color: var(--text-secondary);
border: 1px solid rgba(54, 220, 255, 0.3);
border-radius: 0.18rem;
font: inherit;
font-family: var(--font-mono);
font-size: 0.44rem;
letter-spacing: 0.06rem;