semitexa/platform-ui

Semitexa Platform UI — LLM-friendly CSS grammar, design tokens, primitive components, and AI-assisted skin generation (SkinGen: LLM prompt resolver, refinement, eval scorer). Requires semitexa/theme for SkinAlgorithm contract.

Maintainers

Package info

github.com/semitexa/semitexa-platform-ui

Type:semitexa-module

pkg:composer/semitexa/platform-ui

Statistics

Installs: 0

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-05-17 14:51 UTC

This package is auto-updated.

Last update: 2026-05-20 13:29:12 UTC


README

Technical documentation for semitexa/platform-ui — grammar, primitives, and the skin-generation domain (algorithms, tokens, LLM prompt resolution).

Note: the skins:generate / skins:refine / skins:explain-prompt CLI commands ship in a sibling package, semitexa/skins-base. platform-ui owns the algorithms + token contract + LLM library; skins-base owns the CLI + the single framework-default skin. Projects generate skins into their own src/skins/ directory, served via SkinDiscovery in semitexa/theme.

  • grammar.mdsx-* / ui-* attribute reference, 9 domains, 43 slices
  • primitives.md — 6 primitives (button, input, label, field-shell, surface, badge) with variants/tones/sizes
  • technical-design.md — next-generation framework-native UI declaration architecture
  • framework-layer-improvements.md — prerequisite Semitexa Framework changes for the next-generation UI module
  • skin-generation.md — v2 generator: 3 algorithms, 41 tokens, light+dark modes, token contract, manifest schema
  • skin-algorithms.md — per-algorithm knob reference (balanced/glass/brutalist) + how to add a fourth
  • skin-refinement.mdskin:refine flow: LLM deltas vs --set, fork vs overwrite, v1 migration, history audit trail
  • ssr-integration.md — static bundles today, dynamic per-route (pending hook)
  • llm-prompt.md — shipped system prompt (with dynamic algorithm sections) + validator contract for external LLM integrations
  • skill-contract.md#[AsAiSkill] usage and internal LLM consumption

Quick reference — CLI

# Generate — deterministic (seed mode)
skins:generate <algo> <hex> [--name --mode=light|dark --knob=name:value --write]

# Generate — LLM-assisted (prompt mode). --algorithm / --knob / --mode override the LLM
skins:generate --prompt="<text>" [--name --algorithm=<id> --mode=light|dark --write]

# Refine an existing skin — LLM deltas OR structured
skins:refine <slug> --prompt="<text>" [--as=<new-slug> --write]
skins:refine <slug> --set=name:value [--set=… --as=<new-slug> --write]

# Introspect
skins:generate --describe                      # all algorithms + knob schemas
skins:explain-prompt "<text>"                  # preview LLM resolution, no CSS emission

# CSS
platform-ui:css:build                                     # precompile full.css, baseline.css
platform-ui:css:inspect <template>                        # scan usage, report slices + bundle size
platform-ui:css:explain <slice-id|primitive-id>           # CSS, layer, tokens referenced

# Eval
platform-ui:eval:run [--fail-threshold=0.8]               # run prompt-resolution eval corpus

Architecture one-liner

sx-* / ui-* attributes + multi-algorithm OKLCH skin engine (balanced / glass / brutalist, light + dark, 41 design tokens, knob-tuned, LLM-assisted or deterministic) + 6 primitives + per-request slice compilation → per-route CSS bundles typically under 3KB gzipped.