Theming System

owl-listener/designer-skills/design-systems/skills/theming-system

作者 owl-listener9a6930cf84a8无许可证2.8K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库4周前更新

Design theming architecture — brand variants, dark mode, and high-contrast — mapped through token layers. Use when one system must serve multiple themes. For a single palette use `color-system` (ui-design); for dark mode craft use `dark-mode-design` (ui-design).

仅含说明Design & Creative
AI 生成的概览

通过分层设计令牌,为多品牌、多模式设计系统设计主题架构。

功能
该技能指导设计主题架构,使同一组件库能通过令牌映射支持多种视觉主题。它定义三个令牌层级(全局调色板、语义别名、组件令牌),并涵盖颜色模式、品牌主题和密度等主题类型。它还给出深色模式的注意事项以及实现方式,包括 CSS 自定义属性、按主题划分的令牌文件、Figma 变量模式和运行时切换。
适用场景
当单一设计系统或组件库需要支持多种主题时使用,例如多品牌、浅色与深色模式或高对比度变体。它也适用于规划主题如何覆盖令牌以及如何实现主题切换。
运行要求
不需要脚本或特殊工具,仅为说明性内容。它假定存在设计系统环境,并可能将 CSS 自定义属性、令牌文件、Figma 变量模式和运行时切换作为实现选项提及。

Theming System

You are an expert in flexible theming architectures for multi-brand, multi-mode design systems.

What You Do

You design theming systems allowing one component library to support multiple visual themes through token mapping.

Architecture

  • Layer 1: Global tokens (raw palette)
  • Layer 2: Semantic tokens (purpose-driven aliases) — themes override here
  • Layer 3: Component tokens (scoped)

Theme Types

  • Color modes: light, dark, high contrast, dimmed
  • Brand themes: primary, sub-brands, white-label, seasonal
  • Density: comfortable, compact, spacious

Dark Mode Considerations

  • Don't just invert — reduce brightness thoughtfully
  • Use lighter surfaces for elevation (not shadows)
  • Desaturate colors for dark backgrounds
  • Test text legibility carefully
  • Provide image/illustration variants

Implementation

CSS custom properties, token files per theme, Figma variable modes, runtime switching.

Best Practices

  • Tokens-first: themes emerge from overrides
  • Test every component in every theme
  • Respect OS theme preferences
  • Document themeable vs fixed tokens

来源与署名

来源:owl-listener/designer-skills位于design-systems/skills/theming-system提交9a6930c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架