Documentation
¶
Overview ¶
Package theme provides a dashboard-specific wrapper around the forgeui theme system. It stores theme configuration (mode, custom CSS) for the Forge dashboard shell.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles theme configuration for the dashboard shell.
func NewManager ¶
func NewManager(config ThemeConfig) *Manager
NewManager creates a new theme manager with the given configuration.
func (*Manager) Config ¶ added in v1.0.0
func (m *Manager) Config() ThemeConfig
Config returns the current theme configuration.
func (*Manager) ThemeBodyClass ¶
ThemeBodyClass returns CSS classes for the <body> tag based on the theme mode.
- "light" mode: returns "" (no dark class needed)
- "dark" mode: returns "dark" (forces dark theme)
- "auto" mode: returns "" (Alpine.js / DarkModeScript handles the toggle at runtime)
type ThemeConfig ¶
type ThemeConfig struct {
Mode string // "light", "dark", "auto"
CustomCSS string // user-provided custom CSS to inject
}
ThemeConfig holds dashboard-specific theme configuration.
func DefaultThemeConfig ¶
func DefaultThemeConfig() ThemeConfig
DefaultThemeConfig returns the default theme config.
Click to show internal directories.
Click to hide internal directories.