Skip to content

WIP: classroom motivated changes - #30

Draft
microbit-matt-hillsdon wants to merge 2 commits into
mainfrom
classroom-migration
Draft

WIP: classroom motivated changes#30
microbit-matt-hillsdon wants to merge 2 commits into
mainfrom
classroom-migration

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Contributor

No description provided.

python-editor's Chakra theme shrank the numeric spacing/sizes grid to
Chakra's × 0.88 and fontSizes md+ to × 0.9 (the 2022 "make everything
smaller" change), and its migration replicated that in its app preset.
classroom's theme turns out to carry the identical scale — byte-identical
values, same change — so it belongs in one shared place rather than in two
app presets.

New optional `@microbit/ui/dense-preset`, stacked between the base preset
and the app preset by the two dense apps. ml-trainer and data-microbit-org
don't use it. Whether the family keeps this density or aligns on one scale
is still open; this is now the single place that answer lands.

See migration-playbook gotcha #25, which is what makes a global scale
override worth being explicit and shared about.
The family splits 2–2 on button colour idiom: brand-coloured buttons
(ml-trainer, python-editor) and a black-on-white system (classroom,
data-microbit-org — black solid, black outline, and a blackAlpha wash on
hover/press instead of a border-colour change). Without tokens, both apps
on the second side fork the `primary`/`secondary` variants in their own
presets: the same divergence, written twice.

So the two variants now resolve their colours through `button.*` semantic
tokens, defaulting to today's brand values — resolved output is unchanged
for the two migrated apps (verified: the recipe rules differ only by var
indirection). classroom overrides nine values.

`primary`'s text stays a literal `white` and `ghost` needs no tokens: both
are the same in all four apps.

Also refreshes the playbook's v1-surface list, which had drifted from
what's actually built, and records the decision against a shared Table
component (python-editor's one table site is a styled.table, which reads
better than a slot recipe over native table semantics).
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