Skip to main content

Design tokens

Reusable values for things like color, spacing, and font sizes

Overview

Tokens are the basic values used by the design system to represent color, spacing, font sizes, and other visual styles.

Design tokens can be referenced to create interfaces that appear similar to Rivet on platforms where the design system itself cannot be loaded, such as HTML email or third-party software.

Border radius

Border radius design tokens
Example Value CSS Custom Property
.125rem --rvt-border-radius-sm
.25rem --rvt-border-radius-md
.5rem --rvt-border-radius-lg
999rem --rvt-border-radius-circle

Breakpoints

Breakpoint design tokens
Example Value CSS Custom Property
@media (min-width: 30em) 30em --rvt-breakpoint-sm
@media (min-width: 46.25em) 46.25em --rvt-breakpoint-md
@media (min-width: 67.5em) 67.5em --rvt-breakpoint-lg
@media (min-width: 78.75em) 78.75em --rvt-breakpoint-xl
@media (min-width: 87.5em) 87.5em --rvt-breakpoint-xxl

Color

IU Black

Rivet color utilities
Example Value CSS Custom Property
#F8F9FA --rvt-color-black-000
#E2E7E9 --rvt-color-black-100
#A0ABB4 --rvt-color-black-200
#75838F --rvt-color-black-300
#4C5A69 --rvt-color-black-400
#243142 --rvt-color-black-500
#182534 --rvt-color-black-600
#0E1825 --rvt-color-black-700

IU Blue

Rivet color utilities
Example Value CSS Custom Property
#EDFAFD --rvt-color-blue-000
#C6ECF6 --rvt-color-blue-100
#94D2E7 --rvt-color-blue-200
#63B1D3 --rvt-color-blue-300
#328BB8 --rvt-color-blue-400
#006298 --rvt-color-blue-500
#004F80 --rvt-color-blue-600
#00385F --rvt-color-blue-700

IU Crimson

Rivet color utilities
Example Value CSS Custom Property
#FFF7F8 --rvt-color-crimson-000
#FFD6DB --rvt-color-crimson-100
#FF636A --rvt-color-crimson-200
#F23A3F --rvt-color-crimson-300
#DC231E --rvt-color-crimson-400
#990000 --rvt-color-crimson-500
#800000 --rvt-color-crimson-600
#5A0C0C --rvt-color-crimson-700

IU Gold

Rivet color utilities
Example Value CSS Custom Property
#FFFCEB --rvt-color-gold-000
#FFF4C6 --rvt-color-gold-100
#FFE694 --rvt-color-gold-200
#FFD563 --rvt-color-gold-300
#FFC132 --rvt-color-gold-400
#FFAA00 --rvt-color-gold-500
#A36B00 --rvt-color-gold-600
#613D00 --rvt-color-gold-700

IU Green

Rivet color utilities
Example Value CSS Custom Property
#F9F9F0 --rvt-color-green-000
#DEE8C6 --rvt-color-green-100
#A7D094 --rvt-color-green-200
#63B363 --rvt-color-green-300
#329345 --rvt-color-green-400
#056E41 --rvt-color-green-500
#005C31 --rvt-color-green-600
#004421 --rvt-color-green-700

IU Orange

Rivet color utilities
Example Value CSS Custom Property
#FFF3F0 --rvt-color-orange-000
#FFCDC0 --rvt-color-orange-100
#FFA690 --rvt-color-orange-200
#FF7E60 --rvt-color-orange-300
#F75930 --rvt-color-orange-400
#DF3603 --rvt-color-orange-500
#B11C00 --rvt-color-orange-600
#690A00 --rvt-color-orange-700

IU Purple

Rivet color utilities
Example Value CSS Custom Property
#FBF8FB --rvt-color-purple-000
#DECADC --rvt-color-purple-100
#C09EBB --rvt-color-purple-200
#A07498 --rvt-color-purple-300
#7D4C73 --rvt-color-purple-400
#59264D --rvt-color-purple-500
#48183D --rvt-color-purple-600
#330D2B --rvt-color-purple-700

Font

Font design tokens
Example Value CSS Custom Property
Indiana University
'BentonSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif --rvt-font-sans
Indiana University
'GeorgiaPro', Georgia, 'Times New Roman', Times, serif --rvt-font-serif
Indiana University
monospace --rvt-font-mono
Indiana University
700 --rvt-font-bold
Indiana University
500 --rvt-font-medium
Indiana University
400 --rvt-font-regular

Shadow

Shadow design tokens
Example Value CSS Custom Property
0 .1875rem .375rem rgb(36, 49, 66, .07) --rvt-shadow-subtle
0 .25rem .5rem rgb(36, 49, 66, .16) --rvt-shadow-standard
0 .25rem 1rem rgb(36, 49, 66, .2) --rvt-shadow-heavy

Spacing

Spacing design tokens
Example Value CSS Custom Property

xxs spacing example

.25rem / 4px --rvt-spacing-xxs

xs spacing example

.5rem / 8px --rvt-spacing-xs

sm spacing example

1rem / 16px --rvt-spacing-sm

md spacing example

1.5rem / 24px --rvt-spacing-md

lg spacing example

2rem / 32px --rvt-spacing-lg

xl spacing example

2.5rem / 40px --rvt-spacing-xl

xxl spacing example

4rem / 64px --rvt-spacing-xxl

3-xl spacing example

8rem / 128px --rvt-spacing-3-xl

4-xl spacing example

12rem / 192px --rvt-spacing-4-xl

Type scale

Type scale design tokens
Example Value CSS Custom Property
Indiana University .75rem / 12px --rvt-ts-12,
--rvt-ts-xxs
Indiana University .875rem / 14px --rvt-ts-14,
--rvt-ts-xs
Indiana University 1rem / 16px --rvt-ts-16,
--rvt-ts-base
Indiana University 1.125rem / 18px --rvt-ts-18,
Indiana University 1.25rem / 20px --rvt-ts-20,
--rvt-ts-sm
Indiana University 1.4375rem / 23px --rvt-ts-23,
Indiana University 1.625rem / 26px --rvt-ts-26,
--rvt-ts-md
Indiana University 1.8125rem / 29px --rvt-ts-29,
Indiana University 2rem / 32px --rvt-ts-32,
--rvt-ts-lg
Indiana University 2.25rem / 36px --rvt-ts-36,
Indiana University 2.5625rem / 41px --rvt-ts-41,
--rvt-ts-xl
Indiana University 2.875rem / 46px --rvt-ts-46,
Indiana University 3.25rem / 52px --rvt-ts-52,
--rvt-ts-xxl

Width

Width design tokens
Example Value CSS Custom Property

xxs spacing example

4rem / 64px --rvt-width-xxs

xs spacing example

8rem / 128px --rvt-width-xs

sm spacing example

12rem / 192px --rvt-width-sm

md spacing example

16rem / 256px --rvt-width-md

lg spacing example

20rem / 320px --rvt-width-lg

xl spacing example

24rem / 384px --rvt-width-xl

xxl spacing example

32rem / 512px --rvt-width-xxl

3-xl spacing example

40rem / 640px --rvt-width-3-xl

4-xl spacing example

48rem / 768px --rvt-width-4-xl

Z-index

Z-index design tokens
Example Value CSS Custom Property
z-index: 0 0 --rvt-z-index-0
z-index: 100 100 --rvt-z-index-100
z-index: 200 200 --rvt-z-index-200
z-index: 300 300 --rvt-z-index-300
z-index: 400 400 --rvt-z-index-400
z-index: 500 500 --rvt-z-index-500
z-index: 600 600 --rvt-z-index-600
z-index: 700 700 --rvt-z-index-700
z-index: 800 800 --rvt-z-index-800
z-index: 900 900 --rvt-z-index-900
z-index: 1000 1000 --rvt-z-index-1000