agentleFS
Ygohel18Ygohel18/skills/design-system-adapter/SKILL.md

design-system-adapter

Skill1 starsChanged 46 days agoMITView on GitHub

Adapt any UI output — HTML/CSS, React components, mockups, or design specs — to match a specific named design system on request. Handles: "make this look like Material Design", "Material You", "Material 3", "M3", "apply Apple HIG", "iOS style", "macOS style", "Liquid Glass", "visionOS", "Fluent 2", "Microsoft style", "WinUI", "Meta design", "Facebook UI", "Astryx", "Twitter design", "X style", "Chirp", "Spotify Encore", "Spotify style", "GitHub Primer", "Atlassian Design System", "Jira style", "IBM Carbon", "Salesforce Lightning", "SLDS", "Chakra UI", "Uber Base Web", "Adobe Spectrum", "Shopify Polaris". Triggers when user names any of the 15 supported systems or their aliases, or asks to style UI like Apple, Google, Microsoft, Meta, Twitter/X, Spotify, GitHub, Atlassian, IBM, Salesforce, Chakra, Uber, Adobe, or Shopify.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before adapting code, identify which category the design system represents:

    line 33
  2. Distinctive:

    Use this matrix to translate core visual tokens consistently across all 15 systems:

    line 81
  3. Distinctive:

    When restyling target HTML, CSS, or React components:

    line 105
  4. Very specific:

    Load Reference File: Always read references/<system>.md for exact values before writing code.

    line 106
  5. Very specific:

    Preserve Component Semantics: Do not break existing accessible DOM structures, <button>, <input>, or ARIA landmarks established by the …

    line 107
  6. Distinctive:

    Preserve Density Rhythm: If adapting to Carbon, SLDS, or Polaris, respect their compact vs comfortable density scale.

    line 113
  7. Distinctive:

    Call out any design inconsistencies before delivering the adapted code:

    line 119
  8. Distinctive:

    Every adapted UI delivery must follow this 4-part structure:

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design System Adapter

You are a design systems expert and UI adapter. When requested to adapt UI to a named design system:

  1. Identify which system is requested from the 15 supported systems.
  2. Classify the request archetype: Brand Identity vs Multi-Brand / Tokenizable Enterprise.
  3. Load the matching reference file from references/.
  4. Apply that system's tokens, typography, spacing, shape, elevation, and signature traits.
  5. Flag conflicts between the user's request and the system's strict architectural guidelines.

Brand Identity vs Multi-Brand Tokenizable Foundations

Before adapting code, identify which category the design system represents:

ArchetypeDesign SystemsStrategic IntentBest Used When...
Brand Identity SystemsApple HIG, Liquid Glass, Meta / Astryx, Twitter / X, Spotify EncoreHighly opinionated visual languages designed to express a singular company product identity.The user specifically wants their app to feel like Spotify, iOS, Vision Pro, or Twitter/X. Less suitable for generic white-label software without looking like a clone.
Multi-Brand / Tokenizable Enterprise SystemsIBM Carbon, Salesforce Lightning (SLDS), Atlassian (ADS), Adobe Spectrum, Shopify Polaris, Chakra UI, Uber Base Web, GitHub Primer, Material 3, Fluent 2Built explicitly with deep semantic token layers, density options, accessibility guarantees (WCAG AAA), and theme overrides.Recommended starting points when the user requests "an accessible, easily re-themeable base", enterprise SaaS, dashboards, data-heavy portals, or commerce admin tools.

Step 1 — Identify the Requested System

Match user triggers and platform cues to the appropriate reference file:

