Styling

Customize AskAI appearance with CSS variables

Overview

Peam client components are styled with shadcn/ui primitives and theme tokens. You can customize the look and feel by overriding the CSS variables listed below on any wrapper element (for example, the AskAI root). For dark mode, apply a dark class on the same element (or a parent) and override the variables again for the dark palette.

CSS variables

VariablePurpose
--backgroundBase surface background.
--foregroundBase surface text color.
--cardCard/surface background for panels.
--card-foregroundText color on cards/surfaces.
--popoverPopover surface background.
--popover-foregroundText color on popovers.
--primaryPrimary brand/action color.
--primary-foregroundText color on primary elements.
--secondarySecondary surface/background color.
--secondary-foregroundText color on secondary surfaces.
--mutedMuted surface/background color.
--muted-foregroundText color on muted surfaces.
--accentAccent surface/background color.
--accent-foregroundText color on accent surfaces.
--destructiveDestructive/action color.
--destructive-foregroundText color on destructive elements.
--borderBorder color.
--inputInput border color.
--ringFocus ring color.
--radiusBase border radius.

Dark mode

To customize the dark theme, add a dark class and override the same variables for the dark palette. The preview below uses .peam-root for the light theme and .peam-root.dark for the dark theme.

Demo

On this page

GitHubEdit this page on GitHub