Color
RingUI provides a variety of colors, each of which has its own areas of application. The correct use of color enhances usability and creates a coherent experience.
List of Colors
RingUI colors are divided into four application areas: Text, Icons, Components, and Background. It is crucial that you use these colors exactly as specified.
Text Colors
Text/Main | • Regular text | |
Text/Secondary | • Secondary text | |
Text/Placeholder&Disabled | • Placeholder text | |
Text/Action | • Text buttons | |
Text/Main Action | ||
Text/Link | ||
Text/Hovered | • Hovered state of links, text buttons, | |
Text/Error | • Error -, failure -, and critical text | |
Text/Warning | • Warning text | |
Text/Success | • Text related to success -, |
Icon Colors
Icon/Standard | • Regular icon buttons | |
Icon/Main | • Main icon buttons | |
Icon/Hovered | • Hovered state of icon buttons | |
Icon/Supportive | • Non-clickable supportive icons | |
Icon/Disabled | • Disabled icon buttons | |
Icon/Error | • Icons representing error -, | |
Icon/Warning | • Icons representing warning | |
Icon/Success | • Icons representing success -, |
Component Colors
Component/Main | • Main color for buttons, | |
Component/Main Hover | • Hovered state for buttons, | |
Component/Border | • Border of buttons, text fields, etc. | |
Component/Border Error | • Border of select field, text fields, | |
Component/Border Hover | • Border of select field, text fields, | |
Component/Disabled | • Standard border color for | |
Component/Unselected Disabled | • Border color for disabled and | |
Component/Divider |
Background Colors
Background/Main | • Basic Background | |
Background/Sidebar | • Sidebar background | |
Background/Hover | • Background of hovered items in lists | |
Background/Dropdown Hover | • Background of hovered items in | |
Background/Tag | • Background of labels | |
Background/Tag Hovered | • Background of labels in hovered state | |
Background/Error | • Background for erroneous -, | |
Background/Warning | • Background for warning content | |
Background/Success | • Background for successful -, | |
Background/Dark | • Background for dark header bars | |
Background/Disabled | • Background for disabled components |
Dark Theme
For each color in Ring UI, there is a corresponding dark theme color. When setting your UI to dark theme, all colors will be adjusted automatically. Usually, there should be no need to adapt the colors for the dark theme. However, you should still check if everything is legible and understandable.
You can find all dark theme colors in our Figma library or in our React library.
Best Practice
Minimum Contrast Requirements for Text
The minimum contrast requirement for text in RingUI is 4.0:1. To check if this is given in your design, you can use a web app (WebAim Contrast Checker) or install a plugin to Figma (Figma contrast plugin) .
Following this requirement ensures that the user can easily read the text, even if they have a minor vision loss, operate on screens with low contrast ratio, or use their laptop in bright lighting conditions.
Exceptions for Minimum Contrast Requirements
You don’t have to meet the minimum contrast requirement if the text is incidental or decorative and doesn’t serve any essential purpose. However, it might also be a good idea to omit elements in your interface that are incidental or decorative altogether.
Another case where you don’t have to meet the minimum requirements is text on disabled components. As long as a component is disabled it shouldn't serve an essential purpose.
Further Guidelines on Color
Always go for the existing colors before creating any new ones for your design. This ensures a consistent look of all RingUI applications.
Never use color as your only way of communication. Especially for color-blind people, this leads to major problems. If you use color to convey information, you need an extra cue, such as text or icons (WCAG, Use of Color).
Pay attention when using red, yellow, and green. These colors have established meanings and, in general, shouldn’t be used in any other way.
Red: critical (error, failure, risk)
Yellow: warning (attention or action required)
Green: success (confirmation, availability)
It can cause problems when you use these colors otherwise. For example, if you use red in your interface for non-critical components, an actual critical component colored in red won’t grab as much attention anymore. (Interaction-Design, Understand Color Symbolism)
Use colors consistently. If you connect some color with a specific meaning, make sure to use this color for this meaning throughout the whole application.
If you can, test your colors in different lighting conditions and on different screens.