@krizaka/tokens 3.64.0 → 3.64.1
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/dist/shop-presets.css +1349 -0
- package/dist/shop-presets.d.ts +20 -0
- package/dist/shop-presets.js +6 -0
- package/package.json +20 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ShopPresetId = "cleaning-forfait" | "cleaning-net" | "coaching-approche" | "coaching-studio" | "consulting-bureau" | "consulting-cabinet" | "pets-canal" | "pets-carnet" | "salon-atelier" | "salon-vitrine" | "workshop-atelier" | "workshop-etabli";
|
|
2
|
+
export type ShopTrade = "salon" | "pets" | "coaching" | "workshop" | "cleaning" | "consulting";
|
|
3
|
+
export interface ShopPreset {
|
|
4
|
+
readonly id: ShopPresetId;
|
|
5
|
+
readonly version: number;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly trades: readonly ShopTrade[];
|
|
8
|
+
readonly paper: "plain" | "seyes" | "kraft" | "washi";
|
|
9
|
+
/** An accent of the brands: `akinaza`, or `akinaza:accent-2` (the copper). */
|
|
10
|
+
readonly accent: string;
|
|
11
|
+
/** The accents the owner may choose within this look: all tested. */
|
|
12
|
+
readonly accents: readonly string[];
|
|
13
|
+
readonly faces: { readonly title: "display" | "product-display"; readonly note: "mono" | "cahier" };
|
|
14
|
+
readonly density: "compact" | "airy";
|
|
15
|
+
readonly photo: { readonly grade: "none" | "warm" | "cool"; readonly grain: 0 | 1; readonly radius: "none" | "xs" };
|
|
16
|
+
/** The default variant per section type when a section is added. */
|
|
17
|
+
readonly variants: { readonly [type: string]: string };
|
|
18
|
+
}
|
|
19
|
+
/** The twelve look presets of a shop page, two per trade (ADR-007 §4). */
|
|
20
|
+
export declare const shopPresets: readonly ShopPreset[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The look presets of a shop page (ADR-007 §4): two per trade — accent, paper, faces, density, photo treatment and the default
|
|
3
|
+
* variant of each section. `shop-presets.css` applies them: `[data-shop-preset="<id>"]`, and `[data-shop-accent]` for another
|
|
4
|
+
* accent of the preset's tested list.
|
|
5
|
+
*/
|
|
6
|
+
export const shopPresets = /* @__PURE__ */ Object.freeze([{"id":"cleaning-forfait","version":1,"name":"Forfait","trades":["cleaning"],"paper":"seyes","accent":"akinaza","accents":["akinaza","akinaza:accent-2","krizaka","yomizaka"],"faces":{"title":"product-display","note":"mono"},"density":"compact","photo":{"grade":"none","grain":0,"radius":"xs"},"variants":{"hero":"banner","services":"cards","booking":"panel","faq":"list","policies":"inline"}},{"id":"cleaning-net","version":1,"name":"Net","trades":["cleaning"],"paper":"plain","accent":"krizaka","accents":["krizaka","akinaza","akinaza:accent-2","yomizaka"],"faces":{"title":"product-display","note":"mono"},"density":"compact","photo":{"grade":"cool","grain":0,"radius":"xs"},"variants":{"hero":"poster","services":"menu","booking":"strip","reviews":"strip","policies":"inline"}},{"id":"coaching-approche","version":1,"name":"Approche","trades":["coaching"],"paper":"washi","accent":"yomizaka","accents":["yomizaka","akinaza","akinaza:accent-2","krizaka"],"faces":{"title":"display","note":"mono"},"density":"airy","photo":{"grade":"cool","grain":0,"radius":"none"},"variants":{"hero":"banner","services":"cards","booking":"panel","story":"quote","faq":"list"}},{"id":"coaching-studio","version":1,"name":"Studio","trades":["coaching"],"paper":"plain","accent":"krizaka","accents":["krizaka","akinaza","akinaza:accent-2","yomizaka"],"faces":{"title":"product-display","note":"mono"},"density":"compact","photo":{"grade":"none","grain":0,"radius":"xs"},"variants":{"hero":"poster","services":"cards","booking":"panel","reviews":"summary-cards","story":"owner","faq":"list"}},{"id":"consulting-bureau","version":1,"name":"Bureau","trades":["consulting"],"paper":"plain","accent":"yomizaka","accents":["yomizaka","akinaza","akinaza:accent-2","krizaka"],"faces":{"title":"product-display","note":"mono"},"density":"compact","photo":{"grade":"none","grain":0,"radius":"xs"},"variants":{"hero":"banner","services":"cards","booking":"panel","story":"owner","team":"row"}},{"id":"consulting-cabinet","version":1,"name":"Cabinet","trades":["consulting"],"paper":"seyes","accent":"krizaka","accents":["krizaka","akinaza","akinaza:accent-2","yomizaka"],"faces":{"title":"display","note":"mono"},"density":"airy","photo":{"grade":"none","grain":0,"radius":"none"},"variants":{"hero":"split","services":"index","visit":"card","faq":"list","team":"cards"}},{"id":"pets-canal","version":1,"name":"Canal","trades":["pets"],"paper":"plain","accent":"akinaza","accents":["akinaza","akinaza:accent-2","krizaka","yomizaka"],"faces":{"title":"product-display","note":"cahier"},"density":"compact","photo":{"grade":"none","grain":0,"radius":"xs"},"variants":{"hero":"poster","services":"menu","booking":"strip","gallery":"filmstrip","visit":"map"}},{"id":"pets-carnet","version":1,"name":"Carnet","trades":["pets"],"paper":"kraft","accent":"akinaza","accents":["akinaza","akinaza:accent-2","yomizaka"],"faces":{"title":"display","note":"cahier"},"density":"airy","photo":{"grade":"warm","grain":1,"radius":"none"},"variants":{"hero":"split","services":"index","booking":"panel","gallery":"wall","video":"tv","bulletin":"board"}},{"id":"salon-atelier","version":1,"name":"Atelier","trades":["salon"],"paper":"plain","accent":"akinaza:accent-2","accents":["akinaza:accent-2","akinaza","krizaka","yomizaka"],"faces":{"title":"display","note":"mono"},"density":"airy","photo":{"grade":"warm","grain":0,"radius":"none"},"variants":{"hero":"split","services":"menu","booking":"panel","gallery":"mosaic","reviews":"quote","story":"quote","visit":"split"}},{"id":"salon-vitrine","version":1,"name":"Vitrine","trades":["salon"],"paper":"plain","accent":"akinaza","accents":["akinaza","akinaza:accent-2","krizaka","yomizaka"],"faces":{"title":"product-display","note":"mono"},"density":"compact","photo":{"grade":"none","grain":0,"radius":"xs"},"variants":{"hero":"poster","services":"menu","booking":"strip","gallery":"filmstrip","reviews":"summary-cards","visit":"card"}},{"id":"workshop-atelier","version":1,"name":"Atelier","trades":["workshop"],"paper":"kraft","accent":"akinaza:accent-2","accents":["akinaza:accent-2","akinaza","yomizaka"],"faces":{"title":"display","note":"cahier"},"density":"airy","photo":{"grade":"warm","grain":1,"radius":"none"},"variants":{"hero":"split","services":"index","booking":"panel","gallery":"wall","story":"owner"}},{"id":"workshop-etabli","version":1,"name":"Établi","trades":["workshop"],"paper":"seyes","accent":"krizaka","accents":["krizaka","akinaza","akinaza:accent-2","yomizaka","orazaka"],"faces":{"title":"product-display","note":"mono"},"density":"compact","photo":{"grade":"none","grain":0,"radius":"xs"},"variants":{"hero":"banner","services":"menu","booking":"strip","gallery":"grid","visit":"card"}}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krizaka/tokens",
|
|
3
|
-
"version": "3.64.
|
|
3
|
+
"version": "3.64.1",
|
|
4
4
|
"description": "The Krizaka semantic design tokens (--kz-*) and the brand themes (Krizaka, Orazaka, Yomizaka, Akinaza; the paused Orochia, Yasakia, Yororis and Kachizaka deprecated): one DTCG source compiled to CSS (dark, light, media invariants), typed constants and React Native themes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"krizaka",
|
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"./tokens.css": "./dist/tokens.css",
|
|
36
36
|
"./appearance.css": "./dist/appearance.css",
|
|
37
|
+
"./shop-presets.css": "./dist/shop-presets.css",
|
|
38
|
+
"./shop-presets": {
|
|
39
|
+
"types": "./dist/shop-presets.d.ts",
|
|
40
|
+
"import": "./dist/shop-presets.js"
|
|
41
|
+
},
|
|
37
42
|
"./brands/krizaka.css": "./dist/brands/krizaka.css",
|
|
38
43
|
"./brands/orazaka.css": "./dist/brands/orazaka.css",
|
|
39
44
|
"./brands/orochia.css": "./dist/brands/orochia.css",
|
|
@@ -98,6 +103,13 @@
|
|
|
98
103
|
"gzip": true,
|
|
99
104
|
"rolldown": false
|
|
100
105
|
},
|
|
106
|
+
{
|
|
107
|
+
"name": "./shop-presets.css",
|
|
108
|
+
"path": "dist/shop-presets.css",
|
|
109
|
+
"limit": "3.2 kB",
|
|
110
|
+
"gzip": true,
|
|
111
|
+
"rolldown": false
|
|
112
|
+
},
|
|
101
113
|
{
|
|
102
114
|
"name": ".",
|
|
103
115
|
"path": "dist/index.js",
|
|
@@ -109,6 +121,12 @@
|
|
|
109
121
|
"path": "dist/native.js",
|
|
110
122
|
"limit": "3 kB",
|
|
111
123
|
"gzip": true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "./shop-presets",
|
|
127
|
+
"path": "dist/shop-presets.js",
|
|
128
|
+
"limit": "1.5 kB",
|
|
129
|
+
"gzip": true
|
|
112
130
|
}
|
|
113
131
|
],
|
|
114
132
|
"scripts": {
|
|
@@ -117,6 +135,6 @@
|
|
|
117
135
|
"typecheck": "tsc --noEmit",
|
|
118
136
|
"test": "vitest run",
|
|
119
137
|
"size": "size-limit",
|
|
120
|
-
"publint": "publint && attw --pack . --profile esm-only --exclude-entrypoints ./tokens.css ./appearance.css ./brands/krizaka.css ./brands/orazaka.css ./brands/orochia.css ./brands/yasakia.css ./brands/yazakia.css ./brands/yororis.css ./brands/yomizaka.css ./brands/kachizaka.css ./brands/akinaza.css ./brands/scoped.css"
|
|
138
|
+
"publint": "publint && attw --pack . --profile esm-only --exclude-entrypoints ./tokens.css ./appearance.css ./shop-presets.css ./brands/krizaka.css ./brands/orazaka.css ./brands/orochia.css ./brands/yasakia.css ./brands/yazakia.css ./brands/yororis.css ./brands/yomizaka.css ./brands/kachizaka.css ./brands/akinaza.css ./brands/scoped.css"
|
|
121
139
|
}
|
|
122
140
|
}
|