Files
computer-playbook/utils/design
kevinveenbirkenbachandClaude Opus 5.5 724c4c2b5d feat(design): render a lockup on brand chrome in the frame text color
A generated lockup drew its title in the primary color with an
on-primary outline. On a header or sidebar that a role maps onto the
frame token, that put primary-colored text on a primary-toned ground.

A slot now takes `frame: true` in the role's design entry. The asset
action receives a second color pair from the palette, the on-frame
color as fill and the frame color as outline, and the renderer picks
the pair per slot. Slots without the flag render as before.

Keycloak calls the asset action directly and already rendered its
brand slot in the on-frame color, so it passes that color for both
pairs and keeps its output.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 15:38:09 +02:00
..
…

Design Utilities 🎨

Color math and token derivation for the corporate design served by web-svc-design.

Modules 📦

Module Purpose
palette.py Derives the --design-* tokens for light and dark mode from one base color in OKLCH, with WCAG 2.2 contrast checked on the rounded hex value.

Example Imports ✍️

from utils.design.palette import build_palette, contrast