@miragon/team-topologies-renderer 0.4.0 → 0.6.0

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.
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Miragon design tokens — the single source of truth for every non-notation colour in the renderer.
3
+ *
4
+ * Values mirror the Miragon corporate identity: the `miragon-brand:modeler-tool-design` skill in
5
+ * `Miragon/corporate-identity`, whose vendored `cd-tokens.generated.css` (next to this file) defines
6
+ * the `--cd-*` custom properties, generated from `brand/tokens.json`. Re-copy that CSS from the skill
7
+ * to update; never fork the hex values by hand. `test/theme.sync.test.ts` fails if this mirror drifts
8
+ * from the vendored CSS.
9
+ *
10
+ * Pure data — no DOM, no imports — so it stays inside the P1 DOM-free discipline and can be consumed
11
+ * by the SVG-drawing constants in `draw/styles.ts`.
12
+ *
13
+ * Brand rule: blue leads (`blau` — surfaces, buttons, links, selection), green accents (`gruen` — key
14
+ * visual, highlights; a fill, never body text on white). The four Team Topologies team-type and
15
+ * interaction colours are the official notation and live in `schema-model/notation.ts` — they are NOT
16
+ * part of this brand ramp.
17
+ */
18
+ /** Raw Miragon brand ramp + functional layer — exact `--cd-*` values. */
19
+ export declare const MIRAGON: {
20
+ /** Primary: surfaces, buttons, links, selection, backgrounds. */
21
+ readonly blau: "#335DE5";
22
+ /** Deeper blue for links / accent text on white (WCAG AA, ~5.5:1). */
23
+ readonly blauLink: "#2B50D4";
24
+ /** Lightened blue for accents on dark surfaces (unused here — the canvas is light-only). */
25
+ readonly blauHell: "#6B8AFF";
26
+ /** Accent: key visual, highlights, the brand gradient. Bright — a fill, never text on white. */
27
+ readonly gruen: "#00E676";
28
+ /** Calm neutral surface (warm off-white) — the paper surround. */
29
+ readonly grau: "#F9F7F7";
30
+ /** Text on light; not pure black. */
31
+ readonly schwarz: "#1D1D1D";
32
+ readonly weiss: "#FFFFFF";
33
+ /** Functional / status layer (own layer beside the brand palette; AA as text on white). */
34
+ readonly success: "#0B7A55";
35
+ readonly warning: "#92610A";
36
+ readonly danger: "#C92A2A";
37
+ readonly info: "#2B50D4";
38
+ /** Signature brand gradient — brand moments only. Use verbatim. */
39
+ readonly gradientBrand: "linear-gradient(120deg, #335DE5 30%, #00E676)";
40
+ };
41
+ /**
42
+ * Every `--cd-*` token this repo depends on, mapped to the value it MUST hold. The drift test parses
43
+ * `cd-tokens.generated.css` and asserts each entry matches, so re-copying the vendored CSS with a
44
+ * changed value fails CI until this mirror (and `MIRAGON`) is updated too.
45
+ */
46
+ export declare const CD_TOKENS: Record<string, string>;
47
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,yEAAyE;AACzE,eAAO,MAAM,OAAO;IAClB,iEAAiE;;IAEjE,sEAAsE;;IAEtE,4FAA4F;;IAE5F,gGAAgG;;IAEhG,kEAAkE;;IAElE,qCAAqC;;;IAGrC,2FAA2F;;;;;IAK3F,mEAAmE;;CAE3D,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAiB5C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miragon/team-topologies-renderer",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Render and edit Team Topologies diagrams in the browser, with a framework-agnostic viewer and modeler built on diagram-js.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,15 +37,15 @@
37
37
  "test:browser": "npm --prefix ../.. run test:browser"
38
38
  },
39
39
  "dependencies": {
40
- "@miragon/team-topologies-schema-model": "0.4.0",
41
- "diagram-js": "15.18.0",
40
+ "@miragon/team-topologies-schema-model": "0.6.0",
41
+ "diagram-js": "15.22.0",
42
42
  "didi": "11.0.0",
43
43
  "tiny-svg": "4.1.4"
44
44
  },
45
45
  "devDependencies": {
46
46
  "typescript": "6.0.3",
47
- "vite": "8.1.0",
47
+ "vite": "8.1.4",
48
48
  "vite-plugin-dts": "5.0.3",
49
- "vitest": "4.1.9"
49
+ "vitest": "4.1.10"
50
50
  }
51
51
  }