REFERENCE

CSS tokens

Shared attributes are the main configuration API. Use custom properties for values that need a project-specific adjustment.

Custom properties

AreaPropertyValue typeUse
Semantic colours--re-secondary / --re-secondary-end / --re-on-secondaryColoursSecondary action fill, gradient endpoint and foreground.
Semantic colours--re-success / --re-success-end / --re-on-successColoursSuccess fill, gradient endpoint and foreground.
Semantic colours--re-warning / --re-warning-end / --re-on-warningColoursWarning fill, gradient endpoint and foreground.
Semantic colours--re-danger / --re-danger-end / --re-on-dangerColoursDanger fill, gradient endpoint and foreground.
Semantic colours--re-secondary-link / --re-danger-linkColoursReadable secondary and danger outline/ghost text.
Charts--re-chart-colorColourLocal SVG series stroke; defaults to the primary colour.
Charts--re-chart-ring-widthSVG user unitsDoughnut stroke width; default 22.
Drawer--re-drawer-widthLengthInspector width; default 28rem, customisable with ordinary CSS. Bounded by the viewport.
Application layout--re-sidebar-widthLengthSidebar and mobile drawer width; 16rem fallback, bounded by viewport.
Navigation--re-navbar-widthLength or percentageNavbar width; standard 100%, floating min(100% - 2rem, page width).
Navigation--re-navbar-marginLengthNavbar block margin; standard 0, floating 1rem.
Veil--re-veil-opacityPercentageSurface backing; 94% default. Accessibility fallbacks use opaque backing.
Veil--re-veil-strengthNumber, 0–1Perimeter colour and contour strength; 1 default. More contrast removes decoration.
Navigation--re-dropdown-widthLengthStandalone dropdown width; 18rem fallback, bounded by viewport
Palette--re-bgColourPage background
Palette--re-surfaceColourOpaque component surface
Palette--re-surface-altColourSecondary surface
Palette--re-textColourMain foreground
Palette--re-mutedColourSupporting foreground
Palette--re-linkColourLink foreground
Palette--re-lineColourSurface boundary
Palette--re-control-lineColourControl boundary
Accent--re-primary / --re-primary-endColoursAccent stops; override both together
Accent--re-on-primaryColourForeground for the accent fill
Typography--re-fontFont-family listBody and control font
Typography--re-font-headingFont-family listOptional heading override; otherwise falls back to --re-font
Layout--re-radius / --re-button-radiusLengthSurface and action roundness
Layout--re-space / --re-gapLengthBase spacing
Layout--re-containerLengthMaximum container width; 75rem by default
Layout--re-columnLengthAuto-fit grid column target; 18rem fallback
Layout--re-proseLengthReadable content width; 65ch fallback
Layout--re-card-paddingLengthOptional card padding override
Material--re-glass-opacityPercentageGlass surfaces; 32% default
Material--re-glass-button-opacityPercentageGlass actions and small surfaces; 90% default
Material--re-glass-shadowShadow list or noneGlass elevation and rim shadows; follows shared data-depth
Material--re-glass-filterFilter valueblur(12px) saturate(145%) default
Assets--re-icon-sizeLengthIcon dimensions; 1.25em fallback
Assets--re-icon-strokeNumberSVG stroke width; 1.75 fallback
Assets--re-avatar-sizeLengthAvatar base size; 2.75rem fallback
Content--re-skeleton-width / --re-skeleton-heightLength or percentagePlaceholder width/height; 100% / 1em fallbacks
Content--re-description-labelLengthDescription-list label column; 12rem fallback
Navigation--re-menu-widthLengthDesktop panel width; 20rem fallback
Navigation--re-menu-anchorCSS identifierUnique menu anchor; see complete menu markup

Other component-internal variables implement derived colours and state. Prefer the shared attributes and documented properties above; component-internal variables may change between versions.

Default palette: monochrome foundations and Blue Teal accent

The values below come from the palette manifest. Choose a different coordinated set with data-palette. Tone, local theme and glass material can alter effective component colours.

PropertyLightDark
--re-bg#FAFAFA#101010
--re-surface#FFFFFF#191919
--re-text#111111#F5F5F5
--re-surface-alt#EDEDED#292929
--re-primary#1F6E8C#2E8A99
--re-on-primary#FFFFFF#111111
--re-line#D4D4D4#414141
--re-primary-end#195E78#57ACB8
--re-link#1F6E8C#65BBC7
--re-muted#4C4C4C#BEBEBE
--re-control-line#7C7C7C#929292

Semantic role tokens

PropertyLightDark
--re-secondary#4B5563#BFC8CD
--re-secondary-end#3D4652#CDD5D9
--re-on-secondary#FFFFFF#111111
--re-secondary-link#4B5563#BFC8CD
--re-success#256B4E#78B99B
--re-success-end#1D573F#8EC9AD
--re-on-success#FFFFFF#111111
--re-danger#A63D4F#D98B97
--re-danger-end#8C3041#E39EAA
--re-on-danger#FFFFFF#111111
--re-danger-link#A63D4F#D98B97
--re-warning#E6BC63#E6BC63
--re-warning-end#D5A94E#F0CB7C
--re-on-warning#111111#111111

Override on the configured boundary

Global application values can live on :root. Scoped overrides belong on .reva or a descendant. Explicit shared attributes can install their own local token values, so place custom overrides where they should take precedence.

CSSSelect text to copy
:root {
  --re-primary: #7041cf;
  --re-primary-end: #5228a4;
  --re-on-primary: #fff;
}
.reva.product-panel {
  --re-container: 60rem;
  --re-card-padding: 1.25rem;
}

Changing a colour does not automatically produce a readable palette. Review foregrounds, gradients, borders and glass backgrounds together. Opacity properties take percentages rather than decimal numbers.

Foundation token source · Eight-palette token manifest · Attribute option manifest