@logomarks/lookbook 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to `@logomarks/lookbook` are documented here.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.3] — 2026-11-18
9
+
10
+ ### Added
11
+
12
+ - **`lookbook({ palettes })`**: more grounds and inks for the colour cards, `[ground, ink]`, dealt after the built-in twelve.
13
+ Default none, so a wall without them deals exactly the cards it did (the equivalence fixture is untouched). The site uses
14
+ it for the owner's modern set (flat, saturated grounds with the mark in black or white).
15
+
8
16
  ## [0.1.2] — 2026-11-15
9
17
 
10
18
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logomarks/lookbook",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A logomark dressed as a made-up brand, in sixty-odd looks: on a photo, glass, a colour, paper or a live gradient, or the mark itself redrawn (traced, constructed, reeded, pixelated, neon, split-flap, contoured, thermal, liquid chrome, holo foil, ASCII, embroidered, frosted, editorial and more). Pure functions returning HTML, the same on the server and in the browser, with their CSS (motion in CSS only, a still final frame, a Plain mode), an optical size for wide, slim or light marks, and a browser runner that starts only what's near the screen.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/wall.d.ts CHANGED
@@ -85,6 +85,11 @@ export type LookbookOptions = {
85
85
  faces: readonly Face[];
86
86
  /** The accent (acid lime, `ACCENT`, by default). */
87
87
  accent?: string;
88
+ /**
89
+ * More grounds and inks for the colour cards, `[ground, ink]`, dealt after the built-in twelve (the accent first). Default
90
+ * none, so a wall without them deals the same cards as before.
91
+ */
92
+ palettes?: readonly (readonly [string, string])[];
88
93
  /** Where a card links: `#slug` by default. */
89
94
  href?: (mark: WallMark) => string;
90
95
  /** Pictures in `assets.photos` that are never a card's ground (a site's other photos kept in the same folder). */
package/src/wall.js CHANGED
@@ -179,7 +179,8 @@ export const EVERY = 30;
179
179
  /**
180
180
  * A wall: `card`, `feed` and `backgrounds`, with the brand picker, the typefaces and the accent given here.
181
181
  *
182
- * @param options The brand picker, the faces, and optionally the accent, the links and the photos to skip.
182
+ * @param options The brand picker, the faces, and optionally the accent, more colour-card palettes, the links and the
183
+ * photos to skip.
183
184
  */
184
185
  export function lookbook(options) {
185
186
  const { brand: pickBrand, faces: FACES } = options;
@@ -187,7 +188,7 @@ export function lookbook(options) {
187
188
  const href = options.href ?? ((m) => `#${m.slug}`);
188
189
  const skip = options.skip;
189
190
  const skipped = (p) => !!skip && skip.test(p);
190
- const PALETTES = palettesOf(accent),
191
+ const PALETTES = [...palettesOf(accent), ...(options.palettes ?? [])],
191
192
  INKS = inksOf(accent),
192
193
  TONES = tonesOf(accent);
193
194