This repository was archived by the owner on Nov 25, 2026. It is now read-only.
Repository navigation
feat!: themes, 16px reading text, and engine-ui as a reference - #10
Merged
Merged
Conversation
Themes. Engine Magenta (dark, still the default) and Engine Magenta Light, selected with data-theme on <html> or any subtree. Components name roles instead of white/black literals; the grey ramp is relative to the page; new --color-scrim and shadow colour hooks; derived tints and aliases re-resolve under [data-theme] only, so an app that sets no theme is unchanged. scripts/check-themes.ts (bun run check:themes, now in CI) checks each theme for the full contract, dark/default parity and AA on every text pair. Sub text. grey-400/300/200 and muted-foreground brighter on dark, darker on light, each about 1.3x the old contrast against its page. Reading size. --text-body and --text-nav (16px) replace every 13-15px size on body copy, sub text, labels, field values, table cells, tooltips, menu items and navigation. Badge chips, button labels and mock-screen content keep their sizes; text-small (13px) is for those only. Segmented. A pill rail for filters and dropdown triggers, matching the pill tabs. Every import inside src/lib is now relative instead of $lib/, so the folder works wherever it is copied. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Products copy src/lib into their own tree with scripts/copy-into.ts, either as a folder or (--package) as a local workspace package still named @engineio/ui so existing imports keep resolving, and own the copy. ENGINE-UI.md in the copy records the upstream commit to diff from. The release workflow, semantic-release config and dependencies are gone and the package is private. @engineio/[email protected] stays on npm for the products still installing it. README, AGENTS.md, the gallery and the agent skill describe the copy model; MIGRATION.md is the plan for switching studio, rgs and casino. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Adds theming and a 16px floor for reading text, and turns engine-ui from an npm package into a reference that products copy from. Merging this publishes nothing to npm: the release workflow is removed in this PR, so the merge redeploys only the gallery and
AGENTS.md.1. Themes
data-themeon<html>or on any subtree.white/black, so nodark:variants are needed.--color-scrim, plus--shadow-panel-colorand--shadow-modal-color.[data-theme]only. An app that sets no theme renders exactly as before, including the casino's@themebridge.bun run check:themes(now in CI) checks each theme for the full contract, for parity between the dark theme and the defaults, and for AA on 20 text pairs.data-theme="engine-magenta volt").src/lib/styles/themes/README.md.2. Brighter sub text
grey-400,grey-300andgrey-200andmuted-foregroundare about 1.3× the old contrast: brighter on dark, darker on light. For example,grey-300goes from #9a9a9a to #b0b0b0, 6.9:1 → 8.9:1. This changes the default dark look for every product that picks it up.3. 16px reading text
--text-bodyand--text-nav(both 16px) replace every 13–15px size on body copy, sub text, labels, field values, table cells, tooltips, menu items and navigation.text-small(13px) is kept for those only.4. Segmented
A pill rail for filters and dropdown triggers.
5. A reference, not a package
src/libwithscripts/copy-into.tsand own the copy, in one of two ways:--package, as a local workspace package still named@engineio/ui, so studio's 225 importing files and rgs's 48 change nothing.ENGINE-UI.mdin the copy records the upstream commit. The next change isgit diff <sha> HEAD -- src/lib.$lib/import insidesrc/libis now relative, so a copy resolves wherever it lands..releaserc.jsonand the semantic-release dependencies are removed, and the package isprivate.MIGRATION.mdis the switch plan for studio, rgs and casino.Verified
bun run checkbun run check:themesbun run build(svelte-package + publint)bun run build:gallerymain: only the gallery's inner-panel demos differ (#000 → page colour)src/lib/vendor/engine-ui: check and build pass, stylesheet byte-identical--packagemode@engineio/ui(workspace:*), every import unchanged: check and build passDeliberately not done
MIGRATION.mdhas the per-repo steps, including the extra DockerfileCOPYline both workspaces need.mix-blend-screenneeds a dark page, so landings should pindata-theme="engine-magenta".Known
text-white/bg-whitein about 100 files, which breaks under the light theme. It also uses 14pxtext-xsand 13pxtext-smallfor sub text.ENGINE-BRAND.mdandENGINE-DESIGN-SYSTEM.mdin the engine repo still say there is no light theme, and the light values want brand-team sign-off.engine-brandandfront-conventionsskills still describe consuming the package fromnode_modules.🤖 Generated with Claude Code