Skip to content
Agentmart
Submit a tool

ouds-ios-guide-figma-to-swift

How to derive a Swift token name from a Figma token path in the OUDS iOS project (raw, semantic and component tokens)

Skill by Orange-OpenSource

IndexedMIT★ 36
Write a review

Chalk Labs

Need help deploying ouds-ios-guide-figma-to-swift?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/orange-opensource-ouds-ios-guide-figma-to-swift

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

How to derive a Swift token name from a Figma token path in the OUDS iOS project (raw, semantic and component tokens)

Use cases: design, frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ouds-ios-guide-figma-to-swift

What's inside

Skill name
ouds-ios-guide-figma-to-swift
Description
How to derive a Swift token name from a Figma token path in the OUDS iOS project (raw, semantic and component tokens)
License
MIT
Instructions
143 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Skill: ouds-ios-guide-figma-to-swift

## 1. Quick-reference cheat sheet

```
PATH ANATOMY
  core-ouds/<family>/<id>                          → raw token
  ouds/<category>/…                                → semantic token  (no 1f4a0_)
  ouds/1f4a0_<group>/<component-name>/<sub-path>   → component token

LAYER DETECTION
  core-ouds/…          → Layer 1 raw   → <Family>RawTokens._<id>
  ouds/… no 1f4a0_     → Layer 2 sem   → theme.<provider>.<name>
  ouds/… with 1f4a0_   → Layer 3 comp  → theme.<component>.<name>

STOP IMMEDIATELY (no Swift equivalent)
  any segment has 🚧 or 1f6a7_          → WIP token
  ouds/grid/<x>/ where <x> ≠ ios        → non-iOS grid

PROPERTY NAME (apply in order)
  1. Drop layer prefix + provider/component segment
  2. Strip emoji prefixes from segments: 1f4c4_ (📄)  1f525_ (🔥)
  3. Each segment: kebab-case → TitleCase
  4. Join all, lowercase first letter
  5. -light / -dark suffix pair → drop suffix, single property (MultipleColorSemanticToken)
  6. /mobile  /tablet → keep as …Mobile / …Tablet (separate properties)
  7. Numeric qualifiers 2x 3x 4x 5x → stay lowercase as-is (3xsmall not 3Xsmall)
  8. Semantic provider: do NOT repeat the domain in the property name
  9. button-mono → theme.button, prepend "mono" to property name
```

---

## 2. Provider tables

### Layer 2 — Semantic providers

| Figma prefix | `theme.` property | Notes |
|---|---|---|
| `ouds/border/` | `borders` | |
| `ouds/color/` | `colors` | |
| `ouds/color/mode/` | `colorModes` | |
| `ouds/color/chart/` | `colorsCharts` | |
| `ouds/color/decorative/` | `colorsDecorative` | |
| `ouds/dimension/` | `dimensions` | |
| `ouds/effect/` | `effects` | |
| `ouds/elevation/` | `elevations` | |
| `ouds/font/` | `fonts` | |
| `ouds/grid/ios/` | `grids` | `ios/` segment dropped from property name |
| `ouds/opacity/` | `opacities` | |
| `ouds/size/` | `sizes` | |
| `ouds/space/` | `spaces` | |

### Layer 3 — Component providers

The `1f4a0_<group>/` segment is always dropped. `<component-name>` → lowerCamelCase = `theme.` property.

| Figma `<component-name>` | `theme.` property |
|---|---|
| `button` | `button` |
| `button-mono` | `button` (mono — prepend `mono` to property) |
| `text-input` | `textInput` |
| `text-area` | `textArea` |
| `pin-code-input` | `pinCodeInput` |
| `password-input` | `passwordInput` |
| `checkbox` | `checkbox` |
| `radio-button` | `radioButton` |
| `switch` | `switch` |
| `chip` | `chip` |
| `select-input` | `selectInput` |
| `quantity-input` | `quantityInput` |
| `badge` | `badge` |
| `tag` | `tag` |
| `input-tag` | `inputTag` |
| `link` | `link` |
| `list-item` | `listItem` |
| `bar` | `bar` |
| `skeleton` | `skeleton` |
| `alert` | `alert` |
| `divider` | `divider` |
| `bullet-list` | `bulletList` |
| `icon` | `icon` |

### Layer 1 — Raw token families

| Figma prefix | Swift type |
|---|---|
| `core-ouds/dimension/` | `DimensionRawTokens` |
| `core-ouds/font/` | `FontRawTokens` |
| `core-ouds/color/` | `ColorRawTokens` |
| `core-ouds/border/` | `BorderRawTokens` |
| `core-ouds/elevation/` | `ElevationRawTokens` |
| `core-ouds/grid/` | `GridRawTokens` |
| `core-ouds/opacity/` | `OpacityRawTokens` |
| `core-ouds/effect/` | `EffectRawTokens` |

Numeric-only IDs get a leading underscore: `core-ouds/dimension/750` → `DimensionRawTokens._750`

---

## 3. Critical rules

**R5 — Light/dark pairs → single property**
`color/border/enabled-light` + `-dark` → `colorBorderEnabled: MultipleColorSemanticToken` (drop suffix)

**R6 — Mobile/tablet → separate properties**
`space/scaled/3xsmall/mobile` → `scaled3xsmallMobile` | `…/tablet` → `scaled3xsmallTablet`

**R7 — Strip emoji annotation prefixes**
`1f4c4_` (📄) and `1f525_` (🔥) are stripped from the segment, name kept.
`1f4a0_` (💠) and `1f6a7_` (🚧) are NOT stripped — they control layer detection and WIP exclusion.

**R8 — Semantic: domain NOT repeated in property name**
`ouds/border/width/focus` → `theme.borders.widthFocus` (not `borderWidthFocus`)
Component tokens are different: domain IS repeated → `theme.button.borderWidthDefault`

---

## 4. Examples

From Orange-OpenSource/ouds-ios, MIT.

More from Orange-OpenSource/ouds-ios

Signals

Stars
36
Forks
12
Open issues
163
Last commit (this folder)
Jul 23, 2026 (3 months ago)
Last release
Oct 21, 2026 (10 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Orange-OpenSource

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get ouds-ios-guide-figma-to-swift running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying ouds-ios-guide-figma-to-swift?

CallGet help
Cite this page

ouds-ios-guide-figma-to-swift skill. Agent Mart. https://agentmart.dev/skills/orange-opensource-ouds-ios-guide-figma-to-swift (last updated 2026-10-24)