Design System — User Interface

Ronix Design System  /  Resources  /  Token reference

Token reference

Every variable read from the design library, mapped to the CSS custom property that carries it. Token paths are preserved so a value in the browser can be traced back to a value in the library without guesswork.

How to use this reference

Each row gives the variable name as it appears in the design library, the CSS custom property that carries it, and its value. Names are preserved exactly so a token in the browser can be traced back to a token in the library.

Build against the property, never the literal value — several tokens resolve to different values per breakpoint, and a hard-coded value opts out of that.

Link tokens.css before any other stylesheet. It declares nothing but custom properties, so it can sit in front of an existing framework without conflicting with it.

Colour

Design tokenCSS custom propertyValue
Global/background/1/Rest--global-background-1-rest#ffffff
Global/background/2/Rest--global-background-2-rest#f5f5f5
Global/background/3/Rest--global-background-3-rest#f0f0f0
Global/background/1/Hover--global-background-1-hover#f5f5f5
Global/background/4/Rest--global-background-4-rest#e5e5e5
Global/background/5/Rest--global-background-5-rest#0a0a0a
Global/Foreground/1/Rest--global-foreground-1-rest#2e2e2e
Global/Foreground/2/Generic/Rest--global-foreground-2-rest#424242
Global/Foreground/3/Rest--global-foreground-3-rest#616161
Global/Foreground/On brand/Rest--global-foreground-on-brand-rest#ffffff
Global/Stroke/1/Global/Rest (Banner)--global-stroke-1-global-rest#dbdbdb
Global/Stroke/1/Global/Rest (Product-card)--global-stroke-1-global-rest-alt#e0e0e0
Brand/background/1/Rest--brand-background-1-rest#a30000
Brand/background/1/Hover--brand-background-1-hover#8a0000
Brand/background/1/Pressed--brand-background-1-pressed#700000
Brand/Foreground/1/Rest--brand-foreground-1-rest#a30000
Brand/Stroke/1/Rest--brand-stroke-1-rest#a30000
Brand/Stroke/2/Selected--brand-stroke-2-selected#a30000
Brand/Stroke/Compound/Rest--brand-stroke-compound-rest#a30000
Brand/background/2/Rest--brand-background-2-rest#fff5f5
Brand/Stroke/2/Rest--brand-stroke-2-rest#ffcccc
Global/background/1/Selected--global-background-1-selected#ebebeb
Global/Stroke/1/Global/Selected--global-stroke-1-global-selected#cccccc
Global/Stroke/1/Global/Hover--global-stroke-1-global-hover#d6d6d6
Global/background/Subtle/Rest--global-background-subtle-rest#ffffff00
Legacy collection — bound by the PLP card only
Red / Dark Red--legacy-red-dark#bf0000
Red / Base Red--legacy-red-base#f20000
Text color - light background / Base Text Gray--legacy-text-base-gray#5e5e5e
logo Gray--legacy-logo-gray#717171
Back Ground / Deep Gray - Dark mode--legacy-bg-dark-mode#1e1e1e
Back Ground / Light Gray - Base--legacy-bg-base-light-gray#f2f2f2
Back Ground / Secondary--legacy-bg-secondary#e5e5e5
Helvetica LT (Form only)--legacy-font-helveticaHelvetica LT
Text color - light background / Deep Gray--legacy-text-deep-gray#3d3d3d
Back Ground / Secondray - Light--legacy-bg-secondary-light#f9f9f9
Text color - Dark background / Base--legacy-text-on-dark#ffffff
“Web/” collection — a parallel type system, same style names, different values
Web / Title / Title 3--web-title-324px / 32px, Bold 700
Web / Body / Body 2--web-body-214px / 20px, Regular 400
Generic / Foreground / On brand--generic-foreground-on-brand#ffffff

Typography

Design tokenCSS custom propertyLargeSmall
Font/Roboto--font-robotoRoboto
Font/Title/Out-container/2--font-title-out-container-232px / 38px, ExtraBold 800
Font/Title/In-container/3--font-title-in-container-326px / 30px, ExtraBold 800
Font/Title/In-container/2--font-title-in-container-228px / 32px, ExtraBold 800
Font/Title/In-container/4--font-title-in-container-420px / 22px, ExtraBold 800
Font/Subtitle/1/Strong--font-subtitle-1-strong20px / 100%, Bold 700
overline--font-overline12px / 100%, Regular 400, 1.5px tracking
Font/Caption/Caption 1--font-caption-112px / 14px
type system/Body/Body 2 Strong--font-body-2-strong14px / 18px, Medium 500
Font/Title/Out-container/5--font-title-out-container-520px / 100%, ExtraBold 800
Font/Title/In-container/5--font-title-in-container-518px / 22px, ExtraBold 800
Font/Title/In-container/1--font-title-in-container-132px28px
— weight (ExtraBold)--font-title-in-container-1-weight800
— line height--font-title-in-container-1-line-height100%
Font/Subtitle/Sbutitle 2--font-subtitle-218px14px
Font/Line Height/Subtitle 2--font-line-height-subtitle-222px16px
— weight (SemiBold)--font-subtitle-2-weight600
Font/Body/1/Regular--font-body-1-regular16px14px
— line height--font-line-height-body-120px20px
— weight (Regular)--font-body-1-weight400

Spacing, stroke and radius

Design tokenCSS custom propertyValue
Padding/None--padding-none0px
Small--space-small4px
Padding/XX-Small--padding-xx-small6px
Padding/X-Small--padding-x-small8px
Padding/Medium--padding-medium16px
Padding/X-Large--padding-x-large24px
Padding/XX-Large--padding-xx-large32px
Thin--stroke-thin1px
Thick--stroke-thick2px
Size/Corner radious/4--size-corner-radius-44px
Main icon / if the object was large--icon-main-large24px → 20px
Text-wrapper / if the object was large--icon-text-wrapper-large24px → 20px

Frames

Design tokenCSS custom propertyLargeMediumSmall
Frame Size/Section/Extra--frame-section-extra1400992576
Frame Size/Section/Defualt--frame-section-default1200768358
Frame Size/Container/Extra--frame-container-extra1320928540
Frame Size/Container/Defualt--frame-container-default1140720326
banner-001/wrapper/Extra--banner-001-wrapper-extra656560540
banner-001/wrapper/Defualt--banner-001-wrapper-default566480326
banner-001/content-wrapper/Extra--banner-001-content-wrapper-extra1320928540
banner-001/content-wrapper/Defualt--banner-001-content-wrapper-default1140720326
Home page/text-wrapper-padding/Extra--banner-text-wrapper-padding-extra322424

Using the tokens

Link tokens.css before any other stylesheet. It declares nothing but custom properties, so it can sit in front of an existing framework without conflicting with it.

<link rel="stylesheet" href="css/tokens.css?v=28">
<link rel="stylesheet" href="css/styleguide.css?v=28">

/* Then build against roles, never against values */
.promo {
  background: var(--global-background-2-rest);
  color:      var(--global-foreground-1-rest);
  padding:    var(--padding-xx-large);
  border:     var(--stroke-thin) solid var(--global-stroke-1-global-rest);
  border-radius: var(--size-corner-radius-4);
}