diff --git a/apps/site/src/content/design-system/components/badge/code/development-examples/content.mdoc b/apps/site/src/content/design-system/components/badge/code/development-examples/content.mdoc index ed6f5cd0a..fa4156cfd 100644 --- a/apps/site/src/content/design-system/components/badge/code/development-examples/content.mdoc +++ b/apps/site/src/content/design-system/components/badge/code/development-examples/content.mdoc @@ -2,20 +2,62 @@ ```tsx -

- Default -

+

+Default +

Primary{" "} Hero{" "} Neutral{" "} - Faint -

-

+ Faint{" "} + Success{" "} Info{" "} Warning{" "} Danger

+

+Soft +

+

+ Primary{" "} + Hero{" "} + Neutral{" "} + Faint{" "} + Success{" "} + Info{" "} + Warning{" "} + Danger +

+ + +

+ Default - Pill +

+
+ 88{" "} + 88{" "} + 88{" "} + 88{" "} + + 88{" "} + 88{" "} + 88{" "} + 88 +

+

+ Soft - Pill +

+
+ 88{" "} + 88{" "} + 88{" "} + 88{" "} + 88{" "} + 88{" "} + 88{" "} + 88 +

+ ``` diff --git a/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc b/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc index 3a2376810..21b2f3326 100644 --- a/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc +++ b/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc @@ -1,69 +1,74 @@ -Badges come in 2 different styles: Default, used to highlight words, and Pill, used to highlight numbers. +Badges come in 2 different types: + +- Default - used to highlight words +- Pill - used to highlight numbers ### Badges - Default ```tsx -() => { - const COLORS = ['danger', 'warning', 'success', 'info', 'primary', 'hero', 'neutral', 'faint', 'muted'] as const; - - return ( -
-

- Colours -

-
- {COLORS.map(color => ( - - {color} - - ))} -
-

- Soft -

-
- {COLORS.map(color => ( - - {color} - - ))} -
-
- ); -}; + +

+Default +

+

+ Primary{" "} + Hero{" "} + Neutral{" "} + Faint{" "} + + Success{" "} + Info{" "} + Warning{" "} + Danger +

+

+Soft +

+

+ Primary{" "} + Hero{" "} + Neutral{" "} + Faint{" "} + Success{" "} + Info{" "} + Warning{" "} + Danger +

+
``` ### Badges - Pill ```tsx -() => { - const COLORS = ['danger', 'warning', 'success', 'info', 'primary', 'hero', 'neutral', 'faint', 'muted'] as const; - - return ( -
-

- Colours + +

+ Default

-
- {COLORS.map(color => ( - - 88 - - ))} -
-

+

+ 88{" "} + 88{" "} + 88{" "} + 88{" "} + + 88{" "} + 88{" "} + 88{" "} + 88 +

+

Soft

-
- {COLORS.map(color => ( - - 88 - - ))} -
-
- ); -}; +
+ 88{" "} + 88{" "} + 88{" "} + 88{" "} + 88{" "} + 88{" "} + 88{" "} + 88 +

+ ``` ### Usage examples @@ -106,11 +111,11 @@ Badges come in 2 different styles: Default, used to highlight words, and Pill, u
- Messages - + Messages + 12 - +
@@ -122,23 +127,23 @@ Badges come in 2 different styles: Default, used to highlight words, and Pill, u - Product feature - - NEW + Product feature + + New - +