8 formats, one click each, no account
Export formats
Recolor (recolor.page) exports a palette in 8 formats: CSS variables, a Tailwind v4 @theme block, SCSS variables, JSON, a hex list, a Coolors link, a public share page and a link to the view you see. Export opens a panel in groups, Palette with a tab for each of the first 6 and Share with the links, and Copy puts the text on your clipboard. The code formats name the colors color-1 to color-5, and the first three also go by primary, secondary and accent. Pro adds Site CSS, before-and-after images and review links.
Last updated
src/react-app/export.ts), its output for the default palette, October 8, 2026| Format | In Export | First line of the output |
|---|---|---|
| CSS variables | Palette, CSS tab | --color-1: #264653; |
| Tailwind v4 @theme | Palette, Tailwind tab | --color-1: #264653; |
| SCSS variables | Palette, SCSS tab | $color-1: #264653; |
| JSON | Palette, JSON tab | { |
| Hex list | Palette, Hex tab | #264653 |
| Coolors link | Palette, Coolors tab | https://coolors.co/264653-2a9d8f-e9c46a-f4a261-e76f51 |
| Share page | Share | https://recolor.page/p/264653-2a9d8f-e9c46a-f4a261-e76f51?site=https%3A%2F%2Fexample.com%2F |
| Link to this view | Share | https://recolor.page/app?site=https%3A%2F%2Fexample.com%2F#264653-2a9d8f-e9c46a-f4a261-e76f51 |
| Site CSS (Pro) | Page, Site CSS tab | A comment, then :root { with the new colors |
| Before and after images (Pro) | Page, Images tab | Two PNG images and one of both side by side |
| Review link (Pro) | Share | https://recolor.page/r/ and the link's own id |
How to export
Press Export at the top right. A panel opens on its Palette group, with the tabs CSS, Tailwind, SCSS, JSON, Hex, Coolors; each
shows the palette in that format, and Copy copies it, with a short message to confirm. The Share group
holds two links, each with its own Copy: the share page and the link to this view. The panel stays open while you
keep generating, so the code follows the palette. Every example below is the real output for the palette
Recolor opens with: #264653, #2a9d8f, #e9c46a, #f4a261, #e76f51.
The order of the colors is the order of the swatches. In Recolor that order and their lightness decide which page color each one replaces: the lightest and darkest take the background and the text, and the first of the others is usually the brand color; see Strength, neutral tint and overrides. Every page in the palette gallery shows these same formats for its own colors, so a palette can be copied without opening the app.
CSS variables
One custom property per color on :root, then the three role names as aliases of the first three. Paste it into
a stylesheet and use var(--color-primary) anywhere; recoloring a site with CSS variables
shows how a site is built around such variables.
:root {
--color-1: #264653;
--color-2: #2a9d8f;
--color-3: #e9c46a;
--color-4: #f4a261;
--color-5: #e76f51;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
A Tailwind CSS v4 @theme block: every --color-* variable becomes a color for the utilities, so this gives
bg-1 to bg-5, text-primary, border-accent and the rest. The role names hold the hex itself
rather than a var(), so the block works without @theme inline. Tailwind v3 used a JavaScript config instead,
which this block does not replace. Tailwind v4 @theme colors from a palette
covers naming, OKLCH and removing the default colors.
@theme {
--color-1: #264653;
--color-2: #2a9d8f;
--color-3: #e9c46a;
--color-4: #f4a261;
--color-5: #e76f51;
--color-primary: #264653;
--color-secondary: #2a9d8f;
--color-accent: #e9c46a;
}SCSS variables
Sass variables, numbered, with the role names pointing at the first three.
$color-1: #264653;
$color-2: #2a9d8f;
$color-3: #e9c46a;
$color-4: #f4a261;
$color-5: #e76f51;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON and hex list
JSON holds the colors in order under colors, ready for a script, a design token tool or a test; the order is
the swatch order, so index 0 is the color that took the page's main color. The hex list is one color per line,
for anything that takes plain text.
{
"colors": [
"#264653",
"#2a9d8f",
"#e9c46a",
"#f4a261",
"#e76f51"
]
}#264653
#2a9d8f
#e9c46a
#f4a261
#e76f51Share page
Share page, the first row of the Share group, copies the address of a public page for the palette at
recolor.page/p/ followed by its hex codes: each color with its nearest CSS name, OKLCH values and the contrast of
black and white text, the code formats above, palettes with a similar hue, and a button that opens the palette in
Recolor. Copying it registers the palette with Recolor's server, which lets search engines list its page; a page
nobody copied still opens for whoever has the address, but asks search engines to leave it out.
For a page loaded from a web address the link also carries that address as ?site=, so the share page names the
site (its host, never the full address) and its button opens Recolor on that page. Its preview image, the picture a
chat app or a social site shows with the link, is then a screenshot of Recolor on that page in the palette, taken
once on Recolor's server. This example was made with https://example.com/ loaded:
https://recolor.page/p/264653-2a9d8f-e9c46a-f4a261-e76f51?site=https%3A%2F%2Fexample.com%2FSite CSS
Site CSS, a Pro tab of the Page group, is the repaint itself as a stylesheet for the real site, for the page
you have loaded. Link it after the site's own stylesheets, or paste it into the platform's custom CSS field (the
platform guides say where that is); it changes nothing else. It starts with a comment that names the
page and the palette and counts what the sheet leaves out, then the new colors as variables on :root, each noting
the page color it replaces, then the rules. For every color property Recolor changed, every rule that sets that
property is written again with its own selector, !important where the page had it, its layer, media, supports and
container queries, and nesting written out, so a rule that won on the page still wins. A rule written with
!important everywhere would beat inline styles and later rules such as color: inherit; in the check below,
that shortcut moved 154 colors on 6 of
the 9 pages.
Recolor checked it on 9 pages on October 9, 2026 (a fixture page, the three samples, tailwindcss.com, stripe.com, github.com, merknu.nl, www.shopify.com): each was
repainted in the app and then loaded bare with only the sheet, and all 121,016
computed colors matched. A sheet cannot
reach a color written on one element, in a style attribute or a color attribute such as fill, a rule inside
a shadow root, which no stylesheet of the page reaches, or a sheet Recolor could not read; nor images, video and
canvas. SVG pictures keep the page's own colors in it, and its comment counts them. Download saves it as recolor- with the host and the palette,
.css. A large site's sheet is large (github.com: 1,998 KB), and a
platform's field may not take that much; a linked file always does.
Before and after images, and review links
Images, the Page group's other Pro tab, renders the page on Recolor's server at 1280 or 1920 pixels wide, in its own colors and in the palette as you set it, as two PNG images up to 4,000 pixels tall that line up pixel for pixel, plus one with both side by side. They are yours alone and kept 7 days; 10 renders an hour. An SVG picture written into the page's CSS takes the palette in them too; one kept in a file of its own keeps its colors there.
A review link, the last row of the Share group, is a share page for a client with your note (up to 300 characters), a password if you set one, and an end after 30 days; it is never indexed, and is listed under Account. Limits has every number.
Coolors link and Link to this view
The Coolors link opens the same colors in Coolors, which uses the same hex-and-hyphen format. It works the other
way too: swap coolors.co/ in a Coolors link for recolor.page/#, as the URL format explains.
https://coolors.co/264653-2a9d8f-e9c46a-f4a261-e76f51The link to this view, in the Share group, is Recolor's own address with the palette after the #. For a page loaded from a web
address it also carries the page as ?site=, and scripts=0 when scripts are off, so whoever opens it sees the same
page in the same palette. For the dashboard or blog sample it carries the sample as ?sample=; for the landing
sample, which Recolor opens with anyway, or an uploaded file it carries only the palette. This example was made with
https://example.com/ loaded:
https://recolor.page/app?site=https%3A%2F%2Fexample.com%2F#264653-2a9d8f-e9c46a-f4a261-e76f51Common questions
Does the Tailwind export work with Tailwind CSS v3?
No. It is a v4 @theme block, which goes in your CSS. For v3, put the hex values under theme.extend.colors in tailwind.config.js yourself.
Can I export the palette as an image or a PDF?
No. The palette exports as text: code, a hex list and links. Pro renders the page itself, before and after, as PNG images.
Does the export include shades of each color?
No. It has one value per swatch, 2 to 10 of them, plus the three role names. Shades for a 50 to 950 scale come from other tools.
Can I rename the variables before copying?
No, not in the app: the names are color-1 to color-N and the three roles. Rename them in your editor after pasting.
Do I need an account to export?
No. Every format is one click on Copy, with no account. Only Share page tells Recolor's server about the palette: its colors, the host of the page it was made on, and your account if you are signed in.
Does the export include the website's own colors?
No, only the palette. To start from the site's own colors, use Use site colours in the Mapping panel first, then export.
Sources
- Theme variables, Tailwind CSS docs tailwindcss.com
- Using CSS custom properties, MDN developer.mozilla.org
- Variables, Sass documentation sass-lang.com
- Coolors coolors.co