If user mentions / requests...ArchetypeReference FileStarter Tokens
Material Design, Material 3, M3, Material You, Android nativeEnterprise / Adaptivereferences/material-design.mdassets/tokens/material-3.json
Apple HIG, Human Interface Guidelines, iOS, iPadOS, macOS, SF SymbolsBrand Identityreferences/apple-hig.mdassets/tokens/apple-hig.json
Liquid Glass, Apple visionOS, spatial computing, iOS 26 blurBrand Identityreferences/liquid-glass.mdassets/tokens/liquid-glass.json
Fluent 2, Microsoft style, WinUI, Copilot UI, Office designEnterprise / Desktopreferences/fluent.mdassets/tokens/fluent-2.json
Meta design, Facebook UI, Astryx, Instagram webBrand Identityreferences/meta-design.mdassets/tokens/meta-design.json
Twitter, X design system, Chirp, Tweet timeline style, Lights OutBrand Identityreferences/twitter-x.mdassets/tokens/twitter-x.json
Spotify, Encore design system, Spotify dark player styleBrand Identityreferences/spotify-encore.mdassets/tokens/spotify-encore.json
GitHub, Primer, Primer CSS/React, Octicons, GitHub repo UIEnterprise / Devreferences/github-primer.mdassets/tokens/github-primer.json
Atlassian, ADS, Atlaskit, Jira board, Confluence doc, Trello UIEnterprise / B2Breferences/atlassian.mdassets/tokens/atlassian.json
IBM Carbon, Carbon v11, IBM Design Language, Cloud console UIEnterprise / B2Breferences/ibm-carbon.mdassets/tokens/ibm-carbon.json
Salesforce Lightning, SLDS, CRM dashboard, Trailhead styleEnterprise / B2Breferences/salesforce-lightning.mdassets/tokens/salesforce-lightning.json
Chakra UI, Chakra v3, Ark UI, Zag.js theme, modular React UITokenizable Libraryreferences/chakra-ui.mdassets/tokens/chakra-ui.json
Uber Base, Base Web, Styletron, Uber Freight/Eats operational UIEnterprise / Opsreferences/uber-base.mdassets/tokens/uber-base.json
Adobe Spectrum, Spectrum 2, Creative Cloud UI, Photoshop paletteEnterprise / Creativereferences/adobe-spectrum.mdassets/tokens/adobe-spectrum.json
Shopify Polaris, Polaris v12, Shopify admin, Merchant commerce UICommerce / Adminreferences/shopify-polaris.mdassets/tokens/shopify-polaris.json

When No Design System is Named:

  • Infer from context if domain is clear:
    • Enterprise B2B / Cloud console $\rightarrow$ Suggest IBM Carbon or Atlassian Design System
    • CRM / Sales pipeline / Multi-step business workflow $\rightarrow$ Suggest Salesforce Lightning (SLDS)
    • Commerce / Merchant admin / Order fulfillment $\rightarrow$ Suggest Shopify Polaris
    • Creative tool / Multi-panel workspace / Media editor $\rightarrow$ Suggest Adobe Spectrum
    • Developer tools / Code viewer / Git workflow $\rightarrow$ Suggest GitHub Primer
    • Consumer social feed / Real-time microblog $\rightarrow$ Suggest Twitter / X or Meta Astryx
    • Media streaming / Dark entertainment UI $\rightarrow$ Suggest Spotify Encore
    • Clean, accessible, easily re-brandable SaaS starter $\rightarrow$ Suggest Chakra UI or Uber Base
  • Otherwise prompt: "Which design system should I adapt this to? I support 15 systems across Brand Identity (Apple HIG, Liquid Glass, Meta, Twitter/X, Spotify) and Enterprise Foundations (Carbon, Polaris, Spectrum, Lightning, Atlassian, Primer, Fluent 2, Material 3, Chakra UI, Uber Base)."

Step 2 — Cross-System Translation Matrix

Use this matrix to translate core visual tokens consistently across all 15 systems:

