Skip to content

Dataset

UI and product design file datasets for AI training

A UI design dataset is a collection of product design files for web and mobile software, kept in editable form: screens and flows, component libraries with variants, design tokens, prototypes, comment threads and version history. SourceX sources these files to a buyer's spec from established software companies and product design agencies that hold them in tools such as Figma and Sketch, with links to the tickets and shipped code where the company keeps them. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Editable product design files with components, tokens, prototypes, comments and version history
Typical systems
Figma, Sketch, Adobe XD, Penpot, Zeplin, Storybook, Tokens Studio
Typical history
Specified by the buyer; limited by the tool's version retention and by when the team adopted it
Modality
Node trees as structured data, rendered frames as images, tokens and linked code as text
Delivery formats
Agreed per order; node-tree JSON, token JSON, PNG or SVG renders, original files where the format allows
Preparation
Commenters pseudonymized; customer data in mockups and unreleased work removed; fonts and stock assets listed
Licensing
Rights reviewed per file and library; agency work needs the client's release; permitted use set in the license
Availability
Sourced to your spec; pairing with shipped code depends on the links a company kept; supply is not guaranteed
CAD and design filesIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
file_idstringPseudonymous ID for one design file, shared by its pages, components, comments and versions.
source_toolobjectThe design tool, the export route used (API node tree, native file or plugin) and the platform the file targets.
node_treeobjectThe hierarchy of pages, frames, text and vector nodes, each with type, name, geometry and fills.
componentsarrayMain components and component sets with their variant properties and the library file that publishes them.
instance_linksobjectFor each placed component, the main it points to, the property values chosen, overrides and a detached flag.
layoutobjectPer frame, the auto layout direction, spacing and padding, each child's sizing mode and its resize constraints.
tokensarrayVariables and styles with name, type, value per mode such as light and dark, alias chain and bound nodes.
prototypearrayInteraction links between frames, with trigger, destination and transition.
comment_threadsarrayComments with the node or canvas position each is pinned to, replies, resolved time, author role and the file version current when written.
version_historyarraySaved versions and branches with labels and timestamps, where the tool keeps them.
handoff_linksarrayReferences that tie a frame or component to a ticket, pull request, story or code component, flagged explicit or inferred, with the design version current at merge.
frame_statusobjectWhether a frame is an exploration, the handed-off design, a post-release edit or archived, and the evidence for that.
embedded_assetsobjectFonts, image fills and icon sets the file references, with license status and whether binaries are included.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "file_id": "df_8c2e41",
  "source_tool": {"name": "figma", "export_route": "api_node_tree", "platform": "web"},
  "node_tree": {
    "id": "1203:4471", "type": "FRAME", "name": "Checkout / Payment method / Card declined",
    "children": [
      {"id": "1203:4480", "type": "INSTANCE", "name": "Text field", "main": "cmp_text_field",
       "props": {"state": "error", "size": "md"},
       "overrides": {"label": "Card number", "helper": "Check the number and try again."}},
      {"id": "1203:4491", "type": "INSTANCE", "name": "Button", "main": "cmp_button",
       "props": {"variant": "primary", "state": "default"}}
    ]},
  "components": [
    {"id": "cmp_text_field", "set": "Text field", "library_file": "df_lib_01",
     "variant_props": {"state": ["default", "error", "disabled"], "size": ["sm", "md"]}}
  ],
  "instance_links": {"live": 2, "detached": 0, "library_in_scope": true},
  "layout": {"node": "1203:4471", "mode": "vertical", "item_spacing": 24,
             "sizing": {"horizontal": "fill", "vertical": "hug"}, "max_width": 560},
  "tokens": [
    {"name": "color/border/critical", "type": "color", "values": {"light": "#C62828", "dark": "#EF9A9A"},
     "alias_of": "red/700", "bound_nodes": ["1203:4480"]}
  ],
  "prototype": [{"from": "1203:4491", "trigger": "on_click", "to": "1203:4390"}],
  "comment_threads": [
    {"anchor_node": "1203:4480", "written_at_version": "v_0193",
     "resolved_at": "2025-01-22T09:41:00Z",
     "messages": [
       {"t": "2025-01-21T15:02:00Z", "role": "designer",
        "text": "Build shows the error in 12px grey. It should use the critical color token."},
       {"t": "2025-01-22T09:40:00Z", "role": "engineer", "text": "Fixed."}
     ]}
  ],
  "version_history": [
    {"version": "v_0193", "label": "Ready for dev", "t": "2025-01-09T17:30:00Z"},
    {"version": "v_0201", "label": "Tidy after release", "t": "2025-02-03T10:05:00Z"}
  ],
  "handoff_links": [
    {"type": "pull_request", "ref": "pr_web_3310", "basis": "explicit", "found_in": "node_url_in_pr_body", "design_version_at_merge": "v_0193"},
    {"type": "code_component", "ref": "packages/ui/src/TextField.tsx", "basis": "explicit"}
  ],
  "frame_status": {"node": "1203:4471", "role": "handed_off", "basis": "version_label",
                   "edited_after_release": true},
  "embedded_assets": {"fonts": [{"family": "[FONT_A]", "binary_included": false}]}
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train design-to-code models on structure

Node trees with component references, layout rules and tokens give a model the intent that pixels hide, and paired code shows how a real component library expresses it.

Generate screens that follow a design system

Component sets and token collections teach a model to compose screens from the parts a team already has, not draw one-off elements.

Evaluate layout and resize behavior

Frames with sizing rules, drawn at several widths, make test items where a generated layout is resized and compared with the designer's.

Learn design critique tied to an element

Comment threads pinned to a node, with the revision that followed, are examples of feedback that names the element, the problem and the fix.

