server

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(port int, dir string, mode ServerMode) *Server

func (*Server) Start

func (s *Server) Start() error

type ServerMode

type ServerMode string

ServerMode determines the operational mode of the server.

const (
	ModeBuild ServerMode = "build"
	ModePlan  ServerMode = "plan"
)

type Theme

type Theme struct {
	Directory    string `json:"directory"`
	PrimaryColor string `json:"primaryColor"` // hex input from user, e.g. "#6366f1"
	Accent       string `json:"accent"`       // --accent
	AccentHover  string `json:"accentHover"`  // --accent-hover
	AccentSoft   string `json:"accentSoft"`   // --accent-soft (rgba)
	AccentRing   string `json:"accentRing"`   // --accent-ring (rgba)
	OnPrimary    string `json:"onPrimary"`    // text color on accent bg
	Glow         string `json:"glow"`         // --glow (rgba, for background accents)
	Tint         string `json:"tint"`         // --tint (rgba, ~5% for sidebar/header)
}

Theme holds a per-directory color palette derived from a user-chosen primary color.

Jump to

Keyboard shortcuts

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