@miragon/slidev-validator 0.8.4 → 0.9.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miragon/slidev-validator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Miragon Slidev deck validator: a configurable design-system linter (stable rule IDs, off/warn/error severities, extends/overrides/exceptions) shipped as a versioned CLI so central guardrail improvements reach decks over npm instead of a frozen copy.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"markdown-it": "15.0.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@slidev/parser": "53.
|
|
40
|
-
"playwright-chromium": "1.65.
|
|
39
|
+
"@slidev/parser": "53.2.0",
|
|
40
|
+
"playwright-chromium": "1.65.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@miragon/slidev-toolkit": ">=2.0.0 <3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$description": "The Miragon palette, machine-readable. This file is the ONLY place the validator keeps brand colour values, so the `brand-palette` and `brand-logo-asset` rules cannot drift apart from each other or grow a hand-maintained copy inside a rule. Mirrors the miragon-brand plugin, skill `corporate-design`, `assets/tokens.json`; where the two disagree, tokens.json wins and this file gets pulled back in line.",
|
|
3
|
-
"$source": "miragon-brand plugin -> skills/corporate-design/assets/tokens.json (color.*, functional.*,
|
|
3
|
+
"$source": "miragon-brand plugin -> skills/corporate-design/assets/tokens.json (color.*, functional.*, logo.*)",
|
|
4
4
|
"$rule": "brand-review rule B1 (exact palette colours) is a HARD fail, hence category `required` / default `error`.",
|
|
5
5
|
|
|
6
6
|
"palette": [
|
|
@@ -11,21 +11,9 @@
|
|
|
11
11
|
{ "name": "weiss", "hex": "#FFFFFF", "role": "surface", "note": "Text on colour, surfaces." },
|
|
12
12
|
{ "name": "blau-link", "hex": "#2B50D4", "role": "interaction", "note": "Derived from blau: links and accent text on white, 6.56:1 (AA). Also tokens.json functional.info." },
|
|
13
13
|
{ "name": "blau-hell", "hex": "#6B8AFF", "role": "interaction-dark", "note": "Derived from blau: links and accents on dark ground." },
|
|
14
|
-
{ "name": "
|
|
15
|
-
{ "name": "
|
|
16
|
-
{ "name": "danger", "hex": "#
|
|
17
|
-
],
|
|
18
|
-
|
|
19
|
-
"restricted": [
|
|
20
|
-
{
|
|
21
|
-
"name": "mesh-hero",
|
|
22
|
-
"hexes": ["#1A1A4E", "#0D0D2B", "#00C853"],
|
|
23
|
-
"files": [
|
|
24
|
-
"packages/toolkit/components/BrandMeshBackground.vue",
|
|
25
|
-
"packages/toolkit/styles/theme.css"
|
|
26
|
-
],
|
|
27
|
-
"note": "tokens.json gradient.mesh-hero. Deliberately outside the base palette and valid ONLY for the animated hero shader and its CSS fallback tokens. #335DE5 and #00E676 are the other two stops and are already palette values."
|
|
28
|
-
}
|
|
14
|
+
{ "name": "warning", "hex": "#FFB000", "role": "status", "note": "tokens.json functional.warning and warning-hell. STATE only, never a design colour. Never text on a light ground (1.83:1). functional.success is gruen and follows the same rule." },
|
|
15
|
+
{ "name": "danger", "hex": "#CD1839", "role": "status", "note": "tokens.json functional.danger. STATE only, never a design colour. AA as text on white." },
|
|
16
|
+
{ "name": "danger-hell", "hex": "#FB6D73", "role": "status-dark", "note": "tokens.json functional.danger-hell: the danger state on dark ground. STATE only." }
|
|
29
17
|
],
|
|
30
18
|
|
|
31
19
|
"scan": {
|
|
@@ -37,9 +25,10 @@
|
|
|
37
25
|
"deck/**/*.excalidraw.svg"
|
|
38
26
|
],
|
|
39
27
|
"exclude": [
|
|
40
|
-
"packages/toolkit/assets/*.svg"
|
|
28
|
+
"packages/toolkit/assets/*.svg",
|
|
29
|
+
"packages/toolkit/styles/cd-tokens.generated.css"
|
|
41
30
|
],
|
|
42
|
-
"$excludeReason": "The logo vectors are official artwork, not authored colour: they are checked byte-for-intent by the `brand-logo-asset` rule below instead."
|
|
31
|
+
"$excludeReason": "The logo vectors are official artwork, not authored colour: they are checked byte-for-intent by the `brand-logo-asset` rule below instead. `cd-tokens.generated.css` is the unchanged copy of the miragon-brand token export (listed in `.miragon/brand-assets.yaml`, checked with `sha256sum -c` in CI), so it is the palette itself rather than colour chosen in this repo."
|
|
43
32
|
},
|
|
44
33
|
|
|
45
34
|
"logo": {
|
|
@@ -222,7 +222,7 @@ export function findColorKeywords(line) {
|
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* The allowed colours for one repo-relative file: the palette, plus any
|
|
225
|
-
* restricted set this file is explicitly allowlisted for
|
|
225
|
+
* restricted set this file is explicitly allowlisted for.
|
|
226
226
|
* Returns Map<'#rrggbb', label>.
|
|
227
227
|
*/
|
|
228
228
|
export function allowedFor(relPath) {
|