Skip to content

Repoint the remaining controls, overlays and effects - #91

Draft
librowski wants to merge 3 commits into
ds2-form-fieldsfrom
ds2-repoint
Draft

Repoint the remaining controls, overlays and effects#91
librowski wants to merge 3 commits into
ds2-form-fieldsfrom
ds2-repoint

Conversation

@librowski

Copy link
Copy Markdown
Collaborator

Repoints the remaining controls, overlays and effects onto the token set. No public API changes.

Focus rings — every focusable control (buttons and fields excepted; they are handled in their own layers) draws the ring the design system defines: the focus-element geometry with the focus colour, replacing the hardcoded offsets each component carried. The alternative ui-focus-ring and ui-stroke-focus tokens exist for other purposes and are deliberately not used here.

Elevation — shadows bind the shadow-ui-{xs,s,m,l,xl} geometry with shadow-ui-color, so the dark theme no longer needs a second rule. Modal takes the l step.

Components — selector metrics for checkbox, radio and switch; snackbar, tooltip and date-picker surfaces on their component tokens; canvas dot pattern and the scrollbar (kept a global style, not a component) on theirs.

SDK and AI Studio — the SDK global stylesheet, the diagram surface and the execution markers bind canvas and ui tokens; app-scoped --ai-studio-* variables stay app-scoped.

Values with no matching token were left as literals rather than snapped to a near miss, and are listed here so design can decide: date-picker elevation 0 4px 20px, SDK variable-suggestion elevation 0 4px 12px, the chip's decorative 1px outline, the indicator pulse spread, the scrollbar's 6px width, and a handful of component-specific widths, icon dimensions, transitions and z-indexes. Snackbar has no opaque surface token, so it keeps ui-bg-base beneath its accent overlay; tooltip component tokens define backgrounds only.

Two commits: the ui package, then the sdk/app styles.

Verified: ui lint + typecheck, build:ui, build:lib, stylelint, all test suites, docs build, demo build — re-run after rebasing onto the field layer.

…en set

Focusable controls draw the ring the design system defines: the
focus-element geometry with the focus colour, replacing the hardcoded
offsets each component carried. Elevation comes from the shadow ramp
with its own colour token, so dark mode no longer needs a second rule.

Selector, snackbar, tooltip and date-picker surfaces bind their
component tokens, and the sizes that were literal rem values now take
the size scale.
The SDK global stylesheet, the diagram surface and the execution
markers bind canvas and ui tokens; app-scoped variables stay app-scoped.
The public snackbar background variables carry the complete layered
value again - a status tint over the surface, consumed as one
background - because two SDK surfaces read them directly and lost
their tint when the tint moved into a private rule.

Selector and switch dimensions go back to the values they had. The
size scale has no step for most of them, so snapping to the nearest
one silently resized every checkbox, radio and switch; a token is
bound only where it resolves to the same value.

The date-picker popup takes the base surface again, so hovering a day
is visible, and the generic radio dot rule no longer overrides the
size classes that follow it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant