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.
Avoid purely aesthetic customizations
Border radius
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
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
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
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
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
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
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
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
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
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
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
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
Example | Value | CSS Custom Property |
---|---|---|
Indiana University | .75rem / 12px |
--rvt-ts-12,
|
Indiana University | .875rem / 14px |
--rvt-ts-14,
|
Indiana University | 1rem / 16px |
--rvt-ts-16,
|
Indiana University | 1.125rem / 18px |
--rvt-ts-18,
|
Indiana University | 1.25rem / 20px |
--rvt-ts-20,
|
Indiana University | 1.4375rem / 23px |
--rvt-ts-23,
|
Indiana University | 1.625rem / 26px |
--rvt-ts-26,
|
Indiana University | 1.8125rem / 29px |
--rvt-ts-29,
|
Indiana University | 2rem / 32px |
--rvt-ts-32,
|
Indiana University | 2.25rem / 36px |
--rvt-ts-36,
|
Indiana University | 2.5625rem / 41px |
--rvt-ts-41,
|
Indiana University | 2.875rem / 46px |
--rvt-ts-46,
|
Indiana University | 3.25rem / 52px |
--rvt-ts-52,
|
Width
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
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 |