@bpmnkit/astro-shared 0.0.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/README.md +78 -0
- package/package.json +43 -0
- package/src/background.css +90 -0
- package/src/site.ts +11 -0
- package/src/tokens.css +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/bpmnkit/monorepo/main/doc/logos/logo-2-gateway.svg" width="72" height="72" alt="BPMN Kit logo">
|
|
3
|
+
<h1>@bpmnkit/astro-shared</h1>
|
|
4
|
+
<p>Shared CSS design tokens, aurora background, and site metadata for BPMN Kit Astro apps</p>
|
|
5
|
+
|
|
6
|
+
[](https://www.npmjs.com/package/@bpmnkit/astro-shared)
|
|
7
|
+
[](https://github.com/bpmnkit/monorepo/blob/main/LICENSE)
|
|
8
|
+
[](https://github.com/bpmnkit/monorepo)
|
|
9
|
+
|
|
10
|
+
[Documentation](https://docs.bpmnkit.com) · [GitHub](https://github.com/bpmnkit/monorepo) · [Changelog](https://github.com/bpmnkit/monorepo/blob/main/packages/astro-shared/CHANGELOG.md)
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`@bpmnkit/astro-shared` provides shared CSS imports and site metadata used across BPMN Kit's Astro-based apps (landing page, docs, learn). It re-exports the design tokens from `@bpmnkit/ui` and adds a global aurora background animation.
|
|
18
|
+
|
|
19
|
+
This package is primarily intended for internal use by BPMN Kit's own Astro applications.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
npm install @bpmnkit/astro-shared
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
### Import design tokens in Astro layouts
|
|
30
|
+
|
|
31
|
+
```astro
|
|
32
|
+
---
|
|
33
|
+
import "@bpmnkit/astro-shared/tokens.css"
|
|
34
|
+
import "@bpmnkit/astro-shared/background.css"
|
|
35
|
+
---
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Access site metadata
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import { SITE } from "@bpmnkit/astro-shared"
|
|
42
|
+
|
|
43
|
+
console.log(SITE.name) // "BPMN Kit"
|
|
44
|
+
console.log(SITE.docsUrl) // "https://docs.bpmnkit.com"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Exports
|
|
48
|
+
|
|
49
|
+
| Export | Description |
|
|
50
|
+
|--------|-------------|
|
|
51
|
+
| `/tokens.css` | All `--bpmnkit-*` CSS custom properties (re-exports `@bpmnkit/ui/tokens.css`) |
|
|
52
|
+
| `/background.css` | Global aurora background animation styles |
|
|
53
|
+
| `.` | `SITE` metadata object (name, url, github, docsUrl, learnUrl, npm) |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Related Packages
|
|
58
|
+
|
|
59
|
+
| Package | Description |
|
|
60
|
+
|---------|-------------|
|
|
61
|
+
| [`@bpmnkit/core`](https://www.npmjs.com/package/@bpmnkit/core) | BPMN/DMN/Form parser, builder, layout engine |
|
|
62
|
+
| [`@bpmnkit/canvas`](https://www.npmjs.com/package/@bpmnkit/canvas) | Zero-dependency SVG BPMN viewer |
|
|
63
|
+
| [`@bpmnkit/editor`](https://www.npmjs.com/package/@bpmnkit/editor) | Full-featured interactive BPMN editor |
|
|
64
|
+
| [`@bpmnkit/engine`](https://www.npmjs.com/package/@bpmnkit/engine) | Lightweight BPMN process execution engine |
|
|
65
|
+
| [`@bpmnkit/feel`](https://www.npmjs.com/package/@bpmnkit/feel) | FEEL expression language parser & evaluator |
|
|
66
|
+
| [`@bpmnkit/plugins`](https://www.npmjs.com/package/@bpmnkit/plugins) | 22 composable canvas plugins |
|
|
67
|
+
| [`@bpmnkit/api`](https://www.npmjs.com/package/@bpmnkit/api) | Camunda 8 REST API TypeScript client |
|
|
68
|
+
| [`@bpmnkit/ascii`](https://www.npmjs.com/package/@bpmnkit/ascii) | Render BPMN diagrams as Unicode ASCII art |
|
|
69
|
+
| [`@bpmnkit/ui`](https://www.npmjs.com/package/@bpmnkit/ui) | Shared design tokens and UI components |
|
|
70
|
+
| [`@bpmnkit/profiles`](https://www.npmjs.com/package/@bpmnkit/profiles) | Shared auth, profile storage, and client factories for CLI & proxy |
|
|
71
|
+
| [`@bpmnkit/operate`](https://www.npmjs.com/package/@bpmnkit/operate) | Monitoring & operations frontend for Camunda clusters |
|
|
72
|
+
| [`@bpmnkit/connector-gen`](https://www.npmjs.com/package/@bpmnkit/connector-gen) | Generate connector templates from OpenAPI specs |
|
|
73
|
+
| [`@bpmnkit/cli`](https://www.npmjs.com/package/@bpmnkit/cli) | Camunda 8 command-line interface (casen) |
|
|
74
|
+
| [`@bpmnkit/proxy`](https://www.npmjs.com/package/@bpmnkit/proxy) | Local AI bridge and Camunda API proxy server |
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
[MIT](https://github.com/bpmnkit/monorepo/blob/main/LICENSE) © BPMN Kit
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bpmnkit/astro-shared",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./tokens.css": "./src/tokens.css",
|
|
8
|
+
"./background.css": "./src/background.css",
|
|
9
|
+
".": "./src/site.ts"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"README.md",
|
|
13
|
+
"src/*.css",
|
|
14
|
+
"src/site.ts"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"check": "biome check ."
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"bpmn",
|
|
21
|
+
"astro",
|
|
22
|
+
"design-tokens",
|
|
23
|
+
"shared",
|
|
24
|
+
"css",
|
|
25
|
+
"typescript"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@bpmnkit/ui": "workspace:*"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/bpmnkit/monorepo"
|
|
37
|
+
},
|
|
38
|
+
"description": "Shared CSS design tokens, aurora background, and site metadata for BPMN Kit Astro apps",
|
|
39
|
+
"homepage": "https://bpmnkit.com",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/bpmnkit/monorepo/issues"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* ── Aurora background ──────────────────────────────────────────── */
|
|
2
|
+
.aurora {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
pointer-events: none;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
z-index: -1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.orb {
|
|
11
|
+
position: absolute;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
filter: blur(80px);
|
|
14
|
+
opacity: 0.55;
|
|
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;
|
|
90
|
+
}
|
package/src/site.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const SITE = {
|
|
2
|
+
name: "BPMN Kit",
|
|
3
|
+
tagline: "Build, model, and deploy BPMN processes with TypeScript",
|
|
4
|
+
description:
|
|
5
|
+
"A TypeScript SDK for building, modeling, simulating, and deploying BPMN processes on Camunda 8.",
|
|
6
|
+
url: "https://bpmn-sdk.github.io/monorepo",
|
|
7
|
+
github: "https://github.com/bpmnkit/monorepo",
|
|
8
|
+
npm: "https://www.npmjs.com/package/@bpmnkit/core",
|
|
9
|
+
docsUrl: "https://docs.bpmnkit.com",
|
|
10
|
+
learnUrl: "https://learn.bpmnkit.com",
|
|
11
|
+
}
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* ── BPMN SDK brand tokens (Astro apps) ─────────────────────────────────────
|
|
2
|
+
* Imports the canonical --bpmnkit-* token set, then maps them to the shorter
|
|
3
|
+
* --* names used by the landing / learn / docs layouts so those templates
|
|
4
|
+
* don't need updating. Aurora / layout tokens live here too.
|
|
5
|
+
* ─────────────────────────────────────────────────────────────────────────── */
|
|
6
|
+
|
|
7
|
+
@import "@bpmnkit/ui/tokens.css";
|
|
8
|
+
|
|
9
|
+
/* Map --bpmnkit-* → short names used in Astro layout templates */
|
|
10
|
+
:root {
|
|
11
|
+
--bg: var(--bpmnkit-bg);
|
|
12
|
+
--bg-card: var(--bpmnkit-surface);
|
|
13
|
+
--surface: var(--bpmnkit-surface);
|
|
14
|
+
--bg-code: var(--bpmnkit-surface-2);
|
|
15
|
+
--border: var(--bpmnkit-border);
|
|
16
|
+
--text: var(--bpmnkit-fg);
|
|
17
|
+
--text-muted: var(--bpmnkit-fg-muted);
|
|
18
|
+
--accent: var(--bpmnkit-accent);
|
|
19
|
+
--accent-bright: var(--bpmnkit-accent-bright);
|
|
20
|
+
--accent-glow: var(--bpmnkit-accent-subtle);
|
|
21
|
+
--teal: var(--bpmnkit-teal);
|
|
22
|
+
--success: var(--bpmnkit-success);
|
|
23
|
+
--warn: var(--bpmnkit-warn);
|
|
24
|
+
--danger: var(--bpmnkit-danger);
|
|
25
|
+
|
|
26
|
+
/* Astro-specific layout tokens */
|
|
27
|
+
--pink: oklch(68% 0.22 340);
|
|
28
|
+
--font-mono: var(--bpmnkit-font-mono);
|
|
29
|
+
--font-sans: var(--bpmnkit-font);
|
|
30
|
+
--max-width: 1120px;
|
|
31
|
+
--nav-h: 60px;
|
|
32
|
+
--radius: 14px;
|
|
33
|
+
}
|