theme

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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

func (m *Manager) ThemeBodyClass() string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL