Style Customization

Style Customization

You can customize the styling of the editor and the plugins by overriding the design tokens the library exposes.

Color Tokens

Background Colors

TokenValueDescription
--ngx-traak-color-background-brand#1d4ed8Primary brand background color
--ngx-traak-color-background-brand-hovered#eff6ffHover state for brand background
--ngx-traak-color-background-neutral#4b5563Neutral background color
--ngx-traak-color-background-neutral-hovered#f3f4f6Hover state for neutral background
--ngx-traak-background-surface#ffffffSurface background color

Border Colors

TokenValueDescription
--ngx-traak-color-border-neutral#e5e5e5Neutral border color

Text Colors

TokenValueDescription
--ngx-traak-color-text-on-surface#4b5563Text color on surface background

Effects

TokenValueDescription
--ngx-traak-shadow#0000000d 0 4px 10pxStandard shadow effect

Layout

TokenValueDescription
--ngx-traak-menu-width170pxStandard menu width
--ngx-traak-editor-width50vwStandard editor width (50% of viewport width)
--ngx-traak-editor-height90vhStandard editor height (90% of viewport height)

Spacing

NGX-Traak uses a consistent spacing scale from 0-10:

TokenValueDescription
--ngx-traak-space-04pxExtra small spacing
--ngx-traak-space-18pxSmall spacing
--ngx-traak-space-216pxMedium spacing
--ngx-traak-space-324px-
--ngx-traak-space-432pxLarge spacing
--ngx-traak-space-540px-
--ngx-traak-space-648pxExtra large spacing
--ngx-traak-space-756px-
--ngx-traak-space-864px-
--ngx-traak-space-972px-
--ngx-traak-space-1080px-

Typography

TokenValueDescription
--ngx-traak-font-familyInter, sans-serifStandard font family