Package org.patternfly.componentgroup.theme
package org.patternfly.componentgroup.theme
Provides theme, color scheme, and contrast management for PatternFly applications.
This package contains a color and theme system that manages PatternFly visual themes (default, felt),
color schemes (system, light, dark), and contrast modes (system, default, high contrast, glass). Preferences
are persisted in local storage and respond to system-level media queries such as prefers-color-scheme
and prefers-contrast.
Key classes:
ThemeSelector- UI component for selecting theme, color, and contrastThemeManager- manages preference persistence and CSS class applicationColor- color scheme options (system, light, dark)Contrast- contrast mode options (system, default, high contrast, glass)Theme- theme variant options (default, felt)
Usage
ThemeSelector selector = themeSelector()
.placement(bottom);
- See Also:
-
ClassesClassDescriptionA composite component that lets users select color scheme, contrast, and theme preferences.