@keystone-sites/marketing-design-system 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 (130) hide show
  1. package/AGENTS.md +163 -0
  2. package/README.md +85 -0
  3. package/assets/media/brand/ks-lockup.svg +13 -0
  4. package/assets/media/brand/ks-logomark.svg +4 -0
  5. package/assets/media/brand/ks-wordmark-inline.svg +13 -0
  6. package/assets/media/brand/ks-wordmark.svg +11 -0
  7. package/assets/media/fonts/gt-standard-standard-vf.woff2 +0 -0
  8. package/assets/media/fonts/pp-kyoto-variable-upright-vf.woff2 +0 -0
  9. package/base.css +111 -0
  10. package/css-vars.d.ts +10 -0
  11. package/grid/engine.css +368 -0
  12. package/grid/field-hash.ts +31 -0
  13. package/grid/field.tsx +48 -0
  14. package/grid/gates.cjs +34 -0
  15. package/grid/region.tsx +97 -0
  16. package/icons.tsx +1224 -0
  17. package/index.css +77 -0
  18. package/lib/autoplay-gate.ts +88 -0
  19. package/lib/focus-trap.ts +42 -0
  20. package/lib/grader.ts +131 -0
  21. package/lib/legal-data.ts +1 -0
  22. package/lib/legal.ts +41 -0
  23. package/lib/noise.tsx +114 -0
  24. package/lib/render-boundary.tsx +27 -0
  25. package/lib/scroll-lock.ts +25 -0
  26. package/lib/swipe.ts +124 -0
  27. package/lib/use-active-section.ts +43 -0
  28. package/lib/use-count-up.ts +26 -0
  29. package/lib/use-grader-search.ts +118 -0
  30. package/lib/use-video-carousel.ts +271 -0
  31. package/media.ts +558 -0
  32. package/package.json +201 -0
  33. package/primitives/button-inline.css +52 -0
  34. package/primitives/button-inline.tsx +38 -0
  35. package/primitives/buttons.css +449 -0
  36. package/primitives/buttons.tsx +263 -0
  37. package/primitives/case-study-button.css +71 -0
  38. package/primitives/case-study-button.tsx +28 -0
  39. package/primitives/case-study-card.css +318 -0
  40. package/primitives/case-study-card.tsx +116 -0
  41. package/primitives/closer-row.css +14 -0
  42. package/primitives/closer-row.tsx +22 -0
  43. package/primitives/cta-row.css +41 -0
  44. package/primitives/cta-row.tsx +39 -0
  45. package/primitives/disclosure.css +210 -0
  46. package/primitives/disclosure.tsx +144 -0
  47. package/primitives/faq-question.css +220 -0
  48. package/primitives/faq-question.tsx +55 -0
  49. package/primitives/field.css +225 -0
  50. package/primitives/field.tsx +266 -0
  51. package/primitives/footer-item.css +72 -0
  52. package/primitives/footer-item.tsx +42 -0
  53. package/primitives/grader-menu.tsx +84 -0
  54. package/primitives/grader.css +302 -0
  55. package/primitives/grader.tsx +284 -0
  56. package/primitives/modal.css +151 -0
  57. package/primitives/modal.tsx +90 -0
  58. package/primitives/notice.css +39 -0
  59. package/primitives/notice.tsx +56 -0
  60. package/primitives/persona-card.css +374 -0
  61. package/primitives/persona-card.tsx +74 -0
  62. package/primitives/picture.css +11 -0
  63. package/primitives/picture.tsx +41 -0
  64. package/primitives/plan-card.css +378 -0
  65. package/primitives/plan-card.tsx +91 -0
  66. package/primitives/prose.css +118 -0
  67. package/primitives/prose.tsx +170 -0
  68. package/primitives/ramps.css +84 -0
  69. package/primitives/slider.css +179 -0
  70. package/primitives/slider.tsx +69 -0
  71. package/primitives/slug.css +87 -0
  72. package/primitives/slug.tsx +37 -0
  73. package/primitives/status.css +298 -0
  74. package/primitives/status.tsx +222 -0
  75. package/primitives/strip.css +40 -0
  76. package/primitives/surface.css +78 -0
  77. package/primitives/surface.tsx +95 -0
  78. package/primitives/table.css +226 -0
  79. package/primitives/table.tsx +122 -0
  80. package/primitives/tabs.css +85 -0
  81. package/primitives/tabs.tsx +122 -0
  82. package/primitives/text.css +110 -0
  83. package/primitives/toc.css +65 -0
  84. package/primitives/toc.tsx +42 -0
  85. package/rules/design-system.md +154 -0
  86. package/rules/grid-and-layout.md +166 -0
  87. package/scripts/generate-exports.mjs +61 -0
  88. package/scripts/generate-type-css.mjs +130 -0
  89. package/sections/faq-island.tsx +102 -0
  90. package/sections/faq.css +213 -0
  91. package/sections/faq.tsx +46 -0
  92. package/sections/footer-nav.tsx +95 -0
  93. package/sections/footer-signature.css +183 -0
  94. package/sections/footer-signature.tsx +114 -0
  95. package/sections/footer.css +735 -0
  96. package/sections/footer.tsx +283 -0
  97. package/sections/gallery-overlay.css +213 -0
  98. package/sections/gallery-overlay.tsx +267 -0
  99. package/sections/landing-benefits.css +59 -0
  100. package/sections/landing-benefits.tsx +81 -0
  101. package/sections/landing-closer.css +23 -0
  102. package/sections/landing-closer.tsx +26 -0
  103. package/sections/landing-hero.css +80 -0
  104. package/sections/landing-hero.tsx +69 -0
  105. package/sections/landing-quote.css +19 -0
  106. package/sections/landing-quote.tsx +30 -0
  107. package/sections/landing-sample.ts +66 -0
  108. package/sections/landing.css +45 -0
  109. package/sections/landing.tsx +69 -0
  110. package/sections/load-orchestrator.tsx +43 -0
  111. package/sections/load.css +138 -0
  112. package/sections/nav-desktop.css +530 -0
  113. package/sections/nav-desktop.tsx +155 -0
  114. package/sections/nav-mobile.css +571 -0
  115. package/sections/nav-mobile.tsx +222 -0
  116. package/sections/nav.css +126 -0
  117. package/sections/nav.tsx +394 -0
  118. package/sections/site-chat-data.ts +16 -0
  119. package/sections/site-chat-open.tsx +25 -0
  120. package/sections/site-chat.tsx +67 -0
  121. package/site-links.ts +36 -0
  122. package/site.ts +2 -0
  123. package/themes/inverted.css +139 -0
  124. package/tokens/fonts.css +38 -0
  125. package/tokens/motion.css +125 -0
  126. package/tokens/primitives.css +163 -0
  127. package/tokens/semantic.css +153 -0
  128. package/tokens/type-styles.json +145 -0
  129. package/tokens/type.css +1548 -0
  130. package/widgets.css +78 -0
