Skip to content

feat(primitives): match COSS design for Badge, Input, Checkbox & other controls - #25

Merged
Jettonn merged 1 commit into
mainfrom
feat/coss-primitives-batch
Jul 13, 2026
Merged

feat(primitives): match COSS design for Badge, Input, Checkbox & other controls#25
Jettonn merged 1 commit into
mainfrom
feat/coss-primitives-batch

Conversation

@Jettonn

@Jettonn Jettonn commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Second batch of the primitives-first component audit — brings the remaining base ui/ primitives in line with COSS.

Badge — full faithful match (packages/ui/badge.tsx)

  • rounded-full pill → rounded-sm (COSS's squared badge), transition-shadow + ring focus
  • adds soft semantic variants info / success / warning / error built on the new tokens

Form & control primitives — COSS visual signatures

Applied without DOM restructuring (to keep the ~130 input/textarea + many control demos working):

  • Input / Textarea: rounded-mdrounded-lg, softer placeholder (/70/72)
  • Checkbox: roundedrounded-sm
  • Switch / Slider / SelectNative / Input / Textarea / Checkbox: disabled:opacity-50disabled:opacity-64 (COSS standard)

Deferred (documented)

COSS's input/textarea use a wrapper + before: pseudo-element + has-* focus pattern. Porting that changes the Input DOM structure and risks the 58 input + 19 textarea demos, so it's deferred as a follow-up rather than rushed.

Verification

  • ✅ type-check · ✅ eslint · ✅ build
  • ✅ Visual check: /badges (squared badges, soft variants) and /inputs (rounded-lg, error/icon/add-on demos intact)

…box, Switch, Slider, SelectNative

Badge (full COSS match, packages/ui badge.tsx):
- rounded-full pill -> rounded-sm, transition-shadow + ring focus
- add soft semantic variants: info / success / warning / error (new tokens)

Form & control primitives (COSS visual signatures, no DOM restructure):
- Input/Textarea: rounded-md -> rounded-lg, softer placeholder (/72)
- Checkbox: rounded -> rounded-sm
- disabled:opacity-50 -> disabled:opacity-64 across all controls

COSS's input/textarea use a wrapper + before-pseudo + has-* focus pattern;
that structural rewrite is deferred to avoid breaking the ~130 input/textarea
demos. Verified: type-check, lint, build, and visual check of badges + inputs.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying originui-vue with  Cloudflare Pages  Cloudflare Pages

Latest commit: 60e68cb
Status: ✅  Deploy successful!
Preview URL: https://028419b0.originui-vue.pages.dev
Branch Preview URL: https://feat-coss-primitives-batch.originui-vue.pages.dev

View logs

@Jettonn
Jettonn merged commit bab719a into main Jul 13, 2026
3 checks passed
@Jettonn
Jettonn deleted the feat/coss-primitives-batch branch July 13, 2026 14:39
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