Appearance
helix / Color
Variable: Color
constColor: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
readonlyAQUA:"aqua"="aqua"
BLACK
readonlyBLACK:"black"="black"
BLUE
readonlyBLUE:"blue"="blue"
DARK_AQUA
readonlyDARK_AQUA:"dark_aqua"="dark_aqua"
DARK_BLUE
readonlyDARK_BLUE:"dark_blue"="dark_blue"
DARK_GRAY
readonlyDARK_GRAY:"dark_gray"="dark_gray"
DARK_GREEN
readonlyDARK_GREEN:"dark_green"="dark_green"
DARK_PURPLE
readonlyDARK_PURPLE:"dark_purple"="dark_purple"
DARK_RED
readonlyDARK_RED:"dark_red"="dark_red"
GOLD
readonlyGOLD:"gold"="gold"
GRAY
readonlyGRAY:"gray"="gray"
GREEN
readonlyGREEN:"green"="green"
LIGHT_PURPLE
readonlyLIGHT_PURPLE:"light_purple"="light_purple"
RED
readonlyRED:"red"="red"
RESET
readonlyRESET:"reset"="reset"
WHITE
readonlyWHITE:"white"="white"
YELLOW
readonlyYELLOW:"yellow"="yellow"