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 three things: Claude Code installed, Node 22 or later, and a project with design tokens — a tokens.json (or .json5) in W3C, Tokens Studio, or Style Dictionary shape, a folder of token files, or a Figma variables export. 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. In your terminal — ds-bridge ships as a single bundle, so there’s no npm install step afterwards. Add the ds-bridge marketplace and install from it:

    # 1 · add the marketplace (GitHub owner/repo)
    claude plugin marketplace add lucksy/ds-bridge
    
    # 2 · install the plugin
    claude plugin install ds-bridge
    
  2. Open Claude Code in your project. Start a new session from your project folder — the slash commands are live inside it:

    cd your-project
    claude
    
  3. 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 key — leave blank. It’s optional, and nothing in this tutorial needs it.
    • Figma personal access token — leave blank. Linting your own code needs no token at all. When you’re ready for the Figma-powered features, the Connect ds-bridge to Figma tutorial walks you through adding one — there’s a quick /ds-bridge:connect step because Claude Code doesn’t keep the dialog value across restarts.
    • Design token source file — leave 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 output — keep the default, both (HTML and terminal).
    • Handoff readiness gate — keep the default, 80. It only matters for the handoff feature, which you’ll meet later.
    • Insights pane: chart palette, share charts, corner radius — keep the defaults (harvest, donut, 4). They only change how the insights pane draws its charts.
  4. Run your first lint. Inside the Claude Code session, point ds-lint at a folder of your own — start small:

    /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 — var(--color-brand-primary), and the run ends with your on-system %: the share of styling values that already use a token.

  5. 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

> /ds-bridge:ds-lint srcexample · acme-shop
On-system76%39 of 51 values use a token
4exact
0near
8off-system
  • PromoBanner.tsx:7off-systembackground: #eff6ffno matching token
  • PromoBanner.tsx:8off-systemcolor: #1e3a8ano matching token
  • PromoBanner.tsx:11exactpadding: 24px→ var(--spacing-6)
  • PromoBanner.tsx:12exactmarginBottom: 16px→ var(--spacing-4)
  • LegacyButton.tsx:12exactbackgroundColor: #171717→ var(--primary)
  • Dashboard.tsx:66exactcolor: #737373→ var(--muted-foreground)
  • SignIn.tsx:46off-systemcolor: #2563ebno matching token

12 findings · --fix rewrites the 4 exact matches in place

Every raw color and size checked against your tokens: exact matches you can fix automatically, values with no token, and the on-system share.

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