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.
- Starts whenA designer delegates a token cleanup issue to Merlin in Linear, naming the part of the app to clean up
Merlin worksClaude Code or Codex replaces raw hex values with the matching tokens, then compares the screens in a browser before and after
- 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.
Claude Code or Codex replaces raw hex and rgb values with the tokens that match them exactly, then opens the affected screens in a browser before and after.
The pull request is linked on the issue. Colors with no exact match stay as they are, listed on the issue for a designer to decide.
Delegate the issue to Merlin in Linear and name the part of the app to clean up.
Claude Code or Codex replaces raw hex and rgb values with the tokens that match them exactly, then opens the affected screens in a browser before and after.
The pull request is linked on the issue. Colors with no exact match stay as they are, listed on the issue for a designer to decide.
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
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.
- 01Pick up the cleanup issue
- 02Search for raw hex values
- 03Open the token file
- 04Match each color to a token
- 05Replace them one by one
- 06Ask about the near-matches
- 07Screenshot each page before
- 08Compare each page after
- 09Open a pull request
- 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.
- Cleanup delegated to
MerlinThe issue names the part of the app Swaps colors and compares the screensClaude Code with a browser
- 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.
- 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.
- 02Connect LinearIntegrationsConnect your Linear workspace so issues can be delegated to Merlin.
- 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.
- 04Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
- 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.
- 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.
- 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.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time an issue is delegated to Merlin
- IntegrationLinear hands Merlin the issue
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex swaps colors for tokens
- SteeringYour team steers it from the issue
- ResultMerlin links the pull request on the issue
Related use cases
More design tasks you can hand to Merlin.
- IntegrationsYour agent's MCP
Design
Sync Figma variables to the code tokens
Ask Merlin in Slack after you change variables in Figma. It compares them with your token files and opens a pull request for what changed.
@Merlinin#design-systemA pull request with the token changes - AutomationsIntegrationsYour agent's MCP
Design
Check the design system for drift every month
Once a month, Merlin compares your Figma library with the components in code. You get what differs, component by component, in #design-system.
Day 1 of every month at10:00What differs, posted in#design-system - Integrations
Design
Screenshot the screens a pull request changes
Mention Merlin on a pull request to see what it changes on screen. It screenshots each changed screen on main and on the branch and comments what looks different.
@usemerlin-aiin a pull request commentA before and after for each screen, in a comment
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.