Design

Replace hard-coded colors with design tokens

Delegate a token cleanup to Merlin in Linear. It swaps raw hex values for the matching tokens, checks the screens look the same and opens a pull request.

@Merlin from now on, when a token cleanup is delegated to you, replace the raw hex and rgb colors in the part of the app the issue names with the tokens that match them exactly. Open the affected screens in a browser before and after to check they look the same, then open a pull request linked to the issue. Leave colors with no exact match as they are and list them on the issue for a designer to decide.

WEB · design system
Get started for free
  1. Starts whenA designer delegates a token cleanup issue to Merlin in Linear, naming the part of the app to clean up
  2. Merlin worksClaude Code or Codex replaces raw hex values with the matching tokens, then compares the screens in a browser before and after
  3. You getA pull request linked on the issue, with the colors that had no matching token listed for a designer to decide

Tools

  • Linear
  • GitHub
  • Chrome

Capabilities

  • Integrations

How it works

From raw hex values to tokens, with the screens checked.

Delegate the issue to Merlin in Linear and name the part of the app to clean up.

WEWEB › Issues › WEB-277

Replace hard-coded colors in settings

The settings pages still use raw hex values in about 40 places. Swap them for tokens where one matches exactly.

Activity

Miadelegated the issue to Merlin·now

Leave a comment…

Properties

Todo

Mia

Merlin

Labels

Design system

Before and after

Token cleanup stops being the task nobody has time for.

Without Merlin

An engineer searches for hex values and matches each one against the token file by hand.

  1. 01Pick up the cleanup issue
  2. 02Search for raw hex values
  3. 03Open the token file
  4. 04Match each color to a token
  5. 05Replace them one by one
  6. 06Ask about the near-matches
  7. 07Screenshot each page before
  8. 08Compare each page after
  9. 09Open a pull request
  10. 10Link it on the issue

With Merlin

Delegate the issue and get the exact swaps in a pull request, with the near-misses left for you.

  1. Cleanup delegated to MerlinThe issue names the part of the app
  2. Swaps colors and compares the screensClaude Code with a browser
  3. Pull request linked on the issueColors with no match listed for a designer

Setup

Connect Linear and GitHub, then give the agent Chrome.

Set these up once and any designer can delegate a token cleanup from its issue. A screenshot of a changed page lands on the issue with the summary.

  1. 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
  2. 02Connect LinearIntegrationsConnect your Linear workspace so issues can be delegated to Merlin.
  3. 03Install the GitHub appIntegrationsPick the repositories Merlin can access, so it can read and link the pull requests there. Pushes use the machine owner's own Git access.
  4. 04Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
  5. 05Give your agent ChromeRuntimeConnect Claude Code to Chrome, or give Codex the Playwright MCP server with Chrome, so the agent can open the pages the job needs.
  6. 06Share a machine that has the codeRuntime

    The run edits the code and compares the screens locally. An engineer can share a machine that has the repository and a browser tool. Merlin picks the designer's own machine first and a shared one after that.

  7. 07Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.

Prompt

Tell Merlin how to take on a token cleanup.

@Merlin from now on, when a token cleanup is delegated to you, replace the raw hex and rgb colors in the part of the app the issue names with the tokens that match them exactly. Open the affected screens in a browser before and after to check they look the same, then open a pull request linked to the issue. Leave colors with no exact match as they are and list them on the issue for a designer to decide.

WEB · design system

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time an issue is delegated to Merlin

  1. IntegrationLinear hands Merlin the issue
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex swaps colors for tokens
  5. SteeringYour team steers it from the issue
  6. ResultMerlin links the pull request on the issue

Bring your coding agents into the tools your team already uses.

Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.