Back to Ui Ux Pro Max Skill

Component Specifications

cli/assets/skills/design-system/references/component-specs.md

2.11.06.8 KB
Original Source

Component Specifications

Detailed specs for core components with states and variants.

Button

Variants

VariantBackgroundTextBorderUse Case
defaultprimarywhitenonePrimary actions
secondarygray-100gray-900noneSecondary actions
outlinetransparentforegroundborderTertiary actions
ghosttransparentforegroundnoneSubtle actions
linktransparentprimarynoneNavigation
destructivered-600whitenoneDangerous actions

Sizes

SizeHeightPadding XPadding YFont SizeIcon Size
sm32px12px6px14px16px
default40px16px8px14px18px
lg48px24px12px16px20px
icon40px00-18px

States

StateBackgroundTextOpacityCursor
defaulttokentoken1pointer
hoverdarkertoken1pointer
activedarkesttoken1pointer
focustokentoken1pointer
disabledmutedmuted-fg0.5not-allowed
loadingtokentoken0.7wait

Anatomy

┌─────────────────────────────────────┐
│  [icon]  Label Text  [icon]         │
└─────────────────────────────────────┘
     ↑                      ↑
  leading icon         trailing icon

Input

Variants

VariantDescription
defaultStandard text input
textareaMulti-line text
selectDropdown selection
checkboxBoolean toggle
radioSingle selection
switchToggle switch

Sizes

SizeHeightPaddingFont Size
sm32px8px 12px14px
default40px8px 12px14px
lg48px12px 16px16px

States

StateBorderBackgroundRing
defaultgray-300whitenone
hovergray-400whitenone
focusprimarywhiteprimary/20%
errorred-500whitered/20%
disabledgray-200gray-100none

Anatomy

Label (optional)
┌─────────────────────────────────────┐
│ [icon] Placeholder/Value   [action] │
└─────────────────────────────────────┘
Helper text or error message

Card

Variants

VariantShadowBorderUse Case
defaultsm1pxStandard card
elevatedlgnoneProminent content
outlinenone1pxSubtle container
interactivesm→md1pxClickable card

Anatomy

┌─────────────────────────────────────┐
│ Card Header                         │
│   Title                             │
│   Description                       │
├─────────────────────────────────────┤
│ Card Content                        │
│   Main content area                 │
│                                     │
├─────────────────────────────────────┤
│ Card Footer                         │
│   Actions                           │
└─────────────────────────────────────┘

Spacing

AreaPadding
header24px 24px 0
content24px
footer0 24px 24px
gap16px

Badge

Variants

VariantBackgroundText
defaultprimarywhite
secondarygray-100gray-900
outlinetransparentforeground
destructivered-600white
successgreen-600white
warningyellow-500gray-900

Sizes

SizePaddingFont SizeHeight
sm4px 8px11px20px
default4px 10px12px24px
lg6px 12px14px28px

Alert

Variants

VariantIconBackgroundBorder
defaultinfogray-50gray-200
destructivealertred-50red-200
successcheckgreen-50green-200
warningwarningyellow-50yellow-200

Anatomy

┌─────────────────────────────────────┐
│ [icon]  Title                    [×]│
│         Description text            │
└─────────────────────────────────────┘

Dialog

Sizes

SizeMax WidthUse Case
sm384pxSimple confirmations
default512pxStandard dialogs
lg640pxComplex forms
xl768pxData-heavy dialogs
full100% - 32pxFull-screen on mobile

Anatomy

┌───────────────────────────────────────┐
│ Dialog Header                      [×]│
│   Title                               │
│   Description                         │
├───────────────────────────────────────┤
│ Dialog Content                        │
│   Scrollable if needed                │
│                                       │
├───────────────────────────────────────┤
│ Dialog Footer                         │
│                     [Cancel] [Confirm]│
└───────────────────────────────────────┘

Table

Row States

StateBackgroundUse Case
defaultwhiteNormal row
hovergray-50Mouse over
selectedprimary/10%Selected row
stripedgray-50/whiteAlternating

Cell Alignment

Content TypeAlignment
TextLeft
NumbersRight
Status/BadgeCenter
ActionsRight

Spacing

ElementValue
cell padding12px 16px
header padding12px 16px
row height (compact)40px
row height (default)48px
row height (comfortable)56px