semitexa/platform-ui 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

semitexa/platform-ui

Composer 安装命令:

composer require semitexa/platform-ui

包简介

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

README 文档

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.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固