To style your document, you need to work with values of different kinds: Lengths specifying the size of your elements, colors for your text and shapes, and more. Typst categorizes these into clearly defined types and tells you where it expects which type of value.
Apart from very basic types for numeric values and typical types known from programming languages, Typst provides a special type for content. A value of this type can hold anything that you can enter into your document: Text, elements like headings and shapes, and style information.
In some places of Typst more specialized data types are used. Instead of listing all of them here, they are explained where they are relevant.
noneA type that indicates the absence of any other value.
autoA type that indicates a smart default.
booleanA value with two states.
integerA whole number.
floatA floating-pointer number.
lengthA size or distance, possibly expressed with contextual units.
angleAn angle describing a rotation.
ratioA ratio of a whole.
relative lengthA length in relation to some known length.
fractionDefines how the the remaining space in a layout is distributed.
colorA color in a specific color space.
symbolA Unicode symbol.
stringA sequence of Unicode codepoints.
contentRepresentation of text, elements, and more.
arrayA sequence of values.
dictionaryA map from string keys to values.
functionA mapping from argument values to a return value.
argumentsCaptured arguments to a function.
moduleAn evaluated module, either built-in or resulting from a file.