Skip to main content

Palette

Every size and colour of the default drawing, from docs/palette.json (format sudoku-palette, version 1); Drawing and style says how each rule uses them. Generated by tools/gen_palette_md.py. None of it is part of a puzzle format: a renderer may draw differently.

Preview​

The example puzzles drawn by tools/render_svg.py, light theme above, dark below.

mini-thermo-kropki killer-4x4 jigsaw-6x6

mini-thermo-kropki, dark killer-4x4, dark jigsaw-6x6, dark

Themes​

ColourLightDarkUsed for
page#f8f6f1#1b1916around the board
board#fffdf8#23201dthe board
ink#1a1a1a#e8e6e3box borders and the frame
thin#1a1a1a#e8e6e3grid lines
given#111111#f2f0edgiven digits, cage outlines, clue circle rims
placed#2357c7#8fb6ffplaced digits (solver output; not drawn by render_svg)
cand#5f5a54#b3afa9candidates, row / column labels, equal-sum segment outlines
shade#d8d8d8#55504awindow / extra region shading
diag#9a958e#c99a5bdiagonals
clue_bg#fffdf8#23201dbehind small clues (circles, corner sum boxes)
odd#c9c5bf#4a4640odd-cell circles
even#c9c5bf#4a4640even-cell squares
low#e2ded8#3a3732diamonds in cells marked low
high#a9a49d#5e5953diamonds in cells marked high
text#1f1e1d#ecebe8running text beside a board (not drawn by render_svg)

Line colours​

The community defaults, as measured on 6,217 published puzzles; the same in both themes.

LineColour
whisper#67f067
renban#f067f0
region_sum#2ecbff
entropic#ffccaa
modular#33bbaa
parity#ff6666
palindrome#aaaaaa
zipper#c8adeb
thermo#cccccc
slow_thermo#cfcfcf
between#aaaaaa
lockout#aaaaaa
double_arrow#aaaaaa
dutch_whisper#ffa600

Region shading​

region colour rules take these in rule order, repeating.

#f4cccc #fce5cd #fff2cc #d9ead3 #d0e0e3 #c9daf8 #d9d2e9 #ead1dc #e6e6e6

Bands​

A colour per band, for software that shows a card (render_svg draws boards only).

BandColour
Very Easy#7ccf6b
Easy#2f9e44
Medium#f2b705
Hard#ee6a1a
Very Hard#c92a2a
Expert#9c36b5
Extreme#e665c0
Unknown#9a958e

Sizes​

In cell units (1 = a cell's side); font weights as CSS weights.

SizeValueMeasures
thin0.031grid lines
box0.07box borders
frame0.07the board's outer frame
box_dark0.09box borders in the dark theme (light lines on dark read thinner)
digit0.7digit height
given_w450font weight of givens
placed_w360font weight of placed digits (solver output; not drawn by render_svg)
halo_light0.034outline in the board colour around each digit, so it reads over lines (light theme)
halo_dark0.05the same outline, dark theme
line0.15default width of line rules (whisper, renban, ...)
thermo0.3thermometer width
bulb0.375thermometer bulb radius