What are Tokens?
Design tokens help us maintain consistent and scalable UI pattern library development. They are essentially name-value pairs that describe visual design attributes of our UI patterns. We've exposed them (as opposed to leaving them buried in our source files) so that designers and developers may easily reference defined design attributes.
Font
Use these font weights to change how thin or heavy the weight is for our font.
token | value/example |
---|---|
@font-family |
The quick brown fox
"Open Sans", Helvetica, Arial, Sans-Serif;
|
@font-weight-light
|
The quick brown fox
300
|
@font-weight-regular |
The quick brown fox
400
|
@font-weight-bold |
The quick brown fox
600
|
Font Size
Use these sizing tokens for font sizes.
token | value/example |
---|---|
@font-size-small |
The quick brown fox
12px
|
@font-size-regular |
The quick brown fox
14px
|
@font-size-large |
The quick brown fox
18px
|
@font-size-h1 |
The quick brown fox
36px
|
@font-size-h2 |
The quick brown fox
30px
|
@font-size-h3 |
The quick brown fox
24px
|
@font-size-h4 |
The quick brown fox
18px
|
@font-size-h5 |
The quick brown fox
13px
|
@font-size-h6 |
The quick brown fox
12px
|
Text Color
Use these text color tokens for setting text colors.
token | value/example |
---|---|
@text-color |
The quick brown fox
#666
|
@text-color-light |
The quick brown fox
#848484
|
@text-color-lighter |
The quick brown fox
#a3a3a3
|
@text-color-error |
The quick brown fox
#e43b34
|
@account-switcher-text |
The quick brown fox
#c1c1c1
|
@account-switcher-input-text |
The quick brown fox
#c1c1c1
|
@account-switcher-header-text |
The quick brown fox
#848484
|
@main-nav-link-text |
The quick brown fox
#c1c1c1
|
@main-nav-link-text-hover |
The quick brown fox
#e0e0e0
|
@main-nav-link-text-active |
The quick brown fox
#fff
|
@navbar-inverse-text |
The quick brown fox
#3d3d3d
|
@navbar-inverse-link-color |
The quick brown fox
#c1c1c1
|
@navbar-inverse-link-hover-color |
The quick brown fox
#fff
|
@state-success-text |
The quick brown fox
#3cac30
|
@state-info-text |
The quick brown fox
#317495
|
@state-warning-text |
The quick brown fox
#f5a934
|
@state-danger-text |
The quick brown fox
#e43b34
|
@alert-text |
The quick brown fox
#666
|
Line Height
Background Color
Use these background color tokens for setting background colors.
token | value/example |
---|---|
@body-bg |
#e0e0e0
|
@primary-body-bg |
#fff
|
@state-success-bg |
#dff0d8
|
@state-info-bg |
#d9edf7
|
@state-warning-bg |
#fcf8e3
|
@state-danger-bg |
#f2dede
|
@action-toolbar-bg |
#e0e0e0
|
@action-toolbar-hover-bg |
#515151
|
@action-toolbar-active-bg |
#3d3d3d
|
@action-toolbar-dropdown-bg |
#3d3d3d
|
@action-toolbar-dropdown-hover-bg |
#282828
|
@action-toolbar-dropdown-active-bg |
#141414
|
@account-switcher-header-bg |
#3d3d3d
|
@account-switcher-bg |
#282828
|
@account-switcher-active-bg |
#141414
|
@alert-success-bg |
#dff0d8
|
@alert-info-bg |
#d9edf7
|
@alert-warning-bg |
#fcf8e3
|
@alert-danger-bg |
#f2dede
|
@alert-instruction-bg |
#fff
|
@main-nav-bg |
#282828
|
@main-nav-hover-bg |
#202020
|
@main-nav-active-bg |
#141414
|
@main-nav-flyout-bg |
#282828
|
@main-nav-flyout-hover-bg |
#202020
|
@main-nav-flyout-active-bg |
#141414
|
@navbar-inverse-bg |
#282828
|
@progress-bg |
#e0e0e0
|
@progress-bar-success-bg |
#3cac30
|
@progress-bar-info-bg |
#43c1e6
|
@progress-bar-warning-bg |
#f5a934
|
@progress-bar-danger-bg |
#e43b34
|
@tag-default-bg |
#a3a3a3
|
@tag-primary-bg |
#3cac30
|
@tag-info-bg |
#43c1e6
|
@tag-warning-bg |
#f5a934
|
@tag-danger-bg |
#e43b34
|
@tree-list-status-default-bg |
#e0e0e0
|
@tree-list-status-warning-bg |
#f5a934
|
@tree-list-status-danger-bg |
#e43b34
|
Border Color
Use these border color tokens for setting border colors.
token | value/example |
---|---|
@border-color |
#e0e0e0
|
@border-color-dark |
#c1c1c1
|
@navbar-inverse-border |
#141414
|
@state-success-border |
#d6e9c6
|
@state-info-border |
#afe4ee
|
@state-warning-border |
#f7e1b5
|
@state-danger-border |
#ebccd1
|
@navbar-inverse-border |
#141414
|
Border Radius
Use these border radius tokens for setting border radii.
token | value/example |
---|---|
@border-radius-small |
3px
|
@border-radius-base |
4px
|
@border-radius-large |
6px
|
@border-radius-circle |
50%
|
Spacing
Use these spacing tokens for setting margin and padding values.
token | value/example |
---|---|
@space-xxs |
5px |
@space-xs |
10px |
@space-sm |
20px |
@space-md |
30px |
@space-lg |
40px |
@space-xl |
60px |
Media Queries
Cyclops is mobile first, so media queries are set with minimum screen widths. Use the following media query tokens to set media query width ranges.
token | value/example |
---|---|
@screen-xs-min |
only screen and (min-width: 480px) |
@screen-sm-min |
only screen and (min-width: 768px) |
@screen-md-min |
only screen and (min-width: 992px) |
@screen-lg-min |
only screen and (min-width: 1200px) |
@screen-xl-min |
only screen and (min-width: 1800px) |