Sizing System

Examples and documentation for the sizing system component

Global Sizing System

This demonstrates the new global sizing system that provides consistent sizing across all UI components. Instead of component-specific size classes like bz-card--sm, we now use bz-size--sm.

Badge Sizes

XXS Badge
XS Badge
SM Badge
MD Badge
LG Badge
XL Badge
XXL Badge

Button Sizes

Icon Button Sizes

Mixed Icon Button Examples

Spinner Sizes

XXS
XS
SM
MD
LG
XL
XXL

Icon Sizes

XXS
XS
SM
MD
LG
XL
XXL

Input Sizes

Avatar Sizes

XXS
XXS
XS
XS
SM
SM
MD
MD
LG
LG
XL
XL
XXL
XXL

Switch Sizes

XXS
XS
SM
MD
LG
XL
XXL

Text Sizes

XXS
Font: var(--bz-size-font-size)

Quick brown fox jumps over the lazy dog.

XS
Font: var(--bz-size-font-size)

Quick brown fox jumps over the lazy dog.

SM
Font: var(--bz-size-font-size)

Quick brown fox jumps over the lazy dog.

MD
Font: var(--bz-size-font-size)

Quick brown fox jumps over the lazy dog.

LG
Font: var(--bz-size-font-size)

Quick brown fox jumps over the lazy dog.

XL
Font: var(--bz-size-font-size)

Quick brown fox jumps over the lazy dog.

XXL
Font: var(--bz-size-font-size)

Quick brown fox jumps over the lazy dog.

Card Sizes

XXS Card

This is an extra extra small card using bz-size--xxs

XS Card

This is an extra small card using bz-size--xs

SM Card

This is a small card using bz-size--sm

MD Card

This is a medium card using bz-size--md (default)

LG Card

This is a large card using bz-size--lg

XL Card

This is an extra large card using bz-size--xl

Combined Examples

Primary Large Card

This card demonstrates combining colors and sizes:

  • bz-color--primary for the color theme
  • bz-size--lg for the large size
MD Badge
Success XL Card

Another example showing the flexibility:

  • bz-color--success for success styling
  • bz-size--xl for extra large size
LG Badge