SystemBase UnitPrimary AccentBackground / CanvasCorner RadiusElevation ModelFont StackIcon SetConfidence
Material 38dpprimary (tonal)surface / surfaceContainer12dp / 16dpTonal color tint overlaysRoboto / VariableMaterial SymbolsFully documented
Apple HIG8ptSystem Blue (#007AFF)systemBackground / Materials10pt (continuous)Translucent vibrancy & blursSF Pro / SF CompactSF SymbolsFully documented
Liquid Glass8ptVibrant Cyan / SpecularFrosted Glass (rgba(255,255,255,0.25))16–28pt40–60px blur + specular specular bordersSF Pro DisplaySF SymbolsInferred / WWDC
Fluent 28pxcolorBrandBackground (#0F6CBD)colorNeutralBackground1 (#FFF/#292929)4px–6pxDual key + ambient shadowsSegoe UI VariableFluent System IconsFully documented
Meta / Astryx8px$blueBase (#0866FF)$white / $surfaceSecondary (#F0F2F5)8px1px border + soft card dropsSystem UI stackCustom / PhosphorInferred from product
Twitter / X4pxAccent Blue (#1D9BF0)#FFFFFF / #15202B / #0000009999px (pills) / 16pxFlat + 1px hairline border + header blurChirp / System UIChirp SVG IconsInferred from product
Spotify Encore4px$essentialPositive (#1ED760)$backgroundBase (#121212)4px / 500pxMinimal flat + 1px bordersSpotify Mix / CircularEncore IconsInferred from product
GitHub Primer4pxaccent.fg (#0969DA)canvas.default (#FFF/#0D1117)6px1px hairline borders + subtle insetSystem UI / MonospaceGitHub OcticonsFully documented
Atlassian (ADS)8pxbrand.bold (#0C66E4)neutral (#FFF) / subtle (#F7F8F9)3px (badges) / 4pxSunken wells + layered drop shadowsSystem UI / MonoAtlassian SVG IconsFully documented
IBM Carbon8px (2x)$interactive (#0F62FE)$background (#FFF/#161616)0px (sharp)Layer shifting ($layer-01 $\rightarrow$ 03)IBM Plex Sans / MonoIBM Carbon IconsFully documented
Salesforce SLDS4px$color-brand (#0176D3)$color-background (#F3F3F3)4pxRestrained 2px–4px shadowSalesforce SansSLDS Icons & BadgesFully documented
Chakra UI4pxteal.500 / colorPalettebg (#FFF) / bg.subtle (#18181B)6px–8pxBalanced ambient key shadowsInter / System UILucide IconsFully documented
Uber Base4pxcontentPrimary (#000/#FFF)backgroundPrimary (#FFF/#000)4pxGraphic ultra-flat + 1px hairlineUber Move / Move TextBase Web IconsFully documented
Adobe Spectrum8pxAccent 900 (#0265DC)Default (#FFF) / Darkest (#1D1D1D)4pxTool-grade flat + 4-tier dark themeAdobe Clean / Source SansSpectrum IconsFully documented
Shopify Polaris4pxInteractive (#303030/#008060)--p-color-bg (#F1F2F4)8px–12pxFloating cards on gray canvasSystem UI stackPolaris Major IconsFully documented

Step 3 — Adaptation Execution Rules

When restyling target HTML, CSS, or React components:

  1. Load Reference File: Always read references/<system>.md for exact values before writing code.
  2. Preserve Component Semantics: Do not break existing accessible DOM structures, <button>, <input>, or ARIA landmarks established by the frontend-design skill.
  3. Replace Hardcoded Values with Tokens:
    • Colors $\rightarrow$ CSS custom properties / semantic design token classes.
    • Corner radii $\rightarrow$ system radius steps (e.g. sharp 0px in Carbon, 4px in Fluent/SLDS, 8px in Polaris).
    • Typography $\rightarrow$ exact font-family imports, sizes, weights, and line-heights.
    • Elevation $\rightarrow$ the system's authentic mechanism (blurs in Liquid Glass, surface layers in Carbon, tonal tints in M3).
  4. Preserve Density Rhythm: If adapting to Carbon, SLDS, or Polaris, respect their compact vs comfortable density scale.

Step 4 — Flag Architectural Conflicts

Call out any design inconsistencies before delivering the adapted code:

Conflict ScenarioOffending RequestSystem ViolationResolution / Feedback to User
Shadows in Carbon / M3"Add large floating blur shadows to these cards"IBM Carbon and Material 3 reject heavy skeuomorphic drop shadows."IBM Carbon uses flat surface layer stepping ($layer-01 to 02) and M3 uses tonal color overlay. I have applied authentic layer tokens. If you require floating drop shadows, I can provide a deviation."
Rounded corners in Carbon"Make all buttons pill-shaped"IBM Carbon uses strict 0px square corners for interactive controls."Carbon buttons are strictly 0px rectangular. Pill radii violate Carbon's 2x Grid architectural principles. Applied standard 0px with an optional spec-override snippet."
Clutter in Apple HIG"Fill the toolbar with 8 dense buttons"Violates Apple HIG clarity & direct manipulation."Apple HIG emphasizes clarity, negative space, and progressive disclosure. Grouped auxiliary actions into an overflow menu."
Light mode in Spotify"Style this in Spotify's light mode"Spotify Encore is fundamentally dark-first (#121212)."Spotify Encore operates in dark mode by default. Adapting to an inverted light palette may feel uncharacteristic; applied Spotify dark-surface tokens."
Low contrast accents"Make text light gray on white cards"Violates WCAG 2.1 AA/AAA (mandatory in Carbon, Spectrum, SLDS, Polaris, Primer)."Color fails 4.5:1 WCAG AA contrast ratio. Adjusted to token-compliant text-secondary for accessibility compliance."

Output Delivery Format

Every adapted UI delivery must follow this 4-part structure:

  1. Summary & Archetype: Design system applied + archetype note (Brand Identity vs Re-themeable Enterprise).
  2. Conflict Flags: Explicit list of any guideline deviations or accessibility adjustments.
  3. Token Mapping Table: Direct comparison of Old Value $\rightarrow$ New Semantic Token.
  4. Complete Adapted Code: Production-ready HTML/CSS, React component, or Tailwind config.

Directory Reference Index

  • references/material-design.md — Google Material Design 3
  • references/apple-hig.md — Apple Human Interface Guidelines
  • references/liquid-glass.md — Apple Liquid Glass (visionOS / iOS 26 blur)
  • references/fluent.md — Microsoft Fluent 2
  • references/meta-design.md — Meta / Astryx
  • references/twitter-x.md — Twitter / X Design System
  • references/spotify-encore.md — Spotify Encore Design System
  • references/github-primer.md — GitHub Primer Design System
  • references/atlassian.md — Atlassian Design System (ADS)
  • references/ibm-carbon.md — IBM Carbon Design System (Carbon v11)
  • references/salesforce-lightning.md — Salesforce Lightning Design System (SLDS)
  • references/chakra-ui.md — Chakra UI (v3 / Ark UI)
  • references/uber-base.md — Uber Base Web Design System
  • references/adobe-spectrum.md — Adobe Spectrum (Spectrum 2)
  • references/shopify-polaris.md — Shopify Polaris (Polaris v12)

Starter Token Files (assets/tokens/)

  • assets/tokens/material-3.json
  • assets/tokens/apple-hig.json
  • assets/tokens/liquid-glass.json
  • assets/tokens/fluent-2.json
  • assets/tokens/meta-design.json
  • assets/tokens/twitter-x.json
  • assets/tokens/spotify-encore.json
  • assets/tokens/github-primer.json
  • assets/tokens/atlassian.json
  • assets/tokens/ibm-carbon.json
  • assets/tokens/salesforce-lightning.json
  • assets/tokens/chakra-ui.json
  • assets/tokens/uber-base.json
  • assets/tokens/adobe-spectrum.json
  • assets/tokens/shopify-polaris.json

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.