@mccaskie-labs/workbench-agreements 0.1.1 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mccaskie-labs/workbench-agreements
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Every tool follows the project's look (docs/theming.md step 2, Robert, 24 November 2026). Each tool's colour, font and corner variables now default to the shared theme tokens with a Clean, light fallback (`--wb-booking-accent: var(--wb-accent, #2563eb)`), and tool colours with no token of their own (a recessed panel, a status mark, a tinted pill) are worked out from the tokens with `color-mix()`. So a page drawn with these tools takes the look in the project's workbench.css: light (Clean) by default, or whatever brand.json and project.css say. Breaking for a project page that relied on the old dark defaults: give brand.json the look you want, or set the tokens in project.css. Variable and class names are unchanged, so existing project.css overrides still win. workbench-ui: `styleProblems` refuses a tool's text, muted, surface, line, background, accent, focus, danger, success, warning, font or radius variable whose default doesn't read its token (email, PDF and image follow in step 3); the `wb-ui` class no longer forces dark, and Workbench's own pages (`STYLE`, `UI_CSS`) keep their dark values; `shell` with `stylesheets` (a project page) no longer says dark in its meta tag.
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
package/dist/styles.js CHANGED
@@ -18,16 +18,16 @@ export const AGREEMENT_STYLES = {
18
18
  title: "Agreement signing page",
19
19
  prefix: "wb-agreement-",
20
20
  variables: [
21
- { name: "--wb-agreement-text", value: "#1d1d22", about: "Text" },
22
- { name: "--wb-agreement-muted", value: "#5f5f6b", about: "Quieter text: who it's from, hints, the deadline" },
23
- { name: "--wb-agreement-surface", value: "#ffffff", about: "Background of the page and the fields" },
24
- { name: "--wb-agreement-line", value: "#d6d6de", about: "Borders of the fields and the signature box" },
25
- { name: "--wb-agreement-accent", value: "#1b66d6", about: "The Sign button and links" },
26
- { name: "--wb-agreement-on-accent", value: "#ffffff", about: "Text on the Sign button" },
27
- { name: "--wb-agreement-danger", value: "#b42318", about: "Problems and the Decline button" },
28
- { name: "--wb-agreement-danger-soft", value: "#fef3f2", about: "Background of the problem box" },
29
- { name: "--wb-agreement-focus", value: "rgba(27,102,214,.35)", about: "The ring round whatever has focus" },
30
- { name: "--wb-agreement-radius", value: "10px", about: "Corner rounding of fields, buttons and the signature box" },
21
+ { name: "--wb-agreement-text", value: "var(--wb-text, #1f2937)", about: "Text" },
22
+ { name: "--wb-agreement-muted", value: "var(--wb-muted, #5b6472)", about: "Quieter text: who it's from, hints, the deadline" },
23
+ { name: "--wb-agreement-surface", value: "var(--wb-surface, #f7f8f8)", about: "Background of the page and the fields" },
24
+ { name: "--wb-agreement-line", value: "var(--wb-line, #d7d8db)", about: "Borders of the fields and the signature box" },
25
+ { name: "--wb-agreement-accent", value: "var(--wb-accent, #2563eb)", about: "The Sign button and links" },
26
+ { name: "--wb-agreement-on-accent", value: "var(--wb-on-accent, #ffffff)", about: "Text on the Sign button" },
27
+ { name: "--wb-agreement-danger", value: "var(--wb-danger, #b42318)", about: "Problems and the Decline button" },
28
+ { name: "--wb-agreement-danger-soft", value: "var(--wb-danger-bg, #f9eded)", about: "Background of the problem box" },
29
+ { name: "--wb-agreement-focus", value: "var(--wb-focus, rgba(37,99,235,0.4))", about: "The ring round whatever has focus" },
30
+ { name: "--wb-agreement-radius", value: "var(--wb-radius, 8px)", about: "Corner rounding of fields, buttons and the signature box" },
31
31
  { name: "--wb-agreement-width", value: "36rem", about: "Widest the page grows" },
32
32
  { name: "--wb-agreement-signature-font", value: '"Segoe Script","Brush Script MT","Snell Roundhand",cursive', about: "The typed signature's handwriting font" },
33
33
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-agreements",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Agreements and e-signing for Workbench apps: send a branded PDF agreement, let each person sign it online with a typed or drawn signature, keep a timestamped audit trail, and email the signed copy, with a signing certificate, to everyone. Runs in the app's own Worker, database and R2 bucket.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",