Skip to the content.

Primitives are built-in elements that handle common patterns like headings and paragraphs.

What are Primitives?

Primitives are special elements that are always available in Chalk, regardless of which library you’re using. Unlike custom elements that you define in your library, primitives are built into the Chalk language itself.

Common Primitives

Headings

# Level 1 Heading
## Level 2 Heading
### Level 3 Heading
#### Level 4 Heading
##### Level 5 Heading
###### Level 6 Heading

Paragraphs

This is a regular paragraph.

paragraph(color: blue) {
    This paragraph has custom attributes.
}

Why Primitives?

Next Steps