Color Scheme

Yamada UI provides features to create and use color contexts according to the color scheme.

Overview

Color scheme generates color contexts for components based on values. This improves color consistency.

When a value is set to the color scheme, the following properties are generated. These values are set in the semantic tokens of the theme.

  • colorScheme.solid: The solid color used for background etc.
  • colorScheme.bg: The faint color used for background etc.
  • colorScheme.ghost: The faint color used for background etc.
  • colorScheme.fg: The color used for text etc.
  • colorScheme.outline: The color used for border etc.
  • colorScheme.contrast: The text color used for colorScheme.solid.
  • colorScheme.subtle: The color with higher contrast than colorScheme.bg.
  • colorScheme.muted: The color with higher contrast than colorScheme.subtle.
  • colorScheme.emphasized: The color with higher contrast than colorScheme.muted.

Also, tone colors from colorScheme.50 to colorScheme.950 are generated.

使い方

Solid
Subtle

Color scheme inherits the color scheme of the parent element.

Provided by Parent
Child