themes-lcars/registration.go
Alex Dunmow e992d8247d feat: LCARS theme plugin — Star Trek computer interface
First-class pongo2 theme with 4 color presets (Federation, Red Alert,
Sickbay, Engineering), 3 custom blocks (header, sidebar, panel),
2 page templates, heading/text overrides, email wrapper, bundled
Antonio font, and full LCARS CSS with elbow brackets, pill buttons,
and rounded bars.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-02 23:11:11 +08:00

25 lines
795 B
Go

package main
import (
"io/fs"
"net/http"
"git.dev.alexdunmow.com/block/core/blocks"
"git.dev.alexdunmow.com/block/core/plugin"
"git.dev.alexdunmow.com/block/core/templates"
)
var Registration = plugin.PluginRegistration{
Name: "lcars",
Version: plugin.ParseModVersion(pluginModBytes),
Register: func(tr templates.TemplateRegistry, br blocks.BlockRegistry) error {
return Register(tr, br)
},
Assets: func() http.Handler { return AssetsHandler() },
Schemas: func() fs.FS { return SchemasFS() },
ThemePresets: func() []byte { return ThemePresets() },
BundledFonts: func() []byte { return BundledFonts() },
MasterPages: func() []plugin.MasterPageDefinition { return DefaultMasterPages() },
CSSManifest: func() *plugin.CSSManifest { return ThemeCSSManifest() },
}