@bpmnkit/astro-shared 0.0.16 → 0.1.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.
- package/README.md +4 -2
- package/package.json +6 -4
- package/src/background.css +15 -89
- package/src/tokens.css +80 -27
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<a href="https://bpmnkit.com"><img src="https://bpmnkit.com/favicon.svg" width="72" height="72" alt="BPMN Kit logo"></a>
|
|
3
3
|
<h1>@bpmnkit/astro-shared</h1>
|
|
4
|
-
<p>Shared CSS design tokens,
|
|
4
|
+
<p>Shared CSS design tokens, page ground, site metadata, and SEO helpers for BPMN Kit Astro apps</p>
|
|
5
5
|
|
|
6
6
|
[](https://www.npmjs.com/package/@bpmnkit/astro-shared)
|
|
7
7
|
[](https://github.com/bpmnkit/monorepo/blob/main/LICENSE)
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## Overview
|
|
18
18
|
|
|
19
|
-
`@bpmnkit/astro-shared` provides shared CSS imports, site metadata, and SEO building blocks used across BPMN Kit's Astro-based apps (landing page, docs, learn, blog). It
|
|
19
|
+
`@bpmnkit/astro-shared` provides shared CSS imports, site metadata, and SEO building blocks used across BPMN Kit's Astro-based apps (landing page, docs, learn, blog). It exposes the bpmnkit.com design system's tokens — derived from the `--bpmnkit-ds-*` set `@bpmnkit/ui` owns, under the same short names the landing site reads — sets the flat page ground, and ships a `<Seo>` head component plus schema.org JSON-LD helpers so every site emits consistent titles, canonicals, Open Graph tags, and structured data.
|
|
20
20
|
|
|
21
21
|
This package is primarily intended for internal use by BPMN Kit's own Astro applications.
|
|
22
22
|
|
|
@@ -95,6 +95,7 @@ import { articleJsonLd } from "@bpmnkit/astro-shared/seo.js"
|
|
|
95
95
|
| [`@bpmnkit/api`](https://www.npmjs.com/package/@bpmnkit/api) | Camunda 8 REST API TypeScript client |
|
|
96
96
|
| [`@bpmnkit/ascii`](https://www.npmjs.com/package/@bpmnkit/ascii) | Render BPMN diagrams as Unicode ASCII art |
|
|
97
97
|
| [`@bpmnkit/docspack`](https://www.npmjs.com/package/@bpmnkit/docspack) | BPMN Kit docs as an offline docspack package for AI agents |
|
|
98
|
+
| [`@bpmnkit/camunda-docspack`](https://www.npmjs.com/package/@bpmnkit/camunda-docspack) | Camunda 8 docs as an offline docspack package for AI agents |
|
|
98
99
|
| [`@bpmnkit/ui`](https://www.npmjs.com/package/@bpmnkit/ui) | Shared design tokens and UI components |
|
|
99
100
|
| [`@bpmnkit/profiles`](https://www.npmjs.com/package/@bpmnkit/profiles) | Shared auth, profile storage, and client factories for CLI & proxy |
|
|
100
101
|
| [`@bpmnkit/operate`](https://www.npmjs.com/package/@bpmnkit/operate) | Monitoring & operations frontend for Camunda clusters |
|
|
@@ -105,6 +106,7 @@ import { articleJsonLd } from "@bpmnkit/astro-shared/seo.js"
|
|
|
105
106
|
| [`@bpmnkit/patterns`](https://www.npmjs.com/package/@bpmnkit/patterns) | Domain process patterns for BPMNKit AIKit |
|
|
106
107
|
| [`@bpmnkit/reebe-wasm`](https://www.npmjs.com/package/@bpmnkit/reebe-wasm) | WebAssembly BPMN engine for browser simulation |
|
|
107
108
|
| [`@bpmnkit/worker-client`](https://www.npmjs.com/package/@bpmnkit/worker-client) | Thin Zeebe REST client for standalone workers |
|
|
109
|
+
| [`@bpmnkit/user-tasks`](https://www.npmjs.com/package/@bpmnkit/user-tasks) | Embeddable user task widget for Camunda 8 |
|
|
108
110
|
| [`@bpmnkit/cli-sdk`](https://www.npmjs.com/package/@bpmnkit/cli-sdk) | Plugin authoring SDK for the casen CLI |
|
|
109
111
|
| [`@bpmnkit/create-casen-plugin`](https://www.npmjs.com/package/@bpmnkit/create-casen-plugin) | Scaffold a new casen CLI plugin in seconds |
|
|
110
112
|
| [`@bpmnkit/casen-report`](https://www.npmjs.com/package/@bpmnkit/casen-report) | HTML reports from Camunda 8 incident and SLA data |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmnkit/astro-shared",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,13 +22,14 @@
|
|
|
22
22
|
"bpmn",
|
|
23
23
|
"astro",
|
|
24
24
|
"design-tokens",
|
|
25
|
+
"design-system",
|
|
25
26
|
"shared",
|
|
26
27
|
"seo",
|
|
27
28
|
"css",
|
|
28
29
|
"typescript"
|
|
29
30
|
],
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@bpmnkit/ui": "0.
|
|
32
|
+
"@bpmnkit/ui": "0.3.0"
|
|
32
33
|
},
|
|
33
34
|
"license": "MIT",
|
|
34
35
|
"publishConfig": {
|
|
@@ -38,12 +39,13 @@
|
|
|
38
39
|
"type": "git",
|
|
39
40
|
"url": "https://github.com/bpmnkit/monorepo"
|
|
40
41
|
},
|
|
41
|
-
"description": "Shared CSS design tokens,
|
|
42
|
+
"description": "Shared CSS design tokens, page ground, and site metadata for BPMN Kit Astro apps",
|
|
42
43
|
"homepage": "https://bpmnkit.com",
|
|
43
44
|
"bugs": {
|
|
44
45
|
"url": "https://github.com/bpmnkit/monorepo/issues"
|
|
45
46
|
},
|
|
46
47
|
"scripts": {
|
|
47
|
-
"check": "biome check ."
|
|
48
|
+
"check": "biome check .",
|
|
49
|
+
"test": "vitest run"
|
|
48
50
|
}
|
|
49
51
|
}
|
package/src/background.css
CHANGED
|
@@ -1,90 +1,16 @@
|
|
|
1
|
-
/* ──
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.orb-1 {
|
|
18
|
-
width: 600px;
|
|
19
|
-
height: 600px;
|
|
20
|
-
top: -200px;
|
|
21
|
-
left: -100px;
|
|
22
|
-
background: radial-gradient(circle, oklch(55% 0.22 280 / 0.7), transparent 70%);
|
|
23
|
-
animation: drift1 14s ease-in-out infinite alternate;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.orb-2 {
|
|
27
|
-
width: 500px;
|
|
28
|
-
height: 500px;
|
|
29
|
-
top: -100px;
|
|
30
|
-
right: -80px;
|
|
31
|
-
background: radial-gradient(circle, oklch(72% 0.18 185 / 0.5), transparent 70%);
|
|
32
|
-
animation: drift2 18s ease-in-out infinite alternate;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.orb-3 {
|
|
36
|
-
width: 400px;
|
|
37
|
-
height: 400px;
|
|
38
|
-
bottom: 0;
|
|
39
|
-
left: 35%;
|
|
40
|
-
background: radial-gradient(circle, oklch(68% 0.22 340 / 0.35), transparent 70%);
|
|
41
|
-
animation: drift3 22s ease-in-out infinite alternate;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@keyframes drift1 {
|
|
45
|
-
from {
|
|
46
|
-
transform: translate(0, 0) scale(1);
|
|
47
|
-
}
|
|
48
|
-
to {
|
|
49
|
-
transform: translate(60px, 40px) scale(1.1);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@keyframes drift2 {
|
|
54
|
-
from {
|
|
55
|
-
transform: translate(0, 0) scale(1.05);
|
|
56
|
-
}
|
|
57
|
-
to {
|
|
58
|
-
transform: translate(-50px, 60px) scale(0.95);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@keyframes drift3 {
|
|
63
|
-
from {
|
|
64
|
-
transform: translate(0, 0) scale(0.9);
|
|
65
|
-
}
|
|
66
|
-
to {
|
|
67
|
-
transform: translate(40px, -30px) scale(1.1);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.dots {
|
|
72
|
-
position: fixed;
|
|
73
|
-
inset: 0;
|
|
74
|
-
pointer-events: none;
|
|
75
|
-
z-index: -1;
|
|
76
|
-
background-image: radial-gradient(oklch(55% 0.04 270 / 0.5) 1px, transparent 1px);
|
|
77
|
-
background-size: 28px 28px;
|
|
78
|
-
mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
|
|
79
|
-
-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.grain {
|
|
83
|
-
position: fixed;
|
|
84
|
-
inset: 0;
|
|
85
|
-
pointer-events: none;
|
|
86
|
-
z-index: -1;
|
|
87
|
-
opacity: 0.035;
|
|
88
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
89
|
-
background-size: 256px;
|
|
1
|
+
/* ── Page ground ─────────────────────────────────────────────────────────────
|
|
2
|
+
* The design system's ground is flat: one paper colour, and depth is a 1px
|
|
3
|
+
* hairline. This file used to draw the 2025 aurora — three blurred gradient
|
|
4
|
+
* orbs drifting on a loop, a masked dot grid and a fractal-noise grain layer —
|
|
5
|
+
* which is the `filter: blur`, `radial-gradient` and animated-decoration the
|
|
6
|
+
* system rules out. It is kept as the one rule a page needs so the layouts'
|
|
7
|
+
* import keeps working and the ground stays in one place.
|
|
8
|
+
*
|
|
9
|
+
* `.aurora`, `.orb`, `.dots` and `.grain` are deliberately no longer defined:
|
|
10
|
+
* a layout that still renders those elements now renders nothing, rather than
|
|
11
|
+
* quietly keeping the old brand alive.
|
|
12
|
+
* ─────────────────────────────────────────────────────────────────────────── */
|
|
13
|
+
|
|
14
|
+
html {
|
|
15
|
+
background: var(--ground, #f4f5f7);
|
|
90
16
|
}
|
package/src/tokens.css
CHANGED
|
@@ -1,33 +1,86 @@
|
|
|
1
|
-
/* ── BPMN
|
|
2
|
-
* Imports the canonical
|
|
3
|
-
*
|
|
4
|
-
*
|
|
1
|
+
/* ── BPMN Kit design-system tokens (Astro apps) ──────────────────────────────
|
|
2
|
+
* Imports the canonical `--bpmnkit-*` token set, then exposes the short names
|
|
3
|
+
* that the Astro layouts read — the same vocabulary `apps/landing`'s
|
|
4
|
+
* `global.css` declares, with the same values, so a visitor moving between
|
|
5
|
+
* bpmnkit.com and a sibling site crosses no boundary.
|
|
6
|
+
*
|
|
7
|
+
* Everything here is derived from `--bpmnkit-ds-*` rather than restated, so
|
|
8
|
+
* `@bpmnkit/ui` stays the single source of truth for the system.
|
|
9
|
+
*
|
|
10
|
+
* This used to map onto the product palette (`--bpmnkit-bg`, `--bpmnkit-accent`
|
|
11
|
+
* …) and carried the 2025 aurora's layout tokens beside it: a 14px radius and a
|
|
12
|
+
* `--pink`. Both are gone. The system is square, flat and spends one accent.
|
|
5
13
|
* ─────────────────────────────────────────────────────────────────────────── */
|
|
6
14
|
|
|
7
15
|
@import "@bpmnkit/ui/tokens.css";
|
|
8
16
|
|
|
9
|
-
/* Map --bpmnkit-* → short names used in Astro layout templates */
|
|
10
17
|
:root {
|
|
11
|
-
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
--
|
|
18
|
+
/* Ground */
|
|
19
|
+
--ground: var(--bpmnkit-ds-bg);
|
|
20
|
+
--ground-alt: var(--bpmnkit-ds-bg-alt);
|
|
21
|
+
--panel: var(--bpmnkit-ds-canvas);
|
|
22
|
+
|
|
23
|
+
/* Ink */
|
|
24
|
+
--ink: var(--bpmnkit-ds-ink);
|
|
25
|
+
--ink-body: var(--bpmnkit-ds-ink-2);
|
|
26
|
+
--ink-body-soft: var(--bpmnkit-ds-ink-3);
|
|
27
|
+
--ink-meta: var(--bpmnkit-ds-ink-4);
|
|
28
|
+
--rule: var(--bpmnkit-ds-line);
|
|
29
|
+
--rule-soft: var(--bpmnkit-ds-line-soft);
|
|
30
|
+
--rule-strong: var(--bpmnkit-ds-line-strong);
|
|
31
|
+
|
|
32
|
+
/* Accent — one, and one only */
|
|
33
|
+
--accent: var(--bpmnkit-ds-accent);
|
|
34
|
+
--accent-hover: var(--bpmnkit-ds-accent-hover);
|
|
35
|
+
--accent-on-ink: var(--bpmnkit-ds-accent-on-dark);
|
|
36
|
+
--accent-tint: var(--bpmnkit-ds-accent-tint);
|
|
37
|
+
|
|
38
|
+
/* Ink surfaces (code panels, dark bands, footer) */
|
|
39
|
+
--ink-ground: var(--bpmnkit-ds-dark);
|
|
40
|
+
--ink-rule: var(--bpmnkit-ds-line-dark);
|
|
41
|
+
--ink-fg: var(--bpmnkit-ds-ink-on-dark);
|
|
42
|
+
--ink-fg-muted: var(--bpmnkit-ds-ink-on-dark-2);
|
|
43
|
+
|
|
44
|
+
/* Code on ink */
|
|
45
|
+
--code-bg: var(--bpmnkit-ds-dark-code);
|
|
46
|
+
--code-fg: var(--bpmnkit-ds-code-text);
|
|
47
|
+
--code-comment: var(--bpmnkit-ds-code-comment);
|
|
48
|
+
--code-str: var(--bpmnkit-ds-code-string);
|
|
49
|
+
--code-prompt: var(--bpmnkit-ds-code-prompt);
|
|
50
|
+
|
|
51
|
+
/* Semantic state — exempt from the one-accent rule */
|
|
52
|
+
--state-good: var(--bpmnkit-success);
|
|
53
|
+
--state-warn: var(--bpmnkit-warn);
|
|
54
|
+
--state-bad: var(--bpmnkit-danger);
|
|
55
|
+
|
|
56
|
+
/* Type — two roles: sans for prose, mono for every label and datum */
|
|
57
|
+
--font-sans: var(--bpmnkit-ds-font-sans);
|
|
58
|
+
--font-mono: var(--bpmnkit-ds-font-mono);
|
|
59
|
+
|
|
60
|
+
/* Layout */
|
|
61
|
+
--max-width: 1180px;
|
|
62
|
+
--gutter: var(--bpmnkit-ds-page-gutter);
|
|
63
|
+
--nav-h: 56px;
|
|
64
|
+
--section-pad: 64px;
|
|
65
|
+
--radius: 0;
|
|
66
|
+
|
|
67
|
+
/* Aliases the layouts and the packages they embed still read. */
|
|
68
|
+
--bg: var(--ground);
|
|
69
|
+
--bg-card: var(--panel);
|
|
70
|
+
--surface: var(--panel);
|
|
71
|
+
--bg-code: var(--code-bg);
|
|
72
|
+
--inline-code-bg: var(--ground-alt);
|
|
73
|
+
--border: var(--rule);
|
|
74
|
+
--text: var(--ink);
|
|
75
|
+
--text-muted: var(--ink-body-soft);
|
|
76
|
+
--accent-bright: var(--accent);
|
|
77
|
+
--accent-glow: var(--accent-tint);
|
|
78
|
+
--success: var(--state-good);
|
|
79
|
+
--warn: var(--state-warn);
|
|
80
|
+
--danger: var(--state-bad);
|
|
81
|
+
/* The system has one accent, so the second brand colour resolves to it. */
|
|
82
|
+
--teal: var(--accent);
|
|
83
|
+
/* BPMN strokes and labels belong to the diagram renderer, not the chrome:
|
|
84
|
+
an illustration of a symbol takes this rather than the accent. */
|
|
85
|
+
--diagram-ink: var(--bpmnkit-ds-diagram-ink);
|
|
33
86
|
}
|