You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fc6eaea
Browse filesBrowse the repository at this point in the historyBrowse files
feat(ui): share shadcn primitives in @sketchi/ui and lint the Tailwind apps with @shadcn/lint (#601)
The site hand-rolled its buttons in plain CSS while the playground kept its own
copy of the shadcn primitives. The primitives now live once, in packages/ui, with
the stylesheet that maps shadcn's tokens onto the shared theme. The playground
imports them from there and the site uses the same Button: a `brand` variant and
an `xl` size carry the site's call to action, and the mobile menu toggle is an
outline icon button with lucide icons. Both apps have a components.json whose ui
and utils aliases point at the package.
@shadcn/lint and better-tailwindcss now run as Oxlint plugins in `pnpm run
lint`, configured in tools/oxlint/ui-style-policy.json and described in
docs/ui-style-contracts.md. What they found is fixed: classes with no CSS behind
them, inline left/top and animation delays that now go through CSS custom
properties, utility-shaped overrides moved to Tailwind classes, and the
tw-animate-css classes the primitives use, which only the playground imported.
The site now loads Tailwind's preflight; the docs page's numbered steps keep
their numbers.
0 commit comments