Skip to content

helix / Color

Variable: Color

const Color: object

Defined in: core/values/enums.ts:54

The vanilla named text colours - the fixed palette a text component's color field accepts by name. Named-constant namespace + union type (declaration merging), same stance as Gamemode: author Color.GOLD over the bare, typo-prone "gold". Arbitrary #RRGGBB hex is still allowed at the call site (see TellrawPart.color) - this covers just the 16 vanilla names plus reset.

Type Declaration

AQUA

readonly AQUA: "aqua" = "aqua"

BLACK

readonly BLACK: "black" = "black"

BLUE

readonly BLUE: "blue" = "blue"

DARK_AQUA

readonly DARK_AQUA: "dark_aqua" = "dark_aqua"

DARK_BLUE

readonly DARK_BLUE: "dark_blue" = "dark_blue"

DARK_GRAY

readonly DARK_GRAY: "dark_gray" = "dark_gray"

DARK_GREEN

readonly DARK_GREEN: "dark_green" = "dark_green"

DARK_PURPLE

readonly DARK_PURPLE: "dark_purple" = "dark_purple"

DARK_RED

readonly DARK_RED: "dark_red" = "dark_red"

GOLD

readonly GOLD: "gold" = "gold"

GRAY

readonly GRAY: "gray" = "gray"

GREEN

readonly GREEN: "green" = "green"

LIGHT_PURPLE

readonly LIGHT_PURPLE: "light_purple" = "light_purple"

RED

readonly RED: "red" = "red"

RESET

readonly RESET: "reset" = "reset"

WHITE

readonly WHITE: "white" = "white"

YELLOW

readonly YELLOW: "yellow" = "yellow"

Released under the MIT License · Credits