Blog / Style & brand

Guide

Share a Style Pack: Recolour 1,600 Drawings With Your Palette

How Levni style packs work, how to make your own palette for 1,600 drawings with one line of JSON, and how to share it with the community as an open pack.

A rocket on a lime sunburst, a coffee cup and a cat on an indigo panel, drawn by Levni in a custom indigo and lime style pack
Cover drawn by Levni from a JSON scene.

Every drawing in the Levni Folio is drawn with colour names, not colours. A rocket’s body is tone, its fin is coral, its outline is ink. That one decision is what makes this post possible: if you change what coral means, every one of the 1,600 drawings changes with it.

That map from names to colours is a style pack. Levni ships two, and this guide shows how to make your own in one line, how to make it good, and how to share it so other people can print the whole library in your palette.

The same scene, three packs

Here is one scene: a blue panel, a sunburst, a rocket, a coffee cup and a cat. Nothing changes between the three pictures below except the style pack.

The scene in the default riso pack: a blue panel, a mustard sunburst behind a rocket, a coffee cup and a cat

Riso is the house look: the inks of a risograph print shop, a strong blue, coral and mustard on warm paper.

The same scene in the miniature pack: aged paper, lapis blue, vermilion and gold ochre

Miniature is inspired by Tulip Era Ottoman painting, the period Levni is named after: aged paper, gold ochre, vermilion, turquoise, lapis and a sepia line.

The same scene in a custom pack: indigo panel, lime sunburst, red accents and a deep indigo line

The third one is a custom pack: the indigo, lime and red of the levni.dev brand. It took one line of JSON.

Make your own in one line

Set the scene’s style to an object that maps house colour names to your hex values:

{
  "style": {
    "blue": "#4B2FD6",
    "mustard": "#D6E521",
    "coral": "#FF3A44",
    "ink": "#1B1340",
    "paper": "#F3F1EA",
    "tone": "#B9AEF5",
    "tone-mustard": "#ECF3A0"
  },
  "elements": [ … ]
}

That is the exact pack behind the third picture. A few things to know:

  • The names you can map: paper, white, ink, blue, coral, green, mustard, dark, tone, tone-coral, tone-green, tone-mustard.
  • Leave colours out freely. Any name you do not map keeps its house value, so a two-colour brand only needs two lines.
  • Typos fail loudly. An unknown name or a value that is not a six-digit hex is an error, not a silent no-op.
  • It works everywhere a scene does: the CLI, the Node API, the MCP server, brand boards and poster series.

From the command line:

npx @levni/levni render scene.json cover.webp

Or ask your agent: “Draw this cover with Levni in our brand inks, #4B2FD6 and #D6E521.”

What makes a pack good

A style pack recolours drawings made by many hands, so it has to hold up across all of them, not just the one you are looking at. Some rules of thumb from building ours:

  1. Keep ink dark. Outlines carry the drawing. If ink is too light, every object goes soft at small sizes.
  2. Make tone a light version of blue. Most drawings fill their body with tone and sit on a blue panel. A tone that is too close to the panel makes objects disappear.
  3. Two main inks plus paper. The house rule for scenes applies to packs too: blue and one accent carry the picture, a third colour only as a small accent.
  4. Check contrast on both grounds. Look at a few drawings on paper and on a blue panel. The Library shows each drawing large, and any scene can be rendered twice in seconds.
  5. Test with many props, not one. A palette that flatters a rocket can ruin a lighthouse. Render a contact sheet with ten very different objects before you decide.

You can also try a look in the browser first: the editor changes the look of a whole design at once, and the inks demo on the homepage recolours real drawings live.

Share it with the community

A pack that works is worth sharing. Someone else is looking for exactly the palette you just tuned: a newspaper’s print colours, a 1970s transit map, a night mode for a dark site.

To propose a pack, open a style pack issue on GitHub with:

  • a short lowercase name, like bosphorus-night
  • the colour map as JSON
  • what it is for: a mood, a brand, a print process, a period
  • a render with the pack, if you have one

Good packs can ship in Levni as named packs next to riso and miniature, so anyone can write "style": "bosphorus-night". Named packs live in the engine’s style file with a short comment on their inspiration and your name in the credits, under the same MIT licence as the code.

Why palettes belong in the commons

Colour is one of the cheapest ways to make a picture feel like yours, and one of the easiest to lock away: most tools sell themes and brand kits as a paid tier. In Levni a palette is twelve lines of JSON that anyone can read, fork and improve. That is the whole idea behind the project, written in colour. The longer version is in the manifesto, and the other ways to contribute are on the community page.

FAQs

What is a Levni style pack?

A colour map from Levni's house colour names (ink, blue, coral, mustard, green, paper, tones) to your own hex values. Because every drawing uses colour names, one map recolours every drawing, panel and texture in a scene.

How do I use my brand colours in Levni?

Set the scene's style to an object of your inks, for example { "blue": "#4B2FD6", "mustard": "#D6E521" }. Colours you leave out keep the house value. Unknown names or non-hex values raise an error so a typo does not pass silently.

Which colour names can I map?

paper, white, ink, blue, coral, green, mustard, dark, tone, tone-coral, tone-green and tone-mustard.

How do I share a style pack with others?

Open a style pack proposal on GitHub with the colour map and what it is for. Good packs can ship in Levni as named packs, like riso and miniature, with your name in the credits.

Can I try a palette without installing anything?

Yes. The Levni editor at levni.dev/editor runs in the browser and lets you change the look and colours of a design, then download PNG or SVG.

Written by Ortak Alan

Ortak Alan is a Turkish publication that draws its article covers with Levni, and makes Levni. The engine is on GitHub.

Levni

Give your agent an illustrator.

Add the MCP server, describe the picture, read the critic, ship the cover.

Set up the MCP server →

Free, for real

Make one now. Keep making them for free.

Try Levni in your browser, then add it to Claude or Codex: it draws on your machine, so the $20 plan you already have is enough. No image credits, no second bill.