Enhancing `DESIGN.md`'s component definition capabilities to support structured variations (variants).
Raw Developer Origin & Technical Request
GitHub Issue
Apr 22, 2026
### Summary
Introduce structured support for component variations (variants) in DESIGN.md to allow more expressive, scalable, and semantically rich component definitions beyond flat key-based naming.
### Motivation
Currently, component variants (e.g. hover, active, size variations) are represented as separate component entries using naming conventions:
```yaml
components:
button-primary:
backgroundColor: "{colors.tertiary}"
button-primary-hover:
backgroundColor: "{colors.tertiary-container}"
```
### Proposal
Add a variants field under components to explicitly model variations:
```yaml
components:
button:
base:
backgroundColor: "{colors.tertiary}"
textColor: "{colors.on-tertiary}"
rounded: "{rounded.sm}"
padding: 12px
variants:
intent:
primary:
backgroundColor: "{colors.tertiary}"
secondary:
backgroundColor: "{colors.secondary}"
size:
sm:
padding: 8px
md:
padding: 12px
lg:
padding: 16px
state:
hover:
backgroundColor: "{colors.tertiary-container}"
active:
backgroundColor: "{colors.primary}"
disabled:
backgroundColor: "{colors.neutral}"
```
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from google-labs-code/design.md.
Frequently Asked Questions
Market intelligence mapped to Enhancing `DESIGN.md`'s component definition capabilities to support structured variations (variants)..
What is the technical positioning of Enhancing `DESIGN.md`'s component definition capabilities to support structured variations (variants).?
Which technical concepts are associated with Enhancing `DESIGN.md`'s component definition capabilities to support structured variations (variants).?
How does the GitHub community build with Enhancing `DESIGN.md`'s component definition capabilities to support structured variations (variants).?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like base and state by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics