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.
How it works
Section titled “How it works”- 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--horizontalthat 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.
Loading styles
Section titled “Loading styles”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.
What’s included
Section titled “What’s included”The index.css file bundles everything you need in a single import:
| What you get | Description |
|---|---|
| Design tokens | Colors, spacing, typography, border radii, and shadows as CSS variables |
| Responsive scaling | Spacing and font sizes automatically adjust on smaller screens |
| RTL support | Right-to-left layout for Arabic, Hebrew, and similar languages |
| Form layout | Base form container that adapts to its available width |
| Input styling | Styled inputs, labels, hints, and shared field patterns |
| Component styles | Visual styles for every component (button, textinput, calendar, toggle, etc.) |
| Validation styles | Error message formatting and invalid-state indicators |
Next steps
Section titled “Next steps”- 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