Token reference
Spacing, radius, and motion
Open full example →On this page
Values below are generated from 02-tokens.css. Density overrides are read
from 03-themes.css. Use layout gaps and component properties to apply these
values without adding extra margins to every child.
Spacing
Spacing uses rem so it follows the reader’s font-size preference. Standard
cards use --pl-space-5 for their inset; app-surface variants use a tighter
inset. Use --pl-space-4 for common layout gaps.
| Token | Default value |
|---|---|
--pl-space-1 | 0.25rem |
--pl-space-2 | 0.5rem |
--pl-space-3 | 0.75rem |
--pl-space-4 | 1rem |
--pl-space-5 | 1.25rem |
--pl-space-6 | 1.5rem |
--pl-space-8 | 2rem |
--pl-space-10 | 2.5rem |
--pl-space-12 | 3rem |
Radius
--pl-radius-control sets the default corner radius for interactive controls.
Use the pill radius for fully rounded controls and avatars.
| Token | Default value |
|---|---|
--pl-radius-xs | 0.25rem |
--pl-radius-sm | 0.375rem |
--pl-radius-md | 0.5rem |
--pl-radius-lg | 0.75rem |
--pl-radius-xl | 1rem |
--pl-radius-2xl | 1.5rem |
--pl-radius-pill | 999rem |
--pl-radius-control | var(--pl-radius-md) |
Motion
Durations multiply by --pl-motion-scale. Reduced-motion preferences set
that scale to zero.
| Token | Default value |
|---|---|
--pl-duration-1 | calc(120ms * var(--pl-motion-scale)) |
--pl-duration-2 | calc(180ms * var(--pl-motion-scale)) |
--pl-duration-3 | calc(260ms * var(--pl-motion-scale)) |
--pl-duration-enter | calc(220ms * var(--pl-motion-scale)) |
--pl-duration-exit | calc(160ms * var(--pl-motion-scale)) |
Easing
| Token | Default value |
|---|---|
--pl-ease-standard | cubic-bezier(0.2, 0, 0, 1) |
--pl-ease-spring | cubic-bezier(0.34, 1.56, 0.64, 1) |
--pl-ease-decelerate | cubic-bezier(0, 0, 0.2, 1) |
--pl-ease-accelerate | cubic-bezier(0.4, 0, 1, 1) |
Stacking order
Use the overlay and toast levels for floating content. A native dialog or popover also participates in the browser’s top layer.
| Token | Default value |
|---|---|
--pl-z-base | 0 |
--pl-z-raised | 10 |
--pl-z-sticky | 100 |
--pl-z-fixed | 500 |
--pl-z-overlay | 1000 |
--pl-z-toast | 1100 |
Control geometry
These are the default dimensions before a density preset overrides them.
| Token | Default value |
|---|---|
--pl-control-block-size | 2.5rem |
--pl-control-padding-inline | var(--pl-space-4) |
--pl-control-gap | var(--pl-space-2) |
--pl-control-border-width | 1px |
--pl-control-radius | var(--pl-radius-control) |
Density presets
comfortable is the default. compact changes control geometry; dense
also compresses spacing and small text. Set data-pl-density on the region
that needs the change.
| Density | Control height | Inline padding | Gap |
|---|---|---|---|
compact | 2rem | var(--pl-space-3) | var(--pl-space-1) |
dense | 1.75rem | var(--pl-space-2) | var(--pl-space-1) |
comfortable | 2.5rem | var(--pl-space-4) | var(--pl-space-2) |
touch | 2.75rem | var(--pl-space-5) | var(--pl-space-2) |
Shadows
Shadows can contain multiple layers. The full declaration is shown so values stay consistent with the rendered framework.
| Token | Default value |
|---|---|
--pl-shadow-bevel | inset 0 1px 0 light-dark(oklch(100% 0 0deg / 70%), oklch(100% 0 0deg / 8%)) |
--pl-shadow-inset | inset 0 1px 2px oklch(0% 0 0deg / 8%) |
--pl-shadow-1 | 0 1px 2px oklch(0% 0 0deg / 8%), 0 1px 4px oklch(30% 0.04 40deg / 6%), var(--pl-shadow-bevel) |
--pl-shadow-2 | 0 4px 8px oklch(0% 0 0deg / 8%), 0 8px 24px oklch(25% 0.06 40deg / 12%), inset 0 1px 0 oklch(100% 0 0deg / 6%) |
--pl-shadow-3 | 0 8px 16px oklch(0% 0 0deg / 10%), 0 24px 64px oklch(20% 0.08 40deg / 18%), inset 0 1px 0 oklch(100% 0 0deg / 8%) |
--pl-shadow-4 | 0 12px 24px oklch(0% 0 0deg / 12%), 0 32px 80px oklch(20% 0.08 40deg / 24%), inset 0 1px 0 oklch(100% 0 0deg / 10%) |
--pl-shadow-glow | 0 0 0 4px color-mix(in oklab, var(--pl-color-accent), transparent 72%) |
Registered properties
Registered properties specify a type and an initial value. An initial value is the fallback for the registration, not necessarily the declaration used by the active theme.
| Property | Syntax | Initial value | Inherits |
|---|---|---|---|
--pl-motion-scale | <number> | 1 | yes |
--pl-radius-control | <length> | 8px | yes |
--pl-focus-size | <length> | 2px | yes |