Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Palette?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nirmalkcse-palette)
---
name: palette
description: "Build a contrast-checked light and dark palette from one colour, or measure the contrast of a pair."
argument-hint: "<colour> | --check <text> <background>"
disable-model-invocation: true
---
Arguments: $ARGUMENTS
- One colour (`#D11F41` or `"oklch(56% 0.2 18)"`): run `node ../second-nature/scripts/palette.mjs <colour>` and show the custom properties and the checks. Explain any check marked "note". If the project already has colour tokens, map the scale onto their names instead of adding a second system.
- `--check <text> <background>`: run `node ../second-nature/scripts/palette.mjs --check <text> <background>` and say what the pair is good for.
- For other formats (design-token JSON, with `--srgb` when it is for Figma; a Tailwind theme; Swift; Android), use `node ../second-nature/scripts/tokens.mjs`.
- No arguments: ask for the colour, and where it comes from. A palette should start from something true about the product, not from a category habit.
The reasoning is in `../second-nature/references/color.md`. Read it only if a question comes up that the script's output does not answer.
Paths: `../second-nature` is the `second-nature` skill folder installed beside this one. Resolve it to a full path before running a command, because a shell resolves relative paths against its working directory, not this file. If that folder is missing, use the tools of the `second-nature` MCP server instead (`library_read`, `audit`, `improve`, `palette`, `tokens`, `effort`, `direction`).