Label interface elements for agents

Component names, states and prototype links say what each element is and where it leads.

Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents

What makes this data valuable

Instances still linked

Many live instances and few detached copies mean identity between elements is stated, not guessed.

Values bound to tokens

Colors, type and spacing bound to variables or styles show the system was used.

Auto layout in use

Frames built with auto layout carry resize behavior; absolutely positioned frames carry one size.

States and edge cases drawn

Error, empty, loading and long-text states show the hard cases, not only the ideal screen.

Library in scope

The file that publishes the components is delivered too, so every instance resolves.

Dated links to code

Explicit links to pull requests, with the design version at merge, make a pair checkable.

Document stack

UI design dataset

This page covers UI and product design files with design systems.Illustrative

What a component tree states that a screenshot cannot

A screenshot of a settings page shows rectangles and text. The design file says which of those rectangles are the same thing. Every button is an instance that points back to one main component, and the instance records the property values chosen for it, such as variant primary and state disabled, plus local overrides, usually the label. In Figma's node tree an instance carries the ID of its main component, and a component set groups the variants. Sketch has the same idea in its symbols, where an instance points to a source symbol and carries override values. A model reading this learns identity and variation directly, not from pixel similarity.

The file also states how the screen resizes, which no single image can. Auto layout gives each frame a direction, gap and padding, and says whether each child keeps a fixed size, hugs its content or fills its parent. Tokens add meaning to values. A border color bound to a variable for critical borders, an alias of a red in the base palette with a second value in dark mode, records a decision the hex code does not.

How much of this a file holds depends on the team's discipline, so it has to be measured. Instances get detached and become plain frames with no link to their source. Colors typed in by hand bypass the tokens, and layers keep default names such as Frame 1283. The library usually lives in its own file, which must be in scope for instances to resolve. An export to PDF or PNG flattens all of it.

The design, the shipped code and the review of the gap

A design file alone is intent with no result. A design-to-code model also needs the result and the judgment on it: the code that shipped from the frame and the designer's review of the difference. Public pairs are often built the other way round, by rendering a web page and pairing the screenshot with its markup, so the code came first and nobody reviewed anything. The design file supplies two parts of the real pair that a repository cannot: the frame at its handoff version, and the review pinned to it.

Both sit outside the node tree and are easy to lose in an export. In Figma's API, comments come from a separate request, each with the position of its pin, either canvas coordinates or an offset inside a frame, the comment it replies to and the time it was resolved. A designer's note that the built error text is the wrong color has an address in the tree, where a pull request comment has a line of code. Versions are listed by another request, and the file can be fetched as it stood at one of them.

The file also has to say which frame was built. Working files keep explorations, duplicates and archive pages beside the handed-off screen, and a frame is sometimes edited after release to match what shipped, which turns the pair into a copy. A usable pair names the design version current when the code merged. A Figma link to a frame carries the file key and the node ID, so one pasted into a pull request points at a single frame. Few holders keep every part. Agencies hold the design while the code sits with the client. State the pairing as a requirement, and treat unpaired files as a separate scope.

What to check before licensing

  • On a sample, count the share of nodes that are live component instances, the share detached, and the share of fills and spacings bound to tokens.
  • Confirm that the library files that publish the components are in scope. Without them, instances in product files point at definitions that are not in the delivery.
  • Ask how each design-to-code link was made, from a node URL in a pull request, a component mapping or a match on names and dates, and how the design version at merge was fixed.
  • Check that unreleased product plans were removed. Exploration pages and features that never shipped can be confidential even when the shipped screens are public.
  • Check placeholder content for real customer data. Mockups often hold pasted production screenshots and real names, emails and account numbers in table rows.
  • Confirm that commenters' names and avatars were replaced with role-level pseudonyms, and that comment text and layer names were scanned for names.
  • For agency files, ask for the release from the client that owns the work, and get a list of the fonts, stock photos and icon sets in the files with their license terms.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How is a UI design dataset different from a set of UI screenshots?

A design file records structure that a screenshot does not. It states which elements are instances of the same component, which variant and state each is in, how each frame resizes and which token each value comes from. A screenshot shows one rendering at one width. Ask for rendered frames beside the structure if you need both.

Which design tools can the files come from?

Any tool whose files can be exported with their structure, in practice most often Figma and Sketch, with older work in Adobe XD. Figma's API returns a file as a JSON node tree, and a Sketch file is a ZIP archive of JSON documents, so both can be delivered as structured data. Specify the tree export you need, and ask whether native files can be included as well.

How are designs linked to the code that shipped?

Through links the team left while working, where they exist. Typical ones are a frame URL in a ticket or pull request, a component mapping to a file in the repository, or a Storybook story that references the design. Ask for each link to be flagged explicit or inferred. Code can be in scope only where the holder owns it.

Does the dataset include version history and branches?

Only where the tool kept them. How far back version history goes can depend on the tool, the holder's plan and whether the team saved named versions at milestones. Ask what history exists before you set scope, and whether earlier versions can be exported as full trees or only listed with labels and dates.

What happens to fonts, icons and stock images inside the files?

Expect them to be listed, with the binaries included only where the holder's license allows passing them on. Design files reference commercial typefaces, stock photos and purchased icon sets that the company may use but may not be able to pass on. Ask for the asset list early, have counsel review it, and decide whether substituted fonts or placeholder images are acceptable.

Can design files made by an agency be licensed?

Only when the client that owns the work releases it. Agency contracts commonly assign the finished design to the client and may cover the working files too, so an agency holding a file is not proof that it can license it. Ask to see the client's release as part of rights review, and have counsel read the assignment terms. Files for products that never launched need the same check.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies