Skip to main content
To customise the widget, pass CSS variables through the customCss prop. You can pass a string of CSS declarations or a key-value object — both formats work.

Match your brand colours

Override the primary colour and its interactive states:
To pull in colours from your existing design system, reference your own CSS variables directly:

Set the border radius style

Rounded theme:
Square / no-radius theme:

Set the font family

Monospace:

Configure dark mode

Use the theme prop for light/dark/auto. If you need to override colours for a specific theme, combine theme with customCss:

Advanced: glassmorphism

Advanced: disable default CSS

To apply a fully custom stylesheet without Trails’ defaults interfering:

Global CSS overrides

Variables cascade as normal CSS custom properties. You can set them globally or scope them to a container:

CSS variable reference

Typography

Border radius

Widget structure

Primary colours

Background colours

Text colours

Border colours

Interactive states

Status colours

Input fields

Lists