Components · Buttons
Button
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Icon button
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Copy button
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Buttons outside the shared Button
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Mark as used
oldThe current app, rendered from the real components with sample data.
apps/web/components · apps/web/features/*/components
Log out button
oldThe current app, rendered from the real components with sample data.
apps/web/components · apps/web/features/*/components
Inconsistencies
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Near-duplicates
oldThe current app, rendered from the real components with sample data.
packages/ui/src/components · apps/web/components
Button
newFour tones. Secondary has only default, outline and ghost. Focus is always light Purple Frenzy.
packages/brand-ui/src/components/button.tsx
Primary · Purple Frenzy
| variant \ state | Default | Hover | Focus | Pressed | Disabled | Loading |
|---|---|---|---|---|---|---|
| default | ||||||
| outline | ||||||
| light | ||||||
| ghost | ||||||
| link |
Secondary · Anchors Aweigh on Silver Phoenix
| variant \ state | Default | Hover | Focus | Pressed | Disabled | Loading |
|---|---|---|---|---|---|---|
| default | ||||||
| outline | ||||||
| ghost |
Success · Shady Palm
| variant \ state | Default | Hover | Focus | Pressed | Disabled | Loading |
|---|---|---|---|---|---|---|
| default | ||||||
| outline | ||||||
| light | ||||||
| ghost | ||||||
| link |
Destructive · Knockout
| variant \ state | Default | Hover | Focus | Pressed | Disabled | Loading |
|---|---|---|---|---|---|---|
| default | ||||||
| outline | ||||||
| light | ||||||
| ghost | ||||||
| link |
Sizes and icons
newlg 48 px / 16 px, default 44 / 14, sm 40 / 12. Icon-only at the same heights. The icon's side gets 2/3 of the padding.
packages/brand-ui/src/components/button.tsx
| size | Text | Icon before | Icon after | Icon only, ghost | Icon only, light |
|---|---|---|---|---|---|
| lg48 px · 16 px | |||||
| default44 px · 14 px | |||||
| sm40 px · 12 px |
Star rating
newStars in Tennessee Orange. Hover previews the rating in soft orange.
packages/brand-ui/src/components/star-rating.tsx
| Not rated | |
|---|---|
| Rated 3 | |
| Hover on 4 | |
| Rated 3, hover on 2 | |
| Focus on 2 | |
| Disabled |
Mark as used
newA Button with aria-pressed: secondary · outline when not used, success · light with a tick when used. Large on the product page, sm in dashboard rows.
Button (packages/brand-ui/src/components/button.tsx)
€240/yr added to your savings
Log out
newButton secondary · ghost, sm, that posts to /auth/logout. On the navy admin sidebar it has white text and a 10% white hover.
Button (packages/brand-ui/src/components/button.tsx)
Where the old buttons go
newEvery old button and what it becomes.
| Old | New |
|---|---|
Button · default packages/ui/src/components/button.tsx | primary · default |
Button · outline packages/ui/src/components/button.tsx | secondary · outline (grey border, navy text, as before) |
Button · secondary packages/ui/src/components/button.tsx | secondary · default (Silver Phoenix, navy text, as before) |
Button · ghost packages/ui/src/components/button.tsx | secondary · ghost (as before) |
Button · destructive (pale red) packages/ui/src/components/button.tsx | destructive · light; destructive · default is now dark red |
Button · link packages/ui/src/components/button.tsx | primary · link |
Button · pressed nudge and error ring packages/ui/src/components/button.tsx | dropped: no 1px press shift and no aria-invalid ring |
Icon button (size icon, icon-sm) packages/ui/src/components/button.tsx | size icon, icon-sm, plus the new icon-lg |
Copy button apps/web/components/copy-button.tsx | stays a small component, built on secondary · outline with an icon |
Star rating buttons apps/web/features/member-discount/components/star-button.tsx | its own component: StarButton, five in a StarRating |
Mark as used apps/web/features/member-discount/components/mark-used-button.tsx | secondary · outline, then success · light with a tick (aria-pressed) |
Log out button apps/web/features/auth/components/logout-button.tsx | secondary · ghost sm; white text and a 10% white hover on the navy sidebar |
Mobile menu toggle apps/web/components/mobile-nav.tsx | secondary · ghost, size icon, on the <summary> (asChild) |
Browse the catalogue (near-duplicate) apps/web/features/onboarding/components/browse-catalogue-button.tsx | one primary · default as a link (asChild); the copy is dropped |