TypstDocumentation

color

A color in a specific color space.

Typst supports:

Furthermore, Typst provides the following built-in colors:

black, gray, silver, white, navy, blue, aqua, teal, eastern, purple, fuchsia, maroon, red, orange, yellow, olive, green, and lime.

Methods
Question mark

lighten method

Lightens a color.

value.lighten()

amount
ratioRequiredPositional
Question mark

The factor to lighten the color by.

darken method

Darkens a color.

value.darken()

amount
ratioRequiredPositional
Question mark

The factor to darken the color by.

negate method

Produces the negative of the color.

value.negate(
)