package file→ .shtukbase/packages/lenses/kit/patterns/pictures.md
kit/patterns/pictures.md
51 lines, 3.6 KB.
- # Card pictures: the set's style
- A card picture is a small SVG drawing that the canvas shows at the left of a card (the card option `art`, see
- ["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
- 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.
- ## Style
- - **Flat, no background tile.** The picture stands right on the card: no square or circle plate under the drawing.
- A large rectangle is allowed only if it is the thing itself (a window, a board, a screen).
- - **Several palette colors in one picture** — usually two to four main, rich ones.
- - **No outline.** The form is set by fill; thin white details (lines, check marks) only inside colored shapes.
- - **Simple, large shapes, rounded corners.** The drawing fills the field from about 8 to 88.
- - **An SVG file, `viewBox="0 0 96 96"`, no text**, no raster inserts, gradients or filters.
- ## Palette
- The main colors are the Notion palette. Shades go on details: a highlight, a shadow, a second face.
- | Color | Main | Light shades | Dark shades |
- |---|---|---|---|
- | red | `#FF7369` | `#FFC2BD`, `#FFE4E1` | |
- | orange | `#FFA344` | | `#E8842A` |
- | yellow | `#FFDC49` | `#FFF0A8` | `#CB912F`, `#9A6700` |
- | green | `#4DAB9A` | `#E4F1EE`, `#9CC8BC`, `#8FD0C3`, `#7CE0B0`, `#6FE3C1` | |
- | blue | `#529CCA` | `#DCEEF7`, `#A8D3EC` | `#337EA9` |
- | purple | `#9A6DD7` | `#EDE4F7` | `#7A52B8` |
- | pink | `#E255A1` | | |
- | neutrals | | `#FFFFFF`, `#B4B2AC` | `#3D4A66` |
- 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
- is added there too, not straight into a picture.
- ## How to draw a new picture
- 1. **A blank.** `node apps/standard/packages/lenses/kit/bin/shtukbase-icons.js new <base>/assets/icons/<record-name>.svg --color green` —
- 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.
- 2. **The drawing.** One recognizable thing of 3–8 shapes: `rect` with `rx`, `circle`, `ellipse`, `path`. The main color is the
- 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).
- A line is `stroke="#FFFFFF"` (or a dark shade of the shape's color) of width 3–5 and `stroke-linecap="round"`.
- 3. **Style check.** `node apps/standard/packages/lenses/kit/bin/shtukbase-icons.js check <base>/assets/icons` — an error if the
- `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
- rectangle under the drawing covering almost the whole canvas.
- 4. **A look at card sizes.** `node apps/standard/packages/lenses/kit/bin/shtukbase-icons.js sheet <base>/assets/icons -o /tmp/sheet.html` —
- a sheet with all the folder's pictures at 36, 48, 84 and 108 pixels (the "Names" strip, a small, a medium and a
- 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.
- 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
- the option `art: art`.
- The file is named as the record (`plants/dill.md` → `assets/icons/dill.svg`). An example is the 14 pictures in
- `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.