dotUI
dotUI
beta
  1. Introduction
  2. Colors

Colors

Learn how to use our color system

Overview

Color has purpose

The purpose of using color has to be clear. Color needs to support a message or status that needs to be easily identifiable by the user.

Each usage of color within your product is purposefully tied to a specific meaning. For instance, red signifies critical errors, green represents success messages, and blue is used to draw attention to tips and informations. Using color as decoration is exclusive to illustration.

Color has impact

Your product interface should adopts a black and white color scheme, intentionally creating a neutral backdrop. By employing this monochromatic design, elements that incorporate color gain heightened visual impact and prominence.

Color is accessible

rcopy offers consistent color palettes for each color role. This means that each color is assigned a specific relationship within the overall palette.

These color relationships ensure that color contrasts remain consistent across every application of color and ensure proper legibility and understanding when it comes to combining texts with color and interactive shapes with various backgrounds.

Color roles

NameDescription
Neutral
Use for default text and secondary UI elements, such as secondary buttons or navigation elements.
Brand
Use for primary actions or elements that communicate your product brand.
Information
Use for informative UI, such as an information icon, or UI that communicates something is in progress.
Success
Use to communicate a favorable outcome, such as a success message.
Warning
Use for UI that communicates caution to prevent a mistake or error from occurring.
Critical
Use for UI that communicates danger or serious error states.
Inverse
Use for UI elements that sit on bold emphasis backgrounds.

These are the main color roles available by default. Feel free to add other roles (e.g., discovery, emphasis).

Color tokens

rCopy delivers colors in the form of design tokens. Design tokens are a layer of abstraction that allows for better maintainability, consistency and theming. These design tokens are represented as CSS variables for code.

Built by mehdibha. The source code is available on GitHub.