style: reset UI to shadcn Sera and swap Lucide for Tabler

Merged
AZ
19d ago
+1551-1271

Summary

Resets the shared UI to the shadcn Sera preset (beXRToEi: Sera, zinc, Tabler, Geist Mono, Base UI) so there is one clean starting point to restyle from.

packages/ui/
├── styles/globals.css   # shadcn/tailwind.css import, Sera radius scale, no arbitrary values
└── components/          # regenerated from the Sera registry (23 components)
                         # kept local: slider, tooltip, drawer (vaul), checkbox, switch,
                         #   radio-group, toggle, label (restyled to Sera tokens)
apps/radio, apps/web     # ~110 rounded-* classes removed so Sera's square corners show
                         # lucide-react -> @tabler/icons-react (62 files, 83 icons)
-import { Trash2Icon } from "lucide-react";
+import { IconTrash } from "@tabler/icons-react";

Kept on purpose: rounded-full on radio-group (from Sera) and on custom components (knob, play-pause-button, changelog/What's new dots, midi-badge, peak-meter, platform dot). Remaining arbitrary values (16 in packages/ui, 32 in apps) are structural (calc, inherit, grid templates, viewport sizes).

Deviations from the registry: light --destructive is oklch(0.52 …) instead of Sera's 0.577 so destructive text passes the 4.5:1 contrast check in the Storybook a11y tests; secondary button hover is hover:bg-secondary/80 (registry uses an arbitrary color-mix); tooltip keeps its existing sideOffset/delay props; radio-group keeps the nativeButton fix like checkbox and switch.

Evidence

  • Before: no automated check for Sera conformity; components hand-edited per app, mixed Lucide/Tabler.
    After: every registry-backed component diffed against a fresh Sera scaffold by a read-only audit; stale items it found (drawer, slider, icons, web rounded-md) fixed.
  • Checks: bun run check, bun run typecheck (7/7), packages/ui tests (41), radio tests (3476 pass, 0 fail), radio and web builds.
  • Not verified: no before/after screenshots; slider, drawer and the swapped icons were not reviewed in the browser.

Merge Danger

Door: two-way

Blast Radius: app-wide visuals

Every screen loses its rounded corners, buttons become uppercase, inputs become underlined, and icons change shape (e.g. AudioLines/Waves both become IconWaveSine). Intentional Sera behavior changes: Select popups align the selected item with the trigger, context menus open to the right with no offset, inputs and textareas show focus as an underline colour change, textareas do not resize, and buttons keep their full padding next to an icon until icons carry data-icon. Everything else the regeneration dropped was restored in 0078bb26. Stacked on dev-design (#459).