Theme
Semantic tokens

Semantic Tokens

Bring the Park UI semantic to your entire application

Colors

Park UI’s theme primarily revolves around one gray and one accent color. These foundational colors are later utilized to define the bg (background), fg (foreground), and accent tokens.

Gray

1

2

3

4

5

6

7

8

9

10

11

12

Accent

1

2

3

4

5

6

7

8

9

10

11

12

Background

Background colors are designated for the backdrop elements of a user interface. They can be used for components like containers, sections, or the entire screen’s layout.

canvas

default

subtle

muted

emphasized

disabled

NameCSS VariableToken Name
Canvasvar(--bg-canvas)bg-canvas
Defaultvar(--bg-default)bg-default
Subtlevar(--bg-subtle)bg-subtle
Mutedvar(--bg-muted)bg-muted
Emphasizedvar(--bg-emphasized)bg-emphasized
Disabledvar(--bg-disabled)bg-disabled

To use the the bg-canvas token in your application as background color, you have to prefix it with bg- and add it as a class like:

<div className="bg-bg-canvas">Hello from Park</div>

Foreground

Foreground colors are meant for elements that stand out against the background, such as text, icons, buttons, and other interactive components.

default

muted

subtle

disabled

NameCSS VariableToken Name
Defaultvar(--fg-default)fg-default
Mutedvar(--fg-muted)fg-muted
Subtlevar(--fg-subtle)fg-subtle
Disabledvar(--fg-disabled)fg-disabled

To use the muted color token in your application as text color, you have to prefix it with text- and add it as a class like:

<p className="text-fg-muted">Hello from Park</p>

Border

Border tokens contribute depth to UI elements. They establish hierarchy and delineate between components.

default

muted

subtle

disabled

outline

TypeNameCSS VariableToken Name
Defaultvar(--border-default)border-default
Mutedvar(--border-muted)border-muted
Subtlevar(--border-subtle)border-subtle
Disabledvar(--border-disabled)border-disabled
Outlinevar(--border-outline)border-outline
Accentvar(--border-accent)border-accent

To use the muted border color token in your application, you have to prefix it with border- and add it as a class like:

<div className="border border-border-muted">Hello from Park</div>

Radii

NameCSS VariableToken Name
Level 1var(--radii-l1)rounded-l1
Level 2var(--radii-l2)rounded-l2
Level 3var(--radii-l3)rounded-l3

To use the border radius token in your application, you have to prefix it with rounded- and add it as a class like:

<div className="border border-border-accent rounded-l1">Hello from Park</div>

Previous

Colors

On this page