Getting started

Install ds-bridge, answer the preferences dialog, and read your very first lint finding — start to finish, in about ten minutes, no Figma account required.

What you’ll learn

Welcome! This is the one tutorial to read first. By the end you’ll have ds-bridge installed, configured through its native preferences dialog, and you’ll have run it once against your own project to see a real finding. We’ve timed it: about ten minutes, and every step here works without a Figma token — so designers, managers, and developers can all follow along on day one.

A quick, honest word on that ten minutes. It’s the install-to-first-finding path, not “master the whole plugin”. The Figma-powered features — drift detection and handoff scoring — need a token and a little more setup, and they each have their own tutorial linked at the end. Today we get you to a green, useful first run.

Setup

You need two things: Claude Code installed, and a project with a design token file (a tokens.json in W3C, Tokens Studio, or Style Dictionary shape). That’s it. No Figma account, no personal access token, no settings.json to hand-edit. If you don’t have a token file yet, ds-bridge still runs — it just has nothing to compare your values against, so it’ll report that it found no token source rather than crashing.

Steps

  1. Install the plugin. ds-bridge ships as a single bundle, so there’s no npm install step afterwards. Pick whichever path fits you:

    To install it for keeps, register this repository as a marketplace and install from it:

    # 1 · point a marketplace at the repository (URL, local path, or owner/repo)
    claude plugin marketplace add https://github.com/lucksy/ds-bridge
    
    # 2 · install ds-bridge from that marketplace
    claude plugin install ds-bridge
    

    To just try it from a local checkout — no marketplace, no install — load it for the current session with --plugin-dir:

    # great for kicking the tyres or developing against a clone
    claude --plugin-dir /path/to/ds-bridge
    

    Either way, the slash commands (/ds-bridge:ds-lint, …) are live inside that Claude Code session.

  2. Answer the preferences dialog. The first time you enable the plugin, Claude Code prompts you for ds-bridge’s options natively — no config files to edit. Here’s every field and the safe answer for today:

    • Figma library file keyleave blank. It’s optional, and nothing in this tutorial needs it.
    • Figma personal access tokenleave blank. It’s stored securely in your system keychain when you do add one, but linting your own code needs no token at all. You’ll add this later for the Figma features.
    • Design token source fileleave blank to let ds-bridge auto-detect it from common paths. Only fill it in if your token file lives somewhere unusual; then point it at that file.
    • Report outputkeep the default, both (HTML and terminal).
    • Handoff readiness gatekeep the default, 80. It only matters for the handoff feature, which you’ll meet later.
  3. Run your first lint. Inside the Claude Code session, point ds-lint at a folder of your own — start small:

    claude /ds-bridge:ds-lint src
    

    ds-bridge scans those files for hard-coded colors, spacing, and radii, checks each one against your detected tokens, and reports back. A finding looks like src/Button.tsx:18:14 exact color: "#3b82f6" — use token color.brand.primary.

  4. Read your first findings. Each finding is tagged with a kind that tells you what to do:

    • exact — the value is a token; safe to adopt automatically.
    • near — close to a token, but a human should decide.
    • off-system — nothing in the system matches it.

    That three-way split is the whole idea, and you don’t have to act on anything yet. Reading the list is a complete, successful first run.

Result

In about ten minutes you’ve installed ds-bridge, configured it through the native dialog without touching a config file, and read a real finding from your own project — all with no Figma account. That’s the full install-to-first-finding loop, and everything else builds on it.

Where to go next, in order:

You can also browse the full tutorials index any time.

Troubleshooting