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.
Themes
| Colour | Light | Dark | Used for |
|---|---|---|---|
page | #f8f6f1 | #1b1916 | around the board |
board | #fffdf8 | #23201d | the board |
ink | #1a1a1a | #e8e6e3 | box borders and the frame |
thin | #1a1a1a | #e8e6e3 | grid lines |
given | #111111 | #f2f0ed | given digits, cage outlines, clue circle rims |
placed | #2357c7 | #8fb6ff | placed digits (solver output; not drawn by render_svg) |
cand | #5f5a54 | #b3afa9 | candidates, row / column labels, equal-sum segment outlines |
shade | #d8d8d8 | #55504a | window / extra region shading |
diag | #9a958e | #c99a5b | diagonals |
clue_bg | #fffdf8 | #23201d | behind small clues (circles, corner sum boxes) |
odd | #c9c5bf | #4a4640 | odd-cell circles |
even | #c9c5bf | #4a4640 | even-cell squares |
low | #e2ded8 | #3a3732 | diamonds in cells marked low |
high | #a9a49d | #5e5953 | diamonds in cells marked high |
text | #1f1e1d | #ecebe8 | running 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.
| Line | Colour |
|---|---|
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).
| Band | Colour |
|---|---|
| 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.
| Size | Value | Measures |
|---|---|---|
thin | 0.031 | grid lines |
box | 0.07 | box borders |
frame | 0.07 | the board's outer frame |
box_dark | 0.09 | box borders in the dark theme (light lines on dark read thinner) |
digit | 0.7 | digit height |
given_w | 450 | font weight of givens |
placed_w | 360 | font weight of placed digits (solver output; not drawn by render_svg) |
halo_light | 0.034 | outline in the board colour around each digit, so it reads over lines (light theme) |
halo_dark | 0.05 | the same outline, dark theme |
line | 0.15 | default width of line rules (whisper, renban, ...) |
thermo | 0.3 | thermometer width |
bulb | 0.375 | thermometer bulb radius |