Skip to main content
SolidBase
SolidBase is currently in Beta!

Some options may not fully work or be documented.


CSS Variables

The default theme's CSS can be customized using CSS variables. You can override these variables in your own CSS file to change the appearance of your site. To see how to add your own CSS file, refer to the Custom Themes guide.

The following CSS variables are available:

Typography

Variable NameDescriptionDefault Value
--sb-font-headingsFont family for headings"Lexend Variable", Segoe UI, Roboto, sans-serif
--sb-font-textFont family for regular text"Inter Variable", Segoe UI, Roboto, sans-serif
--sb-font-monoFont family for code and monospaced text"JetBrains Mono Variable", Menlo, Consolas, monospace

Typography Sizes

Variable NameDescriptionDefault Value
--sb-header-heightHeight of the header3.5rem

Typography Colors

Variable NameDescriptionDefault Light ValueDefault Dark Value
--sb-heading-colorColor for headingshsl(240, 6%, 10%)hsl(0, 0%, 100%)
--sb-text-colorColor for regular texthsl(240, 5%, 26%)hsl(240, 5%, 85%)
--sb-link-underline-colorColor for link underlineshsl(199, 95%, 74%)hsl(201, 90%, 27%)
--sb-active-link-colorColor for active linkshsl(200, 98%, 39%)hsl(199, 95%, 74%)
--sb-code-text-colorColor for inline code texthsl(201, 90%, 27%)hsl(199, 95%, 74%)
--sb-highlight-background-colorBackground color for highlighted texthsl(204, 94%, 95%)hsl(202, 80%, 14%)
--sb-decoration-colorColor for decorative elementshsl(240, 5%, 54%)hsl(240, 5%, 54%)

Layout

Variable NameDescriptionDefault Value
--sb-background-colorBackground color for the entire pagehsl(0, 0%, 100%) (light), hsl(240, 6%, 10%) (dark)
--sb-border-radiusBorder radius for elements like buttons and cards0.375rem
--sb-transition-timingTiming function for transitions and animationscubic-bezier(0.4, 0, 0.2, 1)
--sb-tint-colorPrimary tint color used in various elementswhite (light), black (dark)
--sb-tint-color-oppositeOpposite of the primary tint colorblack (light), white (dark)
--sb-code-background-colorBackground color for code blocks and inline codehsl(0, 0%, 98%) (light), hsl(240, 4%, 16%) (dark)
--sb-hero-backgroundBackground gradient for hero sectionslinear-gradient(-45deg, hsl(200, 98%, 39%) 50%, hsl(199, 95%, 74%) 50%)
--sb-hero-filterFilter applied to hero backgroundblur(68px)
--sb-hero-name-backgroundBackground gradient for hero name textlinear-gradient(-20deg, hsl(200, 98%, 39%) 30%, hsl(199, 95%, 74%))
--bprogress-colorColor for the progress bar shown during page navigationvar(--sb-active-link-color)

Callout Boxes

Variable NameDescriptionDefault Light ValueDefault Dark Value
--sb-info-background-colorBackground color for info callout boxeshsl(214, 100%, 97%)hsl(225, 41%, 17%)
--sb-info-text-colorText color for info callout boxeshsl(226, 71%, 40%)hsl(213, 94%, 68%)
--sb-tip-background-colorBackground color for tip callout boxeshsl(138, 76%, 97%)hsl(149, 36%, 14%)
--sb-tip-text-colorText color for tip callout boxeshsl(143, 64%, 24%)hsl(142, 52%, 51%)
--sb-important-background-colorBackground color for important callout boxeshsl(250, 100%, 98%)hsl(263, 44%, 17%)
--sb-important-text-colorText color for important callout boxeshsl(263, 69%, 42%)hsl(255, 92%, 76%)
--sb-warning-background-colorBackground color for warning callout boxeshsl(48, 100%, 96%)hsl(13, 26%, 13%)
--sb-warning-text-colorText color for warning callout boxeshsl(23, 61%, 38%)hsl(43, 74%, 50%)
--sb-danger-background-colorBackground color for danger callout boxeshsl(0, 86%, 97%)hsl(356, 38%, 16%)
--sb-danger-text-colorText color for danger callout boxeshsl(0, 70%, 35%)hsl(0, 91%, 71%)

Last updated: 10/7/25, 7:03 PM

Edit this page on GitHub
SolidBaseFully featured, fully customisable static site generation for SolidStart
Community
githubdiscord