Skip to content
Built with

Theme tokens ​

Tools

The design tokens behind the implemented.stream theme. Every value is a CSS variable in `docs/.vitepress/theme/styles.css`, so you can change the whole site from one place.

On this pageCopy colour, type and spacing values · See which variable controls which part of the site · Find the build settings for the theme

Colours ​

TokenLightDarkUse
--dx-ember#FF6A1F#FF6A1FBrand colour, primary buttons, logo
--dx-rose#FF3D7F#FF3D7FEnd of the brand gradient
--dx-iris#7C5CFF#7C5CFFAccent, tip callouts, chips
--dx-cyan#22D3EE#22D3EESecondary accent, zone numbers
--vp-c-brand-1#E2550F#FF8A3DLinks and active sidebar items
--dx-ink#0B0D12#0B0D12Hero and homepage background
--dx-text#161A22#E8EAF0Body text
--dx-muted#5B6474#98A1B3Secondary text

Typography ​

TokenValue
--vp-font-family-baseInter, then IBM Plex Sans Thai for Thai text
--vp-font-family-monoIBM Plex Mono, then JetBrains Mono
Page title2.2rem, weight 750
Section heading1.45rem with a divider line above

Shape and spacing ​

TokenValueUse
--nvx-radius-md10pxInputs
--nvx-radius-xl18pxCards, step card
--nvx-radius-2xl22pxLarge panels, chat
Buttons and chipspill (999px)All buttons
--dx-space1remBase spacing unit

Motion ​

TokenValueUse
--nvx-duration-fast120msHover and press
--nvx-duration-base200msFades and panels
--nvx-duration-slow320msSheets and toasts
--nvx-ease-standardcubic-bezier(.2, 0, 0, 1)Most transitions
--nvx-ease-emphasizedcubic-bezier(.3, 0, 0, 1.2)Entrances with a small overshoot

All motion stops when the visitor turns on reduced motion.

Using a token ​

Now you'll use a token in your own CSS.

css
.my-banner {
  background: linear-gradient(135deg, var(--dx-ember), var(--dx-rose));
  border-radius: var(--dx-radius);
}

Build settings ​

SettingValue
Installnpm ci
Buildnpm run build
Outputdist
Deploynpx wrangler deploy --config wrangler.jsonc

Requires: a Cloudflare login

The deploy command needs a Cloudflare session. Sign in first with npx wrangler login. Never put a token in the repo.

Full steps: Build this site. Logo rules: Brand & logo.

Next steps ​

implemented.stream AI