ShtukbaseStandard
package file→ .shtukbase/packages/lenses/kit/patterns/pictures.md

kit/patterns/pictures.md

51 lines, 3.6 KB.

  1. # Card pictures: the set's style
  2. A card picture is a small SVG drawing that the canvas shows at the left of a card (the card option `art`, see
  3. ["A map on a canvas"](map.md)). The style was accepted by the owner on 28.11.2026 for the Shtukbase standard map; the record of the decision is
  4. the project page `shtuks/projects/shtukbase-standard/icons.md`. Here is the standard itself, so that you can draw the same way in any base.
  5. ## Style
  6. - **Flat, no background tile.** The picture stands right on the card: no square or circle plate under the drawing.
  7. A large rectangle is allowed only if it is the thing itself (a window, a board, a screen).
  8. - **Several palette colors in one picture** — usually two to four main, rich ones.
  9. - **No outline.** The form is set by fill; thin white details (lines, check marks) only inside colored shapes.
  10. - **Simple, large shapes, rounded corners.** The drawing fills the field from about 8 to 88.
  11. - **An SVG file, `viewBox="0 0 96 96"`, no text**, no raster inserts, gradients or filters.
  12. ## Palette
  13. The main colors are the Notion palette. Shades go on details: a highlight, a shadow, a second face.
  14. | Color | Main | Light shades | Dark shades |
  15. |---|---|---|---|
  16. | red | `#FF7369` | `#FFC2BD`, `#FFE4E1` | |
  17. | orange | `#FFA344` | | `#E8842A` |
  18. | yellow | `#FFDC49` | `#FFF0A8` | `#CB912F`, `#9A6700` |
  19. | green | `#4DAB9A` | `#E4F1EE`, `#9CC8BC`, `#8FD0C3`, `#7CE0B0`, `#6FE3C1` | |
  20. | blue | `#529CCA` | `#DCEEF7`, `#A8D3EC` | `#337EA9` |
  21. | purple | `#9A6DD7` | `#EDE4F7` | `#7A52B8` |
  22. | pink | `#E255A1` | | |
  23. | neutrals | | `#FFFFFF`, `#B4B2AC` | `#3D4A66` |
  24. The palette in code is `PALETTE` in `apps/standard/packages/lenses/kit/bin/shtukbase-icons.js`; the table and the code change together. A new shade
  25. is added there too, not straight into a picture.
  26. ## How to draw a new picture
  27. 1. **A blank.** `node apps/standard/packages/lenses/kit/bin/shtukbase-icons.js new <base>/assets/icons/<record-name>.svg --color green` —
  28. a file with a 96×96 canvas, a main shape, a highlight, a second color and a white detail; the rules are in the comments.
  29. 2. **The drawing.** One recognizable thing of 3–8 shapes: `rect` with `rx`, `circle`, `ellipse`, `path`. The main color is the
  30. thing itself, a light shade is the highlight, the second color is an accent that says what it is (a berry on a bush, a drop by a barrel).
  31. A line is `stroke="#FFFFFF"` (or a dark shade of the shape's color) of width 3–5 and `stroke-linecap="round"`.
  32. 3. **Style check.** `node apps/standard/packages/lenses/kit/bin/shtukbase-icons.js check <base>/assets/icons` — an error if the
  33. `viewBox` is wrong, there is text, a raster, a gradient or a color outside the palette; a warning if the main color is single or there is a
  34. rectangle under the drawing covering almost the whole canvas.
  35. 4. **A look at card sizes.** `node apps/standard/packages/lenses/kit/bin/shtukbase-icons.js sheet <base>/assets/icons -o /tmp/sheet.html` —
  36. a sheet with all the folder's pictures at 36, 48, 84 and 108 pixels (the "Names" strip, a small, a medium and a
  37. large card). Open it in a browser: at 36 pixels the thing must be readable. The sheet is a service file, it is not put in the base.
  38. 5. **Connecting.** The path to the file from the base root goes in a record field (`art: /assets/icons/<name>.svg`), and in the area's cards
  39. the option `art: art`.
  40. The file is named as the record (`plants/dill.md` → `assets/icons/dill.svg`). An example is the 14 pictures in
  41. `apps/standard/packages/lenses/kit/examples/base/assets/icons/`; they are drawn in the same style, and `npm run check` in `apps/standard/packages/lenses/kit` checks them.