Color Palette
Background Tokens
Primary
Secondary
Tertiary
Quaternary
Accent
Dirt
Grass
Success
Warning
Error
Info
Neutral
Semantic Tokens
Semantic tokens provide meaningful, context-aware color values that automatically adapt between light and dark modes. Use these tokens instead of numbered color values for consistent theming.
Background Tokens
Elevation Hierarchy
bg-basePage backgroundbg-mainPrimary surfacesbg-liftedElevated surfacesbg-elevatedElevated surfacesbg-enlightenedHighest elevationInteractive States
bg-hoverHover statebg-activeActive/pressed statebg-selectedSelected stateForeground Tokens
Elevated text
fg-elevatedLifted text
fg-liftedMain text
fg-mainDetail text
fg-mutedPlaceholder
fg-placeholderElevated text
fg-elevatedLifted text
fg-liftedMain text
fg-mainDetail text
fg-mutedPlaceholder
fg-placeholderElevated text
fg-elevatedLifted text
fg-liftedMain text
fg-mainDetail text
fg-mutedPlaceholder
fg-placeholderElevated text
fg-elevatedLifted text
fg-liftedMain text
fg-mainDetail text
fg-mutedPlaceholder
fg-placeholderElevated text
fg-elevatedLifted text
fg-liftedMain text
fg-mainDetail text
fg-mutedPlaceholder
fg-placeholderBorder Tokens
border-subtleSubtle dividersborder-mainDefault bordersborder-strongEmphasized bordersborder-liftedLifted bordersborder-elevatedElevated bordersborder-enlightenedEnlightened bordersFocus Ring
focus-ringFocus indicatorThe focus ring token provides consistent keyboard navigation feedback across all interactive elements. It uses the primary color for clear visibility.
Brand Color Semantic Tokens
Each brand color has 7 semantic roles: surface, surface-hover, border, solid, solid-hover, text, and text-on-solid.
primary
secondary
tertiary
quaternary
accent
Status Color Semantic Tokens
Status colors follow the same 7-role pattern for consistent feedback UI.
success
warning
error
info
Nature Color Semantic Tokens
Nature colors (dirt, grass) are used for softball-themed views. They follow the same 6-role pattern as brand colors.
dirt
grass
Gradient Utilities
Simple 3-color diagonal gradients with customizable angles and color stops. Each gradient uses color-1, color-3, and color-5 from the palette, evenly distributed by default.
Default Gradients
ypng-gradient-primaryPrimary
ypng-gradient-invert-primaryPrimary Invert
ypng-gradient-radial-primaryPrimary Radial
ypng-gradient-secondarySecondary
ypng-gradient-invert-secondarySecondary Invert
ypng-gradient-radial-secondarySecondary Radial
ypng-gradient-accentAccent
ypng-gradient-invert-accentAccent Invert
ypng-gradient-radial-accentAccent Radial
ypng-gradient-successSuccess
ypng-gradient-invert-successSuccess Invert
ypng-gradient-radial-successSuccess Radial
ypng-gradient-infoInfo
ypng-gradient-invert-infoInfo Invert
ypng-gradient-radial-infoInfo Radial
ypng-gradient-warmWarm
ypng-gradient-coolCool
ypng-gradient-cool-radialCool Radial
Customization Examples
Custom Angle (90deg)
--gradient-angle: 90degCustom Stops
--gradient-mid: 30%Combined
angle: 180deg, mid: 70%Customization: Use CSS variables to control gradients:
--gradient-angle- Direction (default: 135deg)--gradient-start/mid/end- Color positions (default: 0%, 50%, 100%)- For warm/cool:
--gradient-warm-1/2/3or--gradient-cool-1/2/3
Typography
Heading 1 - header font
text-5xl font-bebas-neue
Heading 2 - header font
text-4xl font-bebas-neue
Heading 3 - header font
text-3xl font-bebas-neue
Body Text Large - body font
text-lg font-quicksand
Body Text Base - body font
text-base font-quicksand
Body Text Small - body font
text-sm font-quicksand
Monospace Code Fontfont-mono
Buttons
Button Variants
Button Sizes
Button States
Button with Icons
Form Controls
Input Fields
Textarea
Checkboxes & Switches
Radio Groups
Select Menu
Sliders
Feedback Components
Alerts
Default Alert
Info Alert
Success!
Warning
Error
Progress & Loading
Loading States
Skeleton Loading
Badges
Navigation Components
Tabs
Make changes to your account here. Click save when you're done.
Accordion
Interactive Components
Toggles & Toggle Groups
Avatars
Tooltips
Hover Cards
Overlays & Modals
Dialog
Popover
Menus
Dropdown Menu
Context Menu
Menubar
Toolbar
Custom Components
Container
full
percent90
percent80
percent70
xl3
xl2
xl
lg
md
sm
xs
Section
xl
lg
md
sm
xs
none
Loading States
Password Input
Calendar
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
Time Picker
Image Upload
Drag & drop images here, or click to select
Up to 3 files, Max 5MB each