A universal, accessible design system built on a 3-layer token architecture: Foundation primitives, Brand aliases, and Semantic context tokens. Designed for projects of any scale.
Consistent
The same tokens and components are used consistently across the entire interface.
Accessible
Semantic colors follow real-world associations (red = danger, yellow = warning, green = positive) to reduce cognitive load.
Scalable
A layered token system (foundation, brand, semantic) makes theming and customization straightforward.
Clean & light
Default visual style is light mode with crisp typography, subtle shadows, and generous whitespace.
Foundation
Primitive values: #F04438, #1D6EEB
Brand
Brand aliases: colorPrimary500, colorSecondary500
Semantic
Contextual: --color-error, --color-primary
Colors
Morpheme uses a 3-layer color system: Foundation (primitives), Brand (product), and Semantic (contextual UI). Always use semantic tokens in components to preserve theming capability.
Foundation colors
Base colors that remain constant regardless of theme.
Based on a 4px base unit. All spacing values are multiples of 4.
spacing-1
4px
spacing-2
8px
spacing-3
12px
spacing-4
16px
spacing-5
20px
spacing-6
24px
spacing-8
32px
spacing-10
40px
spacing-12
48px
spacing-16
64px
spacing-20
80px
spacing-24
96px
--space-1: 4px through --space-24: 96px
Border radius
A range of border-radius tokens from sharp corners to fully rounded pills.
radius-none
0px
radius-xs
2px
radius-sm
4px
radius-md
6px
radius-lg
8px
radius-xl
12px
radius-2xl
16px
radius-full
9999px
Shadows
Shadows serve as elevation indicators. From subtle inner shadows to deep 2xl elevation.
shadow-inner
--shadow-inner
shadow-none
--shadow-none
shadow-sm
--shadow-sm
shadow (default)
--shadow
shadow-md
--shadow-md
shadow-lg
--shadow-lg
shadow-xl
--shadow-xl
shadow-2xl
--shadow-2xl
Blur & opacity
Backdrop blur tokens for glassmorphism effects, and opacity tokens for overlays.
Blur scale
blur-sm4px
blur-sm (4px)
blur-md8px
blur-md (8px)
blur-lg16px
blur-lg (16px)
blur-xl32px
blur-xl (32px)
Opacity scale
opacity-sm (~0.20)
opacity-md (~0.40)
opacity-lg (~0.65)
opacity-xl (~0.90)
Buttons
Available in 2 color groups (primary, destructive) x 4 style variants (filled, outlined, text, icon-only) x 4 sizes (lg, md, sm, xs) x 6 states. Font weight is Medium (500) for all sizes. Default size is md (44px).
Primary buttons
Filled - text only
Filled - icon left
Filled - icon right
Filled - icon both sides
Outlined - text only
Outlined - icon left
Outlined - icon right
Outlined - icon both sides
Text (ghost) - text only
Text (ghost) - icon left
Icon-only - square
Icon-only - rounded
Primary filled - states
Default
Hover
Active
Focus
Disabled
Loading
Destructive buttons
Filled - all sizes
Filled - icon left
Outlined - all sizes
Text (ghost) - all sizes
Icon-only - square & rounded
Destructive filled - states
Default
Hover
Focus
Disabled
Loading
Form inputs
All form elements follow a consistent height of 44px, with 1.5px borders, 8px border-radius, and Poppins typography.
Text input states
Please enter a valid email address.
Label and helper text
We will never share your email with anyone else.
Input with prefix
https://
Select dropdown
Textarea
Checkbox and radio
Checkboxes
Radio buttons
Cards
Cards use white background, 1px gray-200 border, radius-xl (12px), 24px padding, and shadow-md. Interactive cards elevate to shadow-lg on hover.
Default card
This is a standard card with shadow-md, radius-xl, and 24px padding. No hover effect applied.
Interactive card
Hover over this card to see it elevate to shadow-lg with a subtle translateY(-2px) transition.
Card with image
Cards can include an image placeholder area above the body content.
Compact labels at 22px height, pill-shaped (radius-full), using Poppins Medium 12px.
Semantic badges
InfoSuccessWarningError
Custom badges
SaleNewIn progressCompletedPendingFailed
Alerts
Alert banners with a 4px left border, semantic background color, icon, title, and description.
Information
A new software update is available. See what's new in version 2.0.
Success
Your changes have been saved successfully.
Warning
Your trial period ends in 3 days. Upgrade now to avoid service interruption.
Error
There was a problem processing your payment. Please check your card details and try again.
Modal
Modals use a backdrop at rgba(16,24,40,0.6), white card with radius-2xl (16px), shadow-2xl, max-width 560px. Close with backdrop click, Escape key, or close button.