using-design-system

Solid

Ensures consistent use of X-components design system instead of Material3 when working on feature UI code. Automatically activates for Composable functions in feature modules or when user mentions UI/screens/components.

Web & Frontend 37 stars 5 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
53
Recency 20%
90
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Using Design System Use X-components from `:core:designsystem` instead of Material3 in feature modules. **Architecture Reference:** @../_shared/patterns.md ## Design-Aware Mode If a Stitch design blueprint exists (`.claude/docs/{featurename}/designs/{featurename}_blueprint.md` with `blueprintConsumed == false` in `stitch-project.json.features[featurename]`), implementation skills auto-detect it and use the blueprint's component tree for UI implementation. This skill provides component mappings for existing code. ## Core Rule **X-components ONLY in features. NO Material3 components.** ## Common Replacements | Material3 | X-component | |-----------|-------------| | `Button` | `XButton` (7 variants) | | `TextField` | `XTextField` | | `Text` | `XText` | | `Scaffold` (feature screen) | `XScreen` (Rule 13 — `XScaffold` is app-shell only) | | `CircularProgressIndicator` | `XCircularProgressIndicator` | | `coil3.compose.AsyncImage` | `{CORE_DESIGNSYSTEM_PKG}.AsyncImage` | Full mappings: @references/component-mappings.md Usage examples: @references/usage-examples.md ## Key Rules 1. **Imports**: `import {CORE_DESIGNSYSTEM_PKG}.*` (avoid Material3 in features) 2. **4-State UI**: Uninitialized → Loading → Success → Failed (mandatory) 3. **Theme**: Never wrap screens in `XTheme` (app-level only). Feature screens use `XScreen` (Rule 13) — never a `Scaffold`/`XScaffold`, which would nest a second Scaffold and double the insets 4. **Navigation**: Use `XNavHost` (pre-configured a...

Details

Author
ThisIsSadeghi
Repository
ThisIsSadeghi/KMPilot
Created
6 months ago
Last Updated
1 weeks ago
Language
Kotlin
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category