Design Language
Forge's design system is built on consistent principles that create cohesive, accessible interfaces.
Colors
Our color palette is designed for both light and dark modes, with semantic colors that communicate meaning.
Brand Colors
Semantic Colors
Neutral Colors
Text Primary
--text-primary
Text Secondary
--text-secondary
Text Muted
--text-muted
Background Primary
--bg-primary
Background Secondary
--bg-secondary
Background Tertiary
--bg-tertiary
Border Color
--border-color
Border Subtle
--border-subtle
Typography
We use a system font stack for optimal performance and native feel across platforms.
Page titles
Section titles
Card titles
Subsections
Intro text
Default text
Secondary info
Labels, hints
Spacing
Consistent spacing creates visual rhythm and hierarchy. We use a base-4 scale.
xs
4px
sm
8px
md
16px
lg
24px
xl
32px
2xl
48px
Border Radius
Rounded corners soften the interface and create a friendly, modern feel.
None
0
XS
2px
SM
4px
MD
8px
LG
12px
XL
16px
Full
9999px
Shadows & Elevation
Shadows create depth and establish visual hierarchy. We provide three hardness levels (soft, medium, hard) and six size scales (xs to 2xl), plus special presets for common use cases.
Soft Shadows
High blur, subtle effect - great for light interfaces
XS
soft.xs
SM
soft.sm
MD
soft.md
LG
soft.lg
XL
soft.xl
2XL
soft.2xl
Medium Shadows
Balanced shadows - versatile for most cases
XS
medium.xs
SM
medium.sm
MD
medium.md
LG
medium.lg
XL
medium.xl
2XL
medium.2xl
Hard Shadows
Less blur, sharp edges - more dramatic effect
XS
hard.xs
SM
hard.sm
MD
hard.md
LG
hard.lg
XL
hard.xl
2XL
hard.2xl
Brand & Glow Effects
Colored shadows for emphasis and brand elements
Brand SM
brand.sm
Brand MD
brand.md
Brand LG
brand.lg
Glow SM
glow.sm
Glow MD
glow.md
Glow LG
glow.lg
Inner Shadows
Inset shadows for pressed states and inputs
Inner SM
inner.sm
Inner MD
inner.md
Inner LG
inner.lg
Elevation Presets
Pre-configured shadows for common UI elements
card
elevation.card
dropdown
elevation.dropdown
modal
elevation.modal
toast
elevation.toast
popover
elevation.popover
button
elevation.button
buttonHover
elevation.buttonHover
fab
elevation.fab
Usage
Dark Mode
All components automatically adapt to dark mode. Colors are carefully adjusted to maintain contrast and readability.
Forge uses CSS custom properties for theming. Wrap your app with ForgeProvider and use the theme context to toggle between modes.
Previous
Installation
Next
Components Overview
Last updated: December 2025