/utopia-design:importfrom Utopia Design
Bring an external design source into a utopia_ui project's design/tokens.json: a Figma DTCG export, a foreign tokens.css / Tailwind @theme, a Claude Design handoff bundle, or a DESIGN.md. Applies when: identifying the source type and parsing its values; mapping them onto the closed utopia token tree; showing a proposal and diff before any write, then applying via the tokens skill's edit loop; reporting unmapped external tokens or uncovered utopia slots as gaps; running a re-import 3-way diff against already-synced values. Without utopia_ui resolved it stops at its usage gate and surfaces install guidance. Does NOT cover hand-editing design/tokens.json with no external source (-> utopia-design:tokens), regenerating the theme or the HTML twin (-> utopia-design:sync), building screens (-> utopia-design:screen), or a Figma write-API sync (out of scope; Figma only via DTCG export). Layered on the upstream utopia-hooks plugin - silent on Screen/State/View, hooks, and Dart conventions.
Ships in Utopia Design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill brings an outside design source into a utopia_ui project. See
the frontmatter description above for the exact positive/negative
boundary. There is no import command: import is a skill-driven workflow that
reads an external source, maps its values onto the closed utopia token tree,
shows a proposal and diff for review, and only then applies the change by
editing design/tokens.json through the same gate utopia-design:tokens
uses. This skill owns the read-map-propose steps; it hands off the actual
write to that skill's edit loop.
Before touching anything, confirm the project actually resolves utopia_ui:
pubspec.yaml declares utopia_ui: directly, or pubspec.lock resolves it
transitively. This is the same gate utopia-design:tokens runs, because
there is nothing to import into without the library and its protocol.
flutter pub add utopia_ui
flutter pub get
Only proceed once the project resolves the package.tokens.css /
Tailwind @theme file, a Claude Design / claude.design handoff bundle
directory, or a DESIGN.md file. See sources.md for what each
looks like on disk and where its values live.design/tokens.json path; collect any external token with no
matching slot as a GAP, and any utopia slot the source doesn't cover as
an uncovered slot. See mapping.md for the matching priority,
value-conversion rules, and gap-reporting discipline.design/tokens.json first. Show a per-token current-value ->
proposed-value table with its source, plus the gaps and uncovered
slots, and wait for approval. See three-way-diff.md
for the exact proposal/diff format and how a re-import against an
already-synced source is reconciled (conflict modes).design/tokens.json following
utopia-design:tokens's
token-profile.md
shapes, recording sync metadata (sourceRef, lastSyncedValue,
lastSyncedAt) on every token this import writes. Then run
validate_tokens per that skill's
validation.md. This
skill does not define its own write mechanics - it reuses
utopia-design:tokens's edit-and-validate loop as the apply gate.design/tokens.jsontokens.css or Tailwind @theme file needs to be read into the
utopia treeDESIGN.md mapped inDESIGN.md front matter needs to be importeddesign/tokens.json with no external source behind the
change -> use utopia-design:tokens| Priority | Reference | Impact | Description |
|---|---|---|---|
| 1 | sources.md | CRITICAL | What each of the four source types looks like, where its values live, and how to extract them |
| 2 | mapping.md | CRITICAL | Matching external values onto the closed utopia tree, value conversion, and gap reporting |
| 3 | three-way-diff.md | HIGH | The proposal/diff format shown before any write, sync metadata, and re-import conflict handling |
Where SPEC.md / VERSIONING.md live: the protocol documents ship inside
the utopia_ui package under protocol/ (hence the protocol/SPEC.md
citations), alongside the protocol/schemas/ the validators check against.
Resolve the installed copy the same way this plugin resolves every packaged
artifact: read .dart_tool/package_config.json for utopia_ui's rootUri
(the snippet lives in utopia-design:tokens's getting-started.md), then
open <root>/protocol/. If it does not resolve, treat every SPEC.md /
VERSIONING.md citation in this skill as background rationale and continue -
never block on the missing file.
utopia_ui resolves before reading or mapping anything (the
usage gate above).design/tokens.json MUST be shown and approved BEFORE any write
(SPEC.md section 6.2). This is the core contract of this skill.sourceRef, lastSyncedValue,
lastSyncedAt) on every token an import writes, so a later re-import can
detect conflicts (SPEC.md sections 2.6, 6.2).ask - report the conflict, write nothing
for that token. theirs / ours / skip apply only on an explicit
choice, never as a silent default.validate_tokens, the same gate utopia-design:tokens
uses. Never hand-edit the generated Flutter theme or twin CSS to make an
import "work faster."$extensions round-trip. Foreign vendor namespaces (e.g.
com.figma.*) stay untouched by any import edit (SPEC.md sections 2.1,
2.6).After running an import, verify:
design/tokens.json.sourceRef, lastSyncedValue, lastSyncedAt) was
written on every token this import touched.validate_tokens passes (or every reported finding has been addressed).$extensions data is preserved - foreign vendor namespaces untouched, unknown
io.utopiasoft.design keys intact; the only sanctioned changes are sync-metadata
writes and derivation updates/drops flagged in the proposal as coherence
side-effects.validate_tokens contract is the apply gate.Built on utopia_ui and the Utopia Design Protocol, by UtopiaSoftware.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub utopia-uss/utopia-flutter-skills --plugin utopia-design5 skills in this plugin
/componentTurn a reported component GAP (or any need for a custom component) into a LIVE manifest id: scaffold it from utopia_ui primitives, write its overlay YAML (design/overlay/<local-part>.yaml), regenerate the project + merged manifests (generate_manifest), validate, and hand back the namespaced id. Applies when: scaffolding a custom component, registering one in the project manifest, making something reusable, turning a utopia-design:screen gap report's component-spec seed into a live id. Without utopia_ui resolved it stops at its usage gate and surfaces install guidance. Does NOT cover deciding whether something is a gap, or building screens (-> utopia-design:screen); editing design/tokens.json (-> utopia-design:tokens); regenerating the theme or the HTML twin (-> utopia-design:sync); widget-authoring and state conventions (-> utopia-hooks); or contributing it UPSTREAM into utopia_ui. Layered on the upstream utopia-hooks plugin - silent on Screen/State/View, hooks, and Dart conventions.
/screenBuild or update a Flutter screen from an outside design input using ONLY components from the utopia_ui component manifest (the merged manifest when the project registers custom components). Applies when: implementing or recreating an HTML mockup, a screenshot, a handoff bundle, a DESIGN.md, or the packaged HTML twin gallery; deciding which utopia_ui component a design element maps to; reporting an unmappable element as a gap instead of hand-rolling it. Without utopia_ui resolved it stops at its usage gate and surfaces install guidance. Does NOT cover editing design/tokens.json (-> utopia-design:tokens); importing external design VALUES such as colors or spacing (-> utopia-design:import - VALUES onto tokens there, STRUCTURE onto components here); regenerating the theme or the HTML twin (-> utopia-design:sync); or state management, screen scaffolding, navigation (-> utopia-hooks). Layered on the upstream utopia-hooks plugin - silent on Screen/State/View, hooks, and Dart conventions.