@keystone-sites/marketing-design-system 1.0.0 → 1.0.2

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/index.css CHANGED
@@ -52,6 +52,7 @@
52
52
  @import "./primitives/surface.css" layer(primitives);
53
53
  @import "./primitives/prose.css" layer(primitives);
54
54
  @import "./primitives/status.css" layer(primitives);
55
+ @import "./primitives/tag.css" layer(primitives);
55
56
  @import "./primitives/tabs.css" layer(primitives);
56
57
  @import "./primitives/notice.css" layer(primitives);
57
58
  @import "./primitives/modal.css" layer(primitives);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystone-sites/marketing-design-system",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Keystone's marketing design system: tokens, the tick grid, type, primitives, site chrome, and the landing kit. Source-shipped CSS and TSX for Next.js consumers.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -148,6 +148,8 @@
148
148
  "./primitives/table": "./primitives/table.tsx",
149
149
  "./primitives/tabs.css": "./primitives/tabs.css",
150
150
  "./primitives/tabs": "./primitives/tabs.tsx",
151
+ "./primitives/tag.css": "./primitives/tag.css",
152
+ "./primitives/tag": "./primitives/tag.tsx",
151
153
  "./primitives/text.css": "./primitives/text.css",
152
154
  "./primitives/toc.css": "./primitives/toc.css",
153
155
  "./primitives/toc": "./primitives/toc.tsx",
@@ -49,6 +49,24 @@
49
49
  --_ink: var(--color-brown-700);
50
50
  --_soft: var(--color-brown-700);
51
51
  }
52
+ [data-hue="green"] {
53
+ --_dot: var(--color-green-400);
54
+ --_fill: var(--color-green-300);
55
+ --_ink: var(--color-green-700);
56
+ --_soft: var(--color-green-700);
57
+ }
58
+ [data-hue="pink"] {
59
+ --_dot: var(--color-pink-400);
60
+ --_fill: var(--color-pink-300);
61
+ --_ink: var(--color-pink-700);
62
+ --_soft: var(--color-pink-700);
63
+ }
64
+ [data-hue="purple"] {
65
+ --_dot: var(--color-purple-400);
66
+ --_fill: var(--color-purple-300);
67
+ --_ink: var(--color-purple-700);
68
+ --_soft: var(--color-purple-700);
69
+ }
52
70
  [data-hue="gray"] {
53
71
  --_dot: var(--color-text-500);
54
72
  --_fill: var(--color-bg-300);
@@ -6,7 +6,8 @@
6
6
 
7
7
  import { useEffect, useState, type CSSProperties, type ReactNode } from "react";
8
8
 
9
- export type Hue = "teal" | "blue" | "yellow" | "orange" | "red" | "brown" | "gray";
9
+ export type Hue =
10
+ "teal" | "blue" | "yellow" | "orange" | "red" | "brown" | "green" | "pink" | "purple" | "gray";
10
11
  export type StepStatus = "done" | "active" | "pending";
11
12
 
12
13
  export function Spinner({ size }: { size?: "sm" | "lg" }) {
@@ -0,0 +1,41 @@
1
+ /* Tag: a hue tint behind a label, square-cornered (1184:51697). Fixed
2
+ geometry per size; the label's type rides the size keyword the way the
3
+ buttons' does, so a mount declares `--tag-size` per band on an ancestor
4
+ and one tag serves every band. The tint and ink come from the status
5
+ hue ramps through data-hue. */
6
+
7
+ .tag {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ box-sizing: border-box;
11
+ border-radius: var(--radius-xs);
12
+ background: var(--_fill);
13
+ color: var(--_ink);
14
+ white-space: nowrap;
15
+ }
16
+ .tag[data-size="md"] { --tag-size: md; }
17
+ .tag[data-size="sm"] { --tag-size: sm; }
18
+
19
+ /* The label sits one pixel high in its box (3 over, 4 under), as drawn. */
20
+ .tag-body {
21
+ display: block;
22
+ padding: var(--_pt) var(--space-sm) var(--_pb);
23
+ }
24
+ @container style(--tag-size: md) {
25
+ .tag-body {
26
+ --_pt: 3px;
27
+ --_pb: 4px;
28
+ --font: var(--ts-text-sm-regular-font);
29
+ --ls: var(--ts-text-sm-regular-ls);
30
+ --opsz: var(--ts-text-sm-regular-opsz);
31
+ }
32
+ }
33
+ @container style(--tag-size: sm) {
34
+ .tag-body {
35
+ --_pt: 2px;
36
+ --_pb: 3px;
37
+ --font: var(--ts-text-xs-regular-font);
38
+ --ls: var(--ts-text-xs-regular-ls);
39
+ --opsz: var(--ts-text-xs-regular-opsz);
40
+ }
41
+ }
@@ -0,0 +1,33 @@
1
+ /** Tag: a square-cornered hue tint with a label — the category mark of
2
+ * the usage price list (ks-MarketingSite 1184:51697). Material: fixed px
3
+ * per size, never band-aware; a mount picks the size per band with
4
+ * `--tag-size`. Colour arrives through `data-hue` and the status ramps.
5
+ * Styles live in tag.css. */
6
+
7
+ import type { ReactNode } from "react";
8
+ import type { Hue } from "./status";
9
+
10
+ export type TagSize = "md" | "sm" | "inherit";
11
+
12
+ export function Tag({
13
+ hue,
14
+ size = "md",
15
+ className,
16
+ children,
17
+ }: {
18
+ hue: Hue;
19
+ /** `inherit` takes `--tag-size` from an ancestor. */
20
+ size?: TagSize;
21
+ className?: string;
22
+ children: ReactNode;
23
+ }) {
24
+ return (
25
+ <span
26
+ className={className ? `tag ${className}` : "tag"}
27
+ data-hue={hue}
28
+ data-size={size === "inherit" ? undefined : size}
29
+ >
30
+ <span className="type type-fixed tag-body">{children}</span>
31
+ </span>
32
+ );
33
+ }
package/site-links.ts CHANGED
@@ -18,6 +18,7 @@ export const SITE_LINKS = {
18
18
  /* Deep link: the Our Work page opens the gallery overlay at site 1. */
19
19
  gallery: "/our-work?gallery=1",
20
20
  pricing: "/pricing",
21
+ priceList: "/pricing/price-list",
21
22
  company: "/company",
22
23
  design: "/design",
23
24
  resources: "/blog",