Colors
Core colors
A pool of tinted variants of the main twoday brand colors. The core colors maintain the vivid twoday brand identity and ensures a visual connection between different elements.
Black / White
#FFFFFF
1
#171717
1000
Neutral
#2B2B2B
900
#3C3C3C
800
#616161
700
#757575
600
#949494
500
#C8C8C8
400
#D4D4D4
300
#E0E0E0
200
#EDEDED
100
#F5F5F5
50
Dark orange
#4D1D00
900
#702B00
800
#943800
700
#C74C00
600
#F66A13
500
#FF8439
400
#FFA975
300
#FFD3B8
200
#FFE5D6
100
#FFEFE5
50
Light orange
#5C3700
900
#995C00
800
#D68100
700
#F09000
600
#FFA824
500
#FFBC57
400
#FFD28F
300
#FFE9C7
200
#FFF1DB
100
#FFF8EE
50
Yellow
#493409
900
#6D4D0D
800
#916711
700
#E0AE0B
600
#F4D81F
500
#F8E56D
400
#FAED98
300
#FCF3BB
200
#FDF7D3
100
#FEFAE2
50
Green
#00522C
900
#006636
800
#007A40
700
#009951
600
#00C266
500
#2BD283
400
#5FE3A4
300
#C1F5DC
200
#D3F8E6
100
#EDFCF5
50
Blue
#003047
900
#004466
800
#005985
700
#006DA3
600
#007AB8
500
#009CE9
400
#1FB5FF
300
#A3E1FF
200
#C2EBFF
100
#E0F5FF
50
Red
#520006
900
#7A0008
800
#A3000B
700
#CC000E
600
#EB0A19
500
#F84F5A
400
#FB747D
300
#FDAFB5
200
#FFCCD0
100
#FFEBEC
50
Dark blue
#00173A
900
#192E4E
800
#334561
700
#4C5D75
600
#667489
500
#808B9C
400
#99A2B0
300
#B2B9C4
200
#CCD1D8
100
#E5E8EB
50
Dark green
#003E25
900
#336551
800
#4C7866
700
#668B7C
600
#809E92
500
#99B2A8
400
#B2C5BE
300
#CCD8D3
200
#E5ECE9
100
#F0F4F3
50
Common colors
To create a coherent experience in all twoday products, common colors from the core palette should be used. These situational colors below represent common system states.
There might be interface text elements that need to be contrasted with other colors than black and white, like status pills, alerts and checkboxes. For this purpose, you should use a different shade of the same color against it.
For example, light red surface can use darker color variant as text color. The "Accessible combinations” shown here exceed AA-level minimum contrast ratios (4.5:1) referred in accessibility guidelines.
Text colors
Non-interactive text (such as headings and body text) should use this palette.
In general, avoid using other colors as body text color besides the ones documented here.
Primary
1000
Secondary
700
Disabled
600
White
1
Neutral colors
The neutral colors are used for functional purposes to create a dynamic and balanced look and feel. Example uses include border colors; dividers, input border (gray-3), and more.
gray-5
900
gray-4
700
gray-3
500
gray-2
200
gray-1
50
Accessible combinations
Informative colors
State which does not indicate clear success or failure but can be useful extra information to the user.
For example: alert popups like “you have received a new message”, “service maintenance this weekend”
blue-5
900
blue-4
700
blue-3
400
blue-2
200
blue-1
50
Accessible combinations
Danger / Error colors
Danger colors are assigned to interactive and feedback elements related to actions or functionality that may result in a system error, permanent loss of data, or other types of situations that are hard to recover.
For example: deleting a user account, form input errors. The colors are also used in internal system errors not caused by the user, for example network errors.
red-5
900
red-4
700
red-3
400
red-2
200
red-1
50
Accessible combinations
Success colors
Success colors are intended for system feedback that signifies the successful completion of a task or user action.
For example: Pop-up notification when submitting a form, password length is adequate in an input field.
green-5
900
green-4
700
green-3
400
green-2
200
green-1
50
Accessible combinations
Caution / Waiting colors
Caution and waiting colors are used for system states which are intermediary, indeterminate, or otherwise noteworthy information, yet not destructive.
For example: ongoing process, unsaved changes, user action required.
yellow-5
900
yellow-4
700
yellow-3
400
yellow-2
200
yellow-1
50
Accessible combinations
Theme colors
A twoday product is brought to life with its own hand-picked theme colors. Themes allow you to customize all design aspects of your product in order to meet the specific needs of your business or brand.
Start by picking 1-3 main colors from the core pool. You can consider these as the primary, secondary and accent colors of the product UI.
Primary
$darkOrange-500
Secondary
$grey-900
Accent
$green-400
For each selected color, try to limit the use of tints to 5. This helps you create stronger contrasts when combining the different shades together. If needed, more tints can be introduced, but ensure adequate contrast when combining shades.
Depending on where the color combinations are used, make sure the colors abide to the following:
- Non-text elements input focus color, graph color has 3:1 contrast to adjacent color
- Text elements exceed 4.5:1 contrast for small text or 3:1 contrast for large text
Buttons are an exception. If the button has text or distinguishable icon, the button “hit area” does not have to meet the contrast requirement. In other words, button with text only or low contrast border is allowed, if the text color meets the small 4.5:1 or large 3:1 contrast requirement against the button’s surface color.
Default themes
The design system has two default themes, which can be used in products that are twoday endorsed or master branded, but do not have their own brand identity. These themes can be useful in kicking off a new internal project.
Default theme 1: twonight
Primary
Dark orange
500
Secondary
Neutral
900
Primary color tints
darkOrange-5
900
darkOrange-4
700
500
200
50
gray-5
900
gray-4
700
400
200
50
Default theme 2: twomorrow
Primary
Light orange
500
Secondary
Neutral
900
Accent
Blue
400
Primary color tints
lightOrange-5
900
lightOrange-4
800
500
200
50
gray-5
900
gray-4
700
500
200
50
blue-5
900
blue-4
700
400
200
50
Use the common colors as the secondary palette for different system states.
If you are unsure whether to start composing your own color scheme or to use a default theme, refer to this quick selection tree to help you determine the need.
Principles
Use primarily black (#171717) or white text (#FFFFFF) in colored surfaces, or different lightness level of the same surface color.
Try not to mix different colors together, even if they would exceed the accessibility contrast requirements.
Accessibility
- All text must surpass WCAG 2.1 AA contrast requirements.
-
- The minimum contrast ratio with small text is 4.5:1. Small text is less than 24px.
- With large text, the requirement is 3:1. Large text is 24px or larger
- Non-text elements, or graphical UI objects, must exceed 3:1 contrast to their adjacent colours. These include:
-
- Charts
- Icons, like a left-pointing icon of a “previous” button
- Checked/unchecked states of radio buttons and checkboxes
- Focus states on buttons, form controls and input fields
More information about text contrast and non-text contrast requirements.