Themes
How business themes work, how to write a theme spec, how to sell a theme or a website / document template in the marketplace, how plugin UI follows the design tokens, and how content packs ship content.
课时
开发者课时以英文编写:代码、API 名称和文件名在任何地方都是英文。
- How business themes workA theme is data: palette, angle, radius, light/dark, two fonts, a home layout and an artwork style — applied to the branding settings.约 7 分钟
- Write a theme specAdd a theme to a business type, validate it with check:business and ship it through the built-in module pipeline.约 8 分钟
- Sell a theme: theme.jsonA marketplace theme is pure data: gradient, accent, radius, mode, platform fonts and header / footer choices. White text on primaryFrom needs a contrast of at least 3:1.约 7 分钟
- Follow the theme in your own UIPlugin pages and widgets pick up the active theme, light and dark mode and right-to-left layout automatically — if you use tokens.约 6 分钟
- Content packs: ready-made contentA content pack is data only — pages, FAQs, products, posts and projects keyed by slug, with company placeholders filled on import.约 6 分钟
- Industry and document templatesAn industry template is a whole website for a trade, applied by the website-starter engine; a document template is a print layout. Both are plain data, checked field by field.约 8 分钟