Skip to content

fix: align components with the design system tokens (v0.3.0) - #3

Merged
FrekiManagarm merged 1 commit into
mainfrom
fix/ds-conformance
Oct 30, 2026
Merged

FrekiManagarm merged 1 commit into
mainfrom
fix/ds-conformance

Conversation

@FrekiManagarm

@FrekiManagarm FrekiManagarm commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Why

verify:ds passed, but it only checked six rules. styles.css doesn't reset Tailwind's default namespaces, so text-sm, bg-white or duration-300 still compile quietly, and several had come in with the shadcn components.

Changes

Type scale

  • Sidebar and Sheet: text-xs/text-sm become text-12/text-13. Sidebar menu items now match SidebarNav at 13px.
  • TimeSeriesChart: axis labels go from 10px to 11px, the smallest size on the scale.

Colour

  • Sheet overlay: bg-black/50 becomes bg-overlay + blur, the same as Dialog.
  • Danger button: text-white becomes text-on-accent. The colour is identical in light and dark.
  • Switch thumb: bg-white becomes bg-on-accent.
  • Video tile label: text-white becomes text-on-overlay. This is a new --color-on-overlay utility, and the --text-on-overlay token it maps to already existed.
  • Skeleton: via-black/[.04] becomes via-active. The shimmer was invisible in dark mode.

Motion

  • Durations snap to the documented values (120 tints, 180 default, 260 size & position).
    • Sheet: 300/500 → 260.
    • Sidebar: 200 linear → 260 ease-out.
  • duration-[120ms] becomes duration-120.

verify:ds: three new rules, each with tests.

  • type-scale: rejects Tailwind's default text sizes.
  • no-raw-palette: rejects black/white and the default Tailwind palette.
  • motion-duration: only allows 0/120/180/260.

Version: 0.2.0 → 0.3.0.

Checks

  • bun run check-types
  • bun test (25 tests)
  • bun run verify:ds
  • npm pack --dry-run

After merge

The version is already bumped in this PR, so npm version must not run again. Tag the merge commit on main instead:

git switch main && git pull && git tag v0.3.0 && git push origin v0.3.0

The Release workflow then creates the GitHub release.

- Type scale: text-xs/text-sm in Sidebar and Sheet move to text-12/text-13;
  chart axis labels go from 10px to 11px.
- Colour: no more black/white utilities. Sheet overlay matches Dialog
  (bg-overlay + blur), danger button and switch thumb use on-accent,
  video tile label uses the new on-overlay utility, skeleton shimmer uses
  surface-active so it shows in dark mode.
- Motion: durations snap to 120/180/260ms (Sheet 300/500, Sidebar 200).
- verify:ds gains three rules (type-scale, no-raw-palette, motion-duration)
  since Tailwind's default namespaces stay active and compile silently.
- Bump to 0.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@FrekiManagarm
FrekiManagarm merged commit 1d4f313 into main Oct 30, 2026
1 check passed
FrekiManagarm added a commit that referenced this pull request Nov 3, 2026
fix: align components with the design system tokens (v0.3.0)
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