If you're working with WeChat mini-programs and migrating from WebView to Skyline rendering, this maps out exactly which CSS properties work and which don't. It covers the gotchas like text-overflow only working on text components, gradients having weird unit restrictions, and display:grid just being ignored. The CLI integration is smart, letting you validate WXSS files before deployment. Most useful when you're debugging why styles aren't rendering or planning a Skyline migration, since it documents non-standard defaults like display:flex and position:relative. Saves you from trial-and-error testing against Skyline's partial CSS support.

skills.sh installs
999
GitHub stars
56
last updated
Aug 21, 2026

Install

$ npx -y skills add wechat-miniprogram/skyline-skills --skill skyline-wxss --agent claude-code

Installs into .claude/skills of the current project.

Files

Skyline WXSS 样式支持

适用场景

  • 检查某个 CSS 属性/值在 Skyline 下是否可用
  • 排查 WXSS 样式在 Skyline 下不生效的问题
  • 从 WebView 迁移到 Skyline 时评估样式兼容性
  • 使用渐变、滤镜、遮罩等高级样式时了解限制
  • 查阅 Skyline 支持的 CSS 属性语法

文档索引

我想要...查阅文档
查看基础数据类型与语法符号references/basics.md
查看布局/定位/盒模型语法references/layout.md
查看 Flex 布局语法references/flex.md
查看背景/边框/滤镜/遮罩语法references/visual.md
查看文本/字体语法references/text.md
查看动画/过渡/变换语法references/animation.md
查看某属性是否支持本文档 Quick Reference
了解渐变/滤镜的具体限制本文档「渐变与滤镜限制」规则
检查 WXSS 语法本文档 「WXSS CLI」

WXSS CLI

请务必调用 skyline CLI 对 WXSS 进行检查,确保用法正确。

npx skyline-cli --help

列出所有支持的 WXSS 属性

npx skyline-cli wxss list

从 stdin 读取 WXSS 文本并检查语法

echo "view { color: red;  }" | npx skyline-cli wxss check --json

检查小程序工程内的 WXSS 文件

npx skyline-cli wxss check --json --miniprogram-root ${PROJECT_ROOT} --files pages/index/index.wxss pages/list/list.wxss

强制规则

NEVER: 使用不支持的 CSS 属性

以下属性设置后不生效:

Sponsors

Details

Repository
github.com/wechat-miniprogram/skyline-skills
Categories
Frontend Development, Code Review & Quality, Design & UI/UX
First seen
Jun 3, 2026

More from wechat-miniprogram/skyline-skills

All 7
1github avatarreact19-source-patternsgithub/awesome-copilotReference for React 19 source-file migration patterns, including API changes, ref handling, and context updates.993skills.sh installs
2daymade avatarvideo-comparerdaymade/claude-code-skillsThis skill should be used when comparing two videos to analyze compression results or quality differences. Generates interactive HTML reports with quality metri990skills.sh installs
3chrisbanes avatarcompose-state-deferred-readschrisbanes/skillsUse when Jetpack Compose code reads scroll, animation, gesture, or other frame-rate State in composition, passes changing values across composable boundaries, u989skills.sh installs
4ailabs-393 avatarcicd-pipeline-generatorailabs-393/ai-labs-claude-skillsThis skill should be used when creating or configuring CI/CD pipeline files for automated testing, building, and deployment. Use this for generating GitHub Acti982skills.sh installs
5davila7 avatarlangchaindavila7/claude-code-templatesFramework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct 969skills.sh installs
6cap-go avatarcapacitor-mcpcap-go/capgo-skillsModel Context Protocol (MCP) tools for Capacitor mobile development. Covers Ionic/Capacitor component APIs, plugin documentation, CLI commands, and AI-assisted 961skills.sh installs