PHPackages                             semitexa/platform-ui - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. semitexa/platform-ui

ActiveSemitexa-module[Utility &amp; Helpers](/categories/utility)

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.

2026.05.28.0607(1w ago)10MITPHPPHP ^8.4

Since May 23Pushed 1w agoCompare

[ Source](https://github.com/semitexa/semitexa-platform-ui)[ Packagist](https://packagist.org/packages/semitexa/platform-ui)[ RSS](/packages/semitexa-platform-ui/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (6)Versions (9)Used By (0)

platform-ui docs
================

[](#platform-ui-docs)

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

Quick reference — CLI
---------------------

[](#quick-reference--cli)

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

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

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

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

# CSS
platform-ui:css:build                                     # precompile full.css, baseline.css
platform-ui:css:inspect                         # scan usage, report slices + bundle size
platform-ui:css:explain            # CSS, layer, tokens referenced

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

Architecture one-liner
----------------------

[](#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.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance98

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

12d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e94044da9f4c76cc5cd09ef0c693a68065787e10d0d18edfeedbef3573a9163a?d=identicon)[syntaxwanderer](/maintainers/syntaxwanderer)

---

Top Contributors

[![needalicense](https://avatars.githubusercontent.com/u/13330467?v=4)](https://github.com/needalicense "needalicense (15 commits)")[![syntaxwanderer](https://avatars.githubusercontent.com/u/1311643?v=4)](https://github.com/syntaxwanderer "syntaxwanderer (13 commits)")[![goosyboosy](https://avatars.githubusercontent.com/u/13351014?v=4)](https://github.com/goosyboosy "goosyboosy (7 commits)")

---

Tags

ai-assistedcss-grammardesign-tokensgenerative-uillm-friendlyphpprompt-engineeringsemitexaui-librarycssuiplatformdesign-tokenssemitexa

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/semitexa-platform-ui/health.svg)

```
[![Health](https://phpackages.com/badges/semitexa-platform-ui/health.svg)](https://phpackages.com/packages/semitexa-platform-ui)
```

###  Alternatives

[livewire/flux

The official UI component library for Livewire.

9466.8M119](/packages/livewire-flux)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k44](/packages/friendsoftypo3-content-blocks)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

5085.1k16](/packages/phel-lang-phel-lang)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
