Theming

Customize colors, dark mode, and high contrast.

Color Scheme

Pass colorScheme to the provider:

<AdwaitaProvider colorScheme="dark" icons={icons}>
  {/* Always dark */}
</AdwaitaProvider>

Options: "light", "dark", "auto" (follows prefers-color-scheme).

Accent Color

Override the default GNOME blue accent:

<AdwaitaProvider accentColor="#e66100" icons={icons}>
  {/* Orange accent */}
</AdwaitaProvider>

This sets --accent-bg-color on the root.

High Contrast

<AdwaitaProvider highContrast icons={icons}>
  {/* Stronger borders and contrast */}
</AdwaitaProvider>

CSS Custom Properties

The Adwaita theme exposes many CSS custom properties you can override:

PropertyPurpose
--accent-bg-colorPrimary accent background
--accent-fg-colorText on accent backgrounds
--window-bg-colorWindow background
--window-fg-colorWindow text
--view-bg-colorContent area background
--view-fg-colorContent area text
--headerbar-bg-colorHeader bar background
--card-bg-colorCard/boxed-list background

Box Model

GTK uses content-box sizing. The reset CSS applies box-sizing: content-box to all elements inside the provider. This means min-height and min-width refer to content only — padding is added on top.

On this page