package/widgets.css ADDED
@@ -0,0 +1,78 @@
1
+ /* Chat widget utilities compile without preflight because base.css owns
2
+ normalization. Utilities stay unlayered so class rules beat the
3
+ unlayered element reset. `source(none)` limits scanning to the package.
4
+ Site tokens win shared `:root` names.
5
+
6
+ The consent panel's accents are locals on its root so a theme can
7
+ restate them (themes/inverted.css lifts them for the dark ground). */
8
+
9
+ @import "tailwindcss/theme.css" layer(theme);
10
+ @import "tailwindcss/utilities.css" source(none);
11
+ @import "@keystone-sites/widgets/theme.css";
12
+
13
+ .ks-chat-panel.pointer-events-none {
14
+ --ks-chat-accent-ink: var(--color-teal-700);
15
+ }
16
+
17
+ /* Match the prompt glyphs to the Grader arrow ink. */
18
+ .ks-chat-panel.pointer-events-none svg {
19
+ color: var(--color-teal-500);
20
+ }
21
+
22
+ /* The mobile nav sheet owns the viewport while it is open. */
23
+ body:has(.knav-m[data-open]) .ks-chat-panel {
24
+ visibility: hidden;
25
+ }
26
+
27
+ /* CookieConsentModal does not expose theme props. These overrides stay
28
+ scoped to its root class and map the packaged surface to site tokens. */
29
+ @layer primitives {
30
+ .ks-consent-panel {
31
+ --consent-accent: var(--color-teal-700);
32
+ --consent-accent-wash: color-mix(in srgb, var(--color-teal-700) 7%, transparent);
33
+ --consent-outline: var(--color-teal-500);
34
+ }
35
+ }
36
+
37
+ .ks-consent-panel.ks-consent-panel,
38
+ .ks-consent-panel.ks-consent-panel * {
39
+ font-family: var(--font-sans) !important;
40
+ }
41
+
42
+ .ks-consent-panel .ks-consent-serif.ks-consent-serif {
43
+ font-family: var(--font-serif) !important;
44
+ }
45
+
46
+ .ks-consent-panel > div {
47
+ color: var(--color-text-200) !important;
48
+ background-color: var(--color-bg-100) !important;
49
+ border-color: var(--color-border-000) !important;
50
+ }
51
+
52
+ .ks-consent-panel a {
53
+ color: inherit !important;
54
+ text-decoration-color: var(--color-border-200) !important;
55
+ text-decoration-skip-ink: auto !important;
56
+ }
57
+
58
+ .ks-consent-panel button[class~="bg-[#2b2620]"] {
59
+ color: var(--color-teal-700) !important;
60
+ background-color: var(--color-teal-250) !important;
61
+ }
62
+
63
+ .ks-consent-panel button[class~="bg-[#2b2620]"]:hover {
64
+ background-color: var(--color-teal-300) !important;
65
+ }
66
+
67
+ .ks-consent-panel button[class~="border-[#2b2620]/[0.22]"] {
68
+ color: var(--consent-accent) !important;
69
+ border-color: var(--consent-accent) !important;
70
+ }
71
+
72
+ .ks-consent-panel button[class~="border-[#2b2620]/[0.22]"]:hover {
73
+ background-color: var(--consent-accent-wash) !important;
74
+ }
75
+
76
+ .ks-consent-panel :is(a, button):focus-visible {
77
+ outline-color: var(--consent-outline) !important;
78
+ }