Skip to Content

Color

Provides color information in HEX, RGB, and HSL formats.

Type Definition

type Color { color: String rgb: String hsl: String }

Fields

FieldTypeDescription
colorStringColor as a HEX string (e.g., #RRGGBB).
rgbStringColor as an RGB string (e.g., rgb(255, 255, 255)).
hslStringColor as an HSL string (e.g., hsl(0, 0%, 100%)).

Relationships

The Color type is a structured data object that can be returned as a field within other GraphQL types, queries, and mutations. It provides multiple color format representations for flexibility in consuming applications.

Example

{ color rgb hsl }

Implements

None

None