feat(primitives): match COSS design for Badge, Input, Checkbox & other controls - #25
Merged
Conversation
…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.
Deploying originui-vue with
|
| 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 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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-fullpill →rounded-sm(COSS's squared badge),transition-shadow+ ring focusinfo/success/warning/errorbuilt on the new tokensForm & control primitives — COSS visual signatures
Applied without DOM restructuring (to keep the ~130 input/textarea + many control demos working):
rounded-md→rounded-lg, softer placeholder (/70→/72)rounded→rounded-smdisabled:opacity-50→disabled: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