Skip to content

Theme CSS Variables

The cssVariables object on a theme overrides visual styling with CSS custom properties. Use this page when changing colors, spacing, border radius, shadows, or typography.

{
"themeName": "default",
"colorPalette": "light",
"cssVariables": {
"--sjs-primary-backcolor": "rgba(37, 99, 235, 1)",
"--sjs-primary-backcolor-light": "rgba(37, 99, 235, 0.1)",
"--sjs-primary-backcolor-dark": "rgba(29, 78, 216, 1)",
"--sjs-corner-radius": "8px",
"--sjs-base-unit": "8px"
}
}
VariablePurpose
--sjs-general-backcolorQuestion panels and inputs
--sjs-general-backcolor-darkHover states and secondary surfaces
--sjs-general-backcolor-dimOverall form canvas
--sjs-general-backcolor-dim-lightSubtle surface differentiation
--sjs-general-backcolor-dim-darkDarker dimmed background
VariablePurpose
--sjs-general-forecolorPrimary text
--sjs-general-forecolor-lightDescriptions, placeholders, secondary text
--sjs-general-dim-forecolorText on dimmed backgrounds
--sjs-general-dim-forecolor-lightSecondary text on dimmed backgrounds
VariablePurpose
--sjs-primary-backcolorMain accent color for buttons, selected choices, progress
--sjs-primary-backcolor-lightLight primary background for hover/focus states
--sjs-primary-backcolor-darkHover/pressed primary color
--sjs-primary-forecolorText/icon color on primary background
--sjs-primary-forecolor-lightMuted text/icon color on primary background
VariablePurpose
--sjs-secondary-backcolorSecondary accent
--sjs-secondary-backcolor-lightLight secondary background
--sjs-secondary-backcolor-semi-lightSemi-light secondary background
--sjs-secondary-forecolorText/icon color on secondary background
--sjs-special-redError/danger color
--sjs-special-red-lightError background
--sjs-special-greenSuccess color
--sjs-special-blueInfo color
--sjs-special-yellowWarning color
VariablePurpose
--sjs-base-unitBase spacing unit
--sjs-corner-radiusBorder radius for panels, inputs, and buttons
--sjs-shadow-smallSmall shadow for inputs and minor elevated elements
--sjs-shadow-mediumMedium shadow for panels and cards
--sjs-shadow-largeLarge shadow for popups and modals
--sjs-shadow-innerInset input shadow
--sjs-border-lightSubtle separators
--sjs-border-defaultDefault borders
--sjs-border-insideInternal matrix/composite borders

Article font variables control HTML/content text inside forms. Size tiers include xx-large, x-large, large, medium, and default.

Each tier supports:

  • textDecoration
  • fontWeight
  • fontStyle
  • fontStretch
  • letterSpacing
  • lineHeight
  • paragraphIndent
  • textCase

Example variable names:

  • --sjs-article-font-default-fontWeight
  • --sjs-article-font-default-lineHeight
  • --sjs-article-font-large-fontWeight
  • --sjs-article-font-xx-large-lineHeight