Versions in this module Expand all Collapse all v0 v0.2.0 Oct 19, 2026 Changes in this version type DevResult + Built Built + ContractSource []byte v0.1.0 Oct 14, 2026 Changes in this version + var Breaks = []Break + var ErrOutdated = errors.New("themecore is older than the contract") + var Features = []Feature + func Builtins() []string + func CheckSource(dir string, contract []byte) (Package, BuildReport, error) + func Checksums(p Package) ([]byte, error) + func DetectorCorpus() error + func FallbackCSS() []byte + func FallbackSource() []byte + func MarkdownElements() []string + func TOMLConformance() error + func ThemeAPICurrent() int + func ThemeAPIMin() int + func Transform(css []byte) (out []byte, err error) + func Verify(css []byte) error + func VerifyChecksums(p Package) error + type AttributeTable struct + func CompileAttributes(b []byte, c Contract) (AttributeTable, error) + func (t AttributeTable) Lookup(layout, builtin string, chain []compono.Frame) map[string]string + func (t AttributeTable) Root(layout string) map[string]string + type Author struct + Name string + URL *string + type Break struct + At int + Reason string + type BuildReport struct + Evidence []Signal + Version int + Warnings []Warning + type Built struct + BuiltAt time.Time + ThemeAPIVersion int + func ParseBuilt(b []byte) (Built, error) + func (b Built) CheckInstallDir(dir string) error + type Component struct + Expose bool + Name string + Source string + type Contract struct + Components []Component + Description *string + ID string + Layouts []Layout + Schema string + Version string + func ParseContract(b []byte) (Contract, error) + type DetectorFunc func(p Package) (where string, found bool) + type DevResult struct + AssetErrs map[string]error + Attributes AttributeTable + AttributesErr error + CSS []byte + CSSErr error + Contract Contract + Evidence []Signal + Floor int + func CheckDev(dir, root string) (DevResult, error) + type Feature struct + Detect DetectorFunc + ID string + IntroducedIn int + type Layout struct + Description *string + ID string + Source string + type Manifest struct + Authors []Author + Contract string + Description *string + Homepage *string + ID string + License *string + Name string + Repository *string + Schema string + Version string + func ParseManifest(b []byte) (Manifest, error) + type Package struct + Files map[string][]byte + func ReadDir(dir string) (Package, error) + func ReadZip(r io.ReaderAt, size int64) (Package, error) + type Result struct + Attributes AttributeTable + Contract Contract + Evidence []Signal + Floor int + func CheckPackage(p Package) (Result, error) + type Signal struct + Feature string + IntroducedIn int + Where string + func DetectFeatureFloor(p Package) (floor int, evidence []Signal, err error) + func DetectThemeAPIVersion(p Package) (version int, evidence []Signal, err error) + type Warning struct + Message string + Where string + func Lint(p Package) []Warning