@port60/template-kit 0.21.0 → 1.0.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.
Files changed (53) hide show
  1. package/README.md +42 -3
  2. package/bin/cli.mjs +10 -0
  3. package/package.json +4 -2
  4. package/src/commands/content.mjs +4 -3
  5. package/src/commands/create.mjs +11 -3
  6. package/src/commands/dev.mjs +9 -3
  7. package/src/commands/model.mjs +3 -3
  8. package/src/commands/packageCmd.mjs +1 -1
  9. package/src/commands/publish.mjs +1 -1
  10. package/src/commands/refresh.mjs +8 -3
  11. package/src/commands/release.mjs +22 -0
  12. package/src/commands/setupPreviews.mjs +19 -0
  13. package/src/commands/validate.mjs +1 -1
  14. package/src/lib/agentsMd.mjs +108 -162
  15. package/src/lib/designer-bridge.js +26 -0
  16. package/src/lib/designerPalette.mjs +62 -0
  17. package/src/lib/galleryPosters.mjs +105 -0
  18. package/src/lib/previewOptions.mjs +1 -1
  19. package/src/lib/releaseBundle.mjs +141 -0
  20. package/src/vendor/contract/v2/behaviours.json +346 -0
  21. package/src/vendor/contract/v2/content-bounds.json +117 -0
  22. package/src/vendor/contract/v2/content-model.json +766 -0
  23. package/src/vendor/contract/v2/context.json +1569 -0
  24. package/src/vendor/contract/v2/dialect.json +105 -0
  25. package/src/vendor/contract/v2/fonts.json +910 -0
  26. package/src/vendor/contract/v2/imagery.json +32 -0
  27. package/src/vendor/contract/v2/islands.json +263 -0
  28. package/src/vendor/contract/v2/layout.json +28 -0
  29. package/src/vendor/contract/v2/manifest.schema.json +388 -0
  30. package/src/vendor/contract/v2/sections.json +947 -0
  31. package/src/vendor/contract/v2/site.schema.json +1353 -0
  32. package/src/vendor/contract/v2/tokens.json +101 -0
  33. package/src/vendor/contract/v2.lock.json +6931 -0
  34. package/src/vendor/engine/content-footprint.mjs +76 -1
  35. package/src/vendor/engine/majors.mjs +42 -0
  36. package/src/vendor/validator/gift-aid-logo.svg +6 -0
  37. package/src/vendor/validator/model-reference-v2.mjs +95 -0
  38. package/src/vendor/validator/platform-base.css +310 -0
  39. package/src/vendor/validator/preview-v1.mjs +691 -0
  40. package/src/vendor/validator/preview-v2.mjs +654 -0
  41. package/src/vendor/validator/preview.mjs +8 -688
  42. package/src/vendor/validator/site-context-v2.mjs +113 -0
  43. package/src/vendor/validator/validate-v1.mjs +666 -0
  44. package/src/vendor/validator/validate-v2.mjs +642 -0
  45. package/src/vendor/validator/validate.mjs +21 -663
  46. package/starter/assets/theme.css +3 -0
  47. package/starter/layout.liquid +15 -18
  48. package/starter/manifest.json +5 -4
  49. package/starter/preview/config.json +4 -0
  50. package/starter/preview/media/README.md +9 -0
  51. package/starter/sections/campaigns.liquid +5 -4
  52. package/starter/sections/homeHero.liquid +25 -21
  53. package/starter/sections/values.liquid +1 -1
@@ -0,0 +1,101 @@
1
+ {
2
+ "description": "The CSS custom-property contract, the theming tokens the platform base declares and every island/page consumes. A template overrides them via :root:root in its theme.css. Additive-only: tokens are never removed or repurposed within a contract major.",
3
+ "tokens": [
4
+ {
5
+ "name": "--bg",
6
+ "description": "Page background."
7
+ },
8
+ {
9
+ "name": "--bg-tint",
10
+ "description": "Subtle tinted background (footer, wells)."
11
+ },
12
+ {
13
+ "name": "--surface",
14
+ "description": "Card/panel surface."
15
+ },
16
+ {
17
+ "name": "--ink",
18
+ "description": "Primary text colour."
19
+ },
20
+ {
21
+ "name": "--muted",
22
+ "description": "Secondary text colour."
23
+ },
24
+ {
25
+ "name": "--primary",
26
+ "description": "Brand primary (progress, links, selected states)."
27
+ },
28
+ {
29
+ "name": "--primary-strong",
30
+ "description": "Darker primary (hover/emphasis)."
31
+ },
32
+ {
33
+ "name": "--primary-soft",
34
+ "description": "Translucent primary wash (selected fills, chips)."
35
+ },
36
+ {
37
+ "name": "--accent",
38
+ "description": "Action accent (the donate CTA family)."
39
+ },
40
+ {
41
+ "name": "--accent-strong",
42
+ "description": "Darker accent."
43
+ },
44
+ {
45
+ "name": "--gold",
46
+ "description": "Highlight tint (marks, ratings)."
47
+ },
48
+ {
49
+ "name": "--marker",
50
+ "description": "Impact-map pin colour (the live-map markers are a zoom-scaling circle layer that take this colour). Defaults to --accent."
51
+ },
52
+ {
53
+ "name": "--map-mode",
54
+ "description": "Impact-map basemap colour mode read by the map island: auto (derive the map's paper/ink from the theme), light, dark, or muted. Default auto."
55
+ },
56
+ {
57
+ "name": "--map-projection",
58
+ "description": "Impact-map projection: flat (default) or globe, the planet as a rotatable sphere with atmosphere."
59
+ },
60
+ {
61
+ "name": "--line",
62
+ "description": "Hairline borders."
63
+ },
64
+ {
65
+ "name": "--line-strong",
66
+ "description": "Emphasised borders (selected, focus)."
67
+ },
68
+ {
69
+ "name": "--danger",
70
+ "description": "Errors and destructive affordances."
71
+ },
72
+ {
73
+ "name": "--cta-hover",
74
+ "description": "The donate-button hover 'go' colour."
75
+ },
76
+ {
77
+ "name": "--cta-hover-strong",
78
+ "description": "Darker CTA hover."
79
+ },
80
+ {
81
+ "name": "--shadow-sm",
82
+ "description": "Small elevation shadow."
83
+ },
84
+ {
85
+ "name": "--shadow",
86
+ "description": "Large elevation shadow."
87
+ },
88
+ {
89
+ "name": "--radius",
90
+ "description": "Large corner radius (cards, bands)."
91
+ },
92
+ {
93
+ "name": "--radius-sm",
94
+ "description": "Small corner radius (inputs, chips)."
95
+ },
96
+ {
97
+ "name": "--container",
98
+ "description": "Max content width."
99
+ }
100
+ ]
101
+ }