feat(uno-crm): seed colours and design tokens for UnoCRM - #956
Draft
DerekRaven wants to merge 1 commit into
Draft
DerekRaven wants to merge 1 commit into
DerekRaven wants to merge 1 commit into
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
… tokens - Replace the hand-authored semantic palette with three seed colours on SimpleToolkitTheme.Colors - Pin the roles the tonal recipe cannot reach via Colors.OverrideSource - Consume the generated Radius*/Space* tokens in the app own XAML so DefaultCornerRadius and DefaultSpacing actually reach the UI - Pin Uno.Themes 8.0.0-dev.15 and Uno.Toolkit 9.1.3 Contributes to #952 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
DerekRaven
force-pushed
the
dev/dr/design-tokens-uno-crm
branch
from
September 15, 2026 14:31
88ecedf to
18c8045
Compare
DerekRaven
marked this pull request as draft
September 15, 2026 15:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Move UnoCRM onto Uno.Themes design tokens: generate the semantic palette from seed colours
instead of hand-authoring it, and consume the generated shape and spacing tokens so theme-level
design-token edits actually reach the UI.
Contributes to #952.
Seed colours
The palette is generated from three seeds on
SimpleToolkitTheme.Colors:#0D6E6E/#3B82F6/#F59E0B— the sample'sown existing light-mode
PrimaryColor/SecondaryColor/TertiaryColor, so the brand colours areunchanged.
SeedColorModedefaults toFidelity, which renders light-mode Primary as the exact hexand brightens it for dark. The hand-authored palette file is deleted.
Seed exceptions.
ColorOverrides.xamlpinsSecondaryColor,TertiaryColor,OutlineColor,SecondaryContainerColor,TertiaryContainerColorback to the authored value viaColors.OverrideSource, which merges last and wins over the generated palette. These are a palette that was the least M3-shaped to begin with: a bright amber tertiary and flat grey outlines are exactly what the tonal recipe normalises away. Both themes are declared for every pinned role — the brush resolver probesLightthenDefault, so aDefault-only role would bleed its dark colour into light.Design tokens
The app previously referenced zero
{ThemeResource Space*}or{ThemeResource Radius*}tokens, soDefaultCornerRadiusandDefaultSpacinghad nothing to act on — editing them moved nothing. It nowcarries 121 token references.
RadiusFullCornerRadius. Their radius was half a fixed dimension, which no numeric step tracks — snapping those to the nearest step would visibly square them off.Left literal on purpose: compound radii and compound thicknesses (no token expresses a per-edge
value), and any value more than 4px from a ramp step.
Verification
net10.0-desktop.directly: no resource errors, and the pixels are unchanged apart from the handful of radii that
snapped by 1-4px.
Dark mode has not been exercised (the virtual framebuffer has no OS theme to switch), so a human
look in dark mode is still worth doing.
🤖 Generated with Claude Code