design-palette
Creates or migrates the canonical CSS theme palette: light/dark inputs, generated scales, semantic tokens shared by web and React Native, hand-authored…
Skill by Lichens-Innovation
Chalk Labs
Need help deploying design-palette?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lichens-innovation-design-palette
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/design-palette
What's inside
- Skill name
design-palette- Description
- Creates or migrates the canonical CSS theme palette: light/dark inputs, generated scales, semantic tokens shared by web and React Native, hand-authored spacing/type/breakpoint tokens, Tailwind v4 utilities or Sass names, and a contrast audit. Used by design-init, or directly when the user wants to create a theme palette, set up design tokens, normalize existing CSS variables, or check palette contrast.
- License
- MIT
- Instructions
- 144 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (10)
- SKILL.md
- migration.md · references/
- palette-structure.md · references/
- preview-card.md · references/
- package.json · scripts/
- palette.ts · scripts/
- design-nav.js · templates/
- palette-preview.dc.html · templates/
- tailwind-classes.html · templates/
- theme.inputs.css · templates/
SKILL.md (first lines)
# Design Palette
Produces the **canonical theme palette**, the single source of truth for design tokens
(contract §5). Usually invoked by `design-init`; can run standalone.
Read before starting:
- [`design-contract.md`](${CLAUDE_SKILL_DIR}/../../references/design-contract.md) §5
- [`references/palette-structure.md`](references/palette-structure.md), the token model this skill produces
## Workflow
1. **Ask the targets and the layout.** Web, mobile, or both, and where the files go. Recommend
an inputs file next to a `generated/` folder (e.g. in a shared theme package):
```
theme.inputs.css the inputs, the only hand-edited file (canonical)
generated/theme.css the tokens, shared by web and React Native --theme
generated/scheme.css browser-only mode switch (web targets) --scheme
generated/tailwind.css Tailwind v4 utilities (Tailwind targets) --mobile
generated/palette.json resolved hex values (optional, for JS) --json
generated/_tokens.scss Sass names for every token (Sass targets) --sass
```
Ask whether the web side uses Sass (a `sass` or `sass-embedded` dependency, `*.scss` files):
it then gets `--sass`, and the components keep `@use`-ing a theme module instead of writing
`var()` by hand ([Sass projects](references/palette-structure.md#sass-projects)).
For Tailwind targets, also ask for the namespace: a short project name (e.g. `noa`) that every
palette class carries: `text-noa-muted`, `bg-noa-elevated`, `bg-noa-primary-subtle`
([Tailwind names](references/palette-structure.md#tailwind-names)). Required with `--mobile`.
Drop the outputs a project does not need. A small project may keep one file instead: web only,
the inputs, theme and scheme in `theme.css`; mobile only, everything in the Tailwind file.
Web and mobile in one repo: put them in a shared theme package (exports, project aliases,
JSON reader: [palette-structure.md](references/palette-structure.md#shared-theme-package-web-and-mobile-in-one-repo)).
2. **Detect existing tokens.** Look for CSS custom properties, a Tailwind theme, or hard-coded
colors. If any exist, follow [`references/migration.md`](references/migration.md) instead of
starting from the template. Never overwrite an existing palette without showing the diff.
3. **Collect the inputs.** For each of light (`-lm`) and dark (`-dm`) mode:
- brand: `primary` and `secondary` required, `tertiary`–`quinary` optional. Reuse the logo
colors; without a logo, suggest a generator such as coolors.co.
- base: `font`, `background`; optional `font-inverted` (defaults to background) and `border`
(defaults to a 14% font-into-background mix).
- status: `info`, `danger`, `success`, `warning` (defaults in the template).
Without Tailwind, also collect the **hand-authored tokens** (one value, both modes): fonts, type
sizes, one spacing scale for padding, margin and gap, radius, breakpoints. Use Tailwind v4 names
([table](references/palette-structure.md#hand-authored-tokens-non-color)); take the values from
what the project already uses. With Tailwind, skip them: its theme holds the scale.
4. **Write the inputs** into the canonical file (the inputs file, or the one file) using
[`templates/theme.inputs.css`](templates/theme.inputs.css). Inputs, hand-authored tokens and token
overrides (its last block, empty by default) are the only hand-edited values (drop the
template's hand-authored block for Tailwind targets).
5. **Put the generator in the repo.** Copy [`scripts/palette.ts`](scripts/palette.ts) (Node 22.18+,
which runs it as is; no dependencies) into the package that holds the inputs, as `scripts/palette.ts`, and add a
`palette` script to that package's `package.json` that regenerates every output, so developers
without the plugin can run it (`npm run palette`, `pnpm --filter <pkg> palette`…):
```bash
# inputs file + generated/ folder (drop the flags a project does not need)
node scripts/palette.ts src/theme.inputs.css --theme src/generated/theme.css \
--scheme src/generated/scheme.css --mobile src/generated/tailwind.css \
--json src/generated/palette.json --namespace noa
# Sass web project, no Tailwind
node scripts/palette.ts src/theme.inputs.css --theme src/generated/theme.css \
--scheme src/generated/scheme.css --sass src/generated/_tokens.scss
# one file: web only / mobile only
node scripts/palette.ts theme.css --web --scheme theme.css
node scripts/palette.ts tailwind.css --mobile tailwind.css
```
Add the copy to the formatter and linter ignores: it must stay byte-identical to the plugin's.
Raise the project's `engines.node` to `>=22.18` when it allows older versions. Outside a
`"type": "module"` package, Node prints a harmless module-type warning; add `"type": "module"`
when no other script there needs CommonJS. The manifest records it as `palette.script` and the
namespace as `palette.namespace` (`design-init` writes them). On a later run, compare the copy
with the plugin's first and, when they differ, show the diff and ask before replacing it
(contract §5). Adding the script is no install: never run the package manager's install.
6. **Generate.** Run the `palette` script (or the copy with the same flags).
`--theme <file>` writes the theme and leaves the inputs file as it is; `--web` rewrites the
inputs file as the full theme. Add `generated/` (or the output files) to the formatter and
linter ignores, or every re-run shows up as a formatting diff.
What each app imports (one-file mobile only: `tailwind.css` alone):
| App | Imports, in order |
| --------------------------- | ------------------------------------------------------- |
| Web (and any web Storybook) | `tailwind.css` (if Tailwind), `theme.css`, `scheme.css` |
| React Native (NativeWind) | `tailwind.css`, `theme.css`; never the scheme file |
| React Native Storybook | the app's global CSS, then `scheme.css` |
Sass partials `@use` the Sass file (through the package's export, or a module that forwards
it) and still need the CSS imports above at runtime: the Sass names are `var()`.
The theme has plain values and `var()` only and switches dark mode with
`prefers-color-scheme`. The scheme file adds `light-dark()` so a browser can force a mode:
set `document.documentElement.style.colorScheme = mode`. react-native-css turns `light-dark()`
into arrays that Reanimated rejects, so it stays off React Native.
Card sync: `--to-card <card>` writes the inputs, the hand-authored token values and the
[token overrides](references/palette-structure.md#token-overrides) into the palette card, which
edits all three (token values only, never names or breakpoints);
`--from-card <card>` takes them from it (and writes them into the inputs file),
`--diff-card <card>` only prints the differences. `--title <name>` sets the
card's project name; `--thumbnail <file>` writes the Claude Design project thumbnail.
7. **Report the audit** (report only, never block). For each `FAIL`, propose the smallest input
change that fixes it (usually nudging that color's lightness) and ask before applying.
`WARN` lines are advisory; explain them in one line each. Also say which brand slots are unset:
they have no tokens, so a class like `bg-noa-tertiary` does not exist until the input is added.
8. **Palette card.** When run by `design-init`, stop here: it seeds the Claude Design card andFrom Lichens-Innovation/ai-dev-tools, MIT.
More from Lichens-Innovation/ai-dev-tools
- 0.570score
setup-claude-auto-lint-format
Lichens-Innovation
Installs a PostToolUse hook that runs the project's linter and formatter on every file Claude Code or one of its subagents writes or edits, and speaks up only…
SkillAFreshness: AClaude Code +9 - 0.570score
setup-claude-just-usage
Lichens-Innovation
Reads the justfiles of a repository and, for each level that has one (root, apps/frontend, packages/ui, ...), writes a .claude/rules/use-just-commands.md…
SkillAFreshness: AClaude Code +9 - 0.570score
chromatic-init
Lichens-Innovation
Adds Chromatic visual testing to a Storybook project.
SkillAFreshness: AClaude Code +9 - 0.570score
design-loop
Lichens-Innovation
Runs the Claude Design -> React implementation loop: takes an approved component or screen proposal (or the palette card) from a Claude Design project…
SkillAFreshness: AClaude Code +9 - 0.570score
design-refresh
Lichens-Innovation
The one skill for updating Claude Design from the code: checks whether the synced components are behind their code, rebuilds stale screen mockups, offers…
SkillAFreshness: AClaude Code +9 - 0.570score
claude-light
Lichens-Innovation
Applies a lightweight Claude Code configuration to this project's .claude/settings.local.json: optional auto-compact window, connectors, workflows, bundled…
SkillAFreshness: AClaude Code +9 - 0.570score
react-flow-canvas-geometry
Lichens-Innovation
Compute React Flow (@xyflow) canvas geometry correctly — edge label anchors, bezier control points, handle coordinates, node bounds — so labels and edges land…
SkillAFreshness: AClaude Code +9 - 0.570score
react-coding-standards
Lichens-Innovation
Enforces internal React and TypeScript coding standards using avoid/prefer rules.
SkillAFreshness: AClaude Code +9 - 0.566score
setup-claude-guardrails
Lichens-Innovation
Installs guardrails in this project's .claude/ (and its git worktrees) that keep Claude Code from reading, writing or running commands on paths outside a…
SkillAFreshness: AClaude Code +9 - 0.566score
storybook-init
Lichens-Innovation
Installs and configures Storybook in a React or React Native project.
SkillAFreshness: AClaude Code +9 - 0.565score
react-hook-form
Lichens-Innovation
Guide for setting up react-hook-form with Zod validation in React.
SkillAFreshness: AClaude Code +9 - 0.565score
generate-pr-description
Lichens-Innovation
Generates pull request descriptions by comparing current branch with parent branch.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 6
- Last commit (this folder)
- Oct 8, 2026 (23 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Lichens-Innovation
- 0.570score
setup-claude-auto-lint-format
Lichens-Innovation
Installs a PostToolUse hook that runs the project's linter and formatter on every file Claude Code or one of its subagents writes or edits, and speaks up only…
SkillAFreshness: AClaude Code +9 - 0.570score
design-loop
Lichens-Innovation
Runs the Claude Design -> React implementation loop: takes an approved component or screen proposal (or the palette card) from a Claude Design project…
SkillAFreshness: AClaude Code +9 - 0.570score
setup-claude-just-usage
Lichens-Innovation
Reads the justfiles of a repository and, for each level that has one (root, apps/frontend, packages/ui, ...), writes a .claude/rules/use-just-commands.md…
SkillAFreshness: AClaude Code +9 - 0.570score
chromatic-init
Lichens-Innovation
Adds Chromatic visual testing to a Storybook project.
SkillAFreshness: AClaude Code +9 - 0.570score
claude-light
Lichens-Innovation
Applies a lightweight Claude Code configuration to this project's .claude/settings.local.json: optional auto-compact window, connectors, workflows, bundled…
SkillAFreshness: AClaude Code +9 - 0.570score
design-refresh
Lichens-Innovation
The one skill for updating Claude Design from the code: checks whether the synced components are behind their code, rebuilds stale screen mockups, offers…
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get design-palette running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
design-palette skill. Agent Mart. https://agentmart.dev/skills/lichens-innovation-design-palette (last updated 2026-10-24)