Skip to content

Styling Overview

GolemUI is a Headless CSS library with a courtesy layer. The default theme ships as plain CSS that you can use as-is, override selectively, or remove entirely. No matter what you do with the styles, components always work — ARIA attributes, keyboard navigation, event handling, and state management are baked into the components themselves, not the CSS.

  • Standard CSS — You can target any element with regular CSS selectors. No special techniques, no piercing, no workarounds needed.
  • Predictable class names — Components use consistent classes like .gui-form, .gui-widget, .gui-button, .gui-repeater__card, and .gui-widget--horizontal that you can target directly.
  • CSS custom properties — The entire design system is expressed through CSS variables defined on :root. Change a variable, and every component that references it updates automatically.

Import the CSS file in your project:

@import '@golemui/gui-components/index.css';

That single import gives you the full courtesy layer — every component is styled and ready to use.

The index.css file bundles everything you need in a single import:

What you getDescription
Design tokensColors, spacing, typography, border radii, and shadows as CSS variables
Responsive scalingSpacing and font sizes automatically adjust on smaller screens
RTL supportRight-to-left layout for Arabic, Hebrew, and similar languages
Form layoutBase form container that adapts to its available width
Input stylingStyled inputs, labels, hints, and shared field patterns
Component stylesVisual styles for every component (button, textinput, calendar, toggle, etc.)
Validation stylesError message formatting and invalid-state indicators
  • Design Tokens — Complete reference of all CSS variables
  • Theming — Dark mode, built-in themes, and creating your own
  • Customization — Override styles with variables, classes, or go fully headless
  • Responsive & RTL — Breakpoints, container queries, and right-to-left support
  • Icon Customization — Webfont ligatures, SVGs, images, and mixed icon strategies