A consumer's long left-hand navbar extra (yasta's config path) pushed
the right-hand buttons into two lines under the modern style's wider
button padding. The buttons now keep white-space: nowrap and the left
group may shrink, so the extra wraps instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A third appearance axis, PageHeader.Style (<html data-style>), with
StyleModern -- the default when Style is empty -- and StyleClassic, the
look up to v0.4.x. The modern style is one [data-style="modern"] block
at the end of style.css over the classic rules: navbar without a rule,
the sidebar as a floating rounded card with group headings, icons and
a pill for the active entry, rounder and quieter Bootstrap components.
In it inactive sidebar links use the text color; #0b82b8 now only
colors them in the classic style (owner decision 2026-11-28).
- appearance menu: "Style"/"Stil" section, cookie yw_style
- palette slate (dark slate and lavender)
- NavItem.Group (sidebar group headings) and NavItem.Icon (names from
the new NavIcons set, shown only in the modern style)
- cmd/webui-demo: a sample page for comparing styles, palettes and modes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page without a sidebar (a login page) sets BodyAttrs to
class="no-sidebar"; the layout always renders the sidebar column, so
style.css now hides it and gives <main> the full width. yaiam-web had
the rule in its own stylesheet, so yaiam-authd's login pages, which
only load this one, showed an empty column.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dashboards use yellow as a status color (warning, "gelb"); a
yellow accent made accent badges and links read as warnings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every consumer styled .btn-primary as #2595c8 (hover #1d7baa) in its
own stylesheet; with that as the default palette's --yw-primary the
template's Bootstrap bridge matches it, and the consumers' hard-coded
rules can go so that the other palettes reach their buttons too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every color token is now one light-dark(<light>, <dark>) pair; the
mode (data-theme) only sets color-scheme, so "system" no longer needs a
duplicated media-query block. RGB triplets and the url() icons Bootstrap
swaps in dark mode pick their value via the --yw-if-light/--yw-if-dark
switches.
Bootstrap's theme-dependent --bs-* variables and the components that
hard-code its primary blue are mapped onto --yw-*, so tables, forms,
links, buttons and alerts follow the theme. The navbar drops
navbar-dark, which pinned its colors to white in light mode.
New data-palette axis (PageHeader.Palette): default, graphite
(grey/violet, after nessajina.tv) and contrast. The default palette
keeps the #0b82b8 nav-link token; the others use their own.
appearance.go: ApplyAppearance reads the yw_theme/yw_palette cookies,
AppearanceHandler stores a choice (POST only, local redirects only),
and PageHeader.AppearancePath shows a script-free <details> menu in
the navbar.
TestPaletteTokens replaces TestThemeBlocksInSync.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PageHeader.Theme now has three values (ThemeDark, ThemeLight,
ThemeSystem). "system" follows prefers-color-scheme. Unset Theme is
still the dark palette, but every block now also sets color-scheme,
so native controls and scrollbars match it. TestThemeBlocksInSync
keeps the duplicated light values and the property lists in step.
Persisting the choice stays the consumer's job (README, Theming).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Below the md breakpoint, where the sidebar column stacks above the
content, the sidebar becomes a row of tabs in the look of Bootstrap's
.nav-tabs (the active one underlined in the accent color) that wraps onto
further rows instead of scrolling sideways. The stacked row no longer
shares its extra height out to the tab bar (align-content: flex-start),
which left an empty band below the links, and the navbar's extras (a
config path, action buttons) wrap instead of widening the page past the
screen.
README: add yet ("yet serve") to the migration status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Zero behavior change for every current consumer (Theme defaults to "",
which resolves to the unchanged bare :root block). Adds the seam a
future second theme slots into: its own :root[data-theme="..."] block
in static/style.css, nothing else in this module changes. See
README.md's expanded Theming section for the concrete mechanism.
Preparation for the yamocir migration: same computed colors as before,
now expressed as reusable, documented tokens instead of literals baked
into each rule. Also documents scope in README.md's new Theming
section -- this module ships exactly one theme; per-project theming
(e.g. yaais's light/dark toggle) belongs in that project, not here.
Pilot module for the shared design used by yasta, yasl, yaiam, yakwui,
and yamase-web: server-rendered Bootstrap dashboard chrome, imported as
a Go module instead of copy-pasted per project.