@horizonmedia/blu-design-system 0.0.0-stage → 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.
package/README.md CHANGED
@@ -1,3 +1,122 @@
1
- # Temporary Holding Version
1
+ # Blu Design System (`@blu/design-system`)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The look of Blu: color, type, spacing, radii, elevation and motion as CSS custom properties, plus
4
+ base styles, type classes, a Tailwind preset and lint rules. The Blu shell and the Admin use it,
5
+ and so should every module.
6
+
7
+ On npm it's **`@horizonmedia/blu-design-system`**. Install it under the name the docs use:
8
+
9
+ ```bash
10
+ npm install @blu/design-system@npm:@horizonmedia/blu-design-system@^1
11
+ ```
12
+
13
+ ## Which file to use
14
+
15
+ | You're building | Use |
16
+ |---|---|
17
+ | **A module inside the Blu shell** (federated) | Nothing to import: the shell loads the tokens and type classes on every page. Write `var(--blu-500)`, `var(--space-4)`, `class="t-h2"`. With Tailwind, add the preset (below) |
18
+ | **An isolated (iframe) module** | `import "@blu/design-system/tokens.css"` (and `type.css` if you use the type classes) |
19
+ | **A page that owns the whole document** (the shell, the Admin, a module's standalone page) | `import "@blu/design-system/base.css"`: tokens, type classes and a light reset |
20
+ | **Tailwind** | `presets: [require/import "@blu/design-system/tailwind-preset"]`. Every class maps to a token variable |
21
+
22
+ Don't import `base.css` into a federated module: its reset would restyle the shell. A module's own
23
+ CSS is scoped to its wrapper (`@blu/next-adapter` does this).
24
+
25
+ ## Tailwind
26
+
27
+ ```js
28
+ // tailwind.config.js
29
+ import bluPreset from "@blu/design-system/tailwind-preset";
30
+ export default { presets: [bluPreset], content: ["./app/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}"] };
31
+ ```
32
+
33
+ | Class family | Examples |
34
+ |---|---|
35
+ | Brand and accent ramps | `bg-blu-500`, `text-blu-700`, `bg-teal-50`, `text-danger-500`, `bg-chart-1` |
36
+ | Semantic | `text-ink`, `text-ink-secondary`, `bg-surface`, `bg-surface-subtle`, `border-line`, `border-line-strong` |
37
+ | Type | `font-sans`, `text-sm` … `text-4xl`, `font-medium` (headings), `tracking-wide` |
38
+ | Shape and motion | `rounded-md` (buttons, inputs, cards), `rounded-pill` (badges only), `shadow-md` (overlays only), `duration-base` |
39
+
40
+ Colors are CSS variables, so Tailwind's opacity shorthand (`bg-blu-500/50`) doesn't apply. Use the
41
+ lighter steps of a ramp (`bg-blu-50`, `bg-blu-100`) instead.
42
+
43
+ ## The rules
44
+
45
+ The full guide is [`source/README.md`](source/README.md). These are the rules that matter most:
46
+
47
+ - **Color:**
48
+ - Blu Blue `--blu-500` (`#0083BF`) for actions, links and the AI motif.
49
+ - Text is navy ink `--color-text-primary` (`#040E32`), never black.
50
+ - Teal for success, red for danger, amber for warning, purple for highlights.
51
+ - Charts use `--chart-1` … `--chart-5` (categorical) or `--chart-blu-1` … `-5` (one metric).
52
+ - **Type:**
53
+ - Arial. **Headings are Medium (500), not Bold**; Bold is for inline emphasis.
54
+ - Body is 16px. Numbers in data use tabular numerals.
55
+ - Classes: `.t-display`, `.t-h1`–`.t-h3`, `.t-body`, `.t-small`, `.t-eyebrow`, `.t-metric`.
56
+ - **Depth is border weight, not shadow:**
57
+ - Level 0 is `--elevation-0` (0.5px, tertiary border), level 1 `--elevation-1`, and level 2
58
+ `--elevation-2` (1px, primary).
59
+ - Shadows are only for real overlays: dropdowns and dialogs.
60
+ - **Radii:**
61
+ - 8px (`--radius-md`) for buttons, inputs and cards;
62
+ - 12px (`--radius-lg`) for larger cards;
63
+ - pill only for badges, avatars and segmented controls, **never buttons**.
64
+ - **Spacing:** a 4px grid, `--space-1` (4px) … `--space-16` (64px).
65
+ - **Motion:**
66
+ - `--duration-fast` (100ms) for hover and focus;
67
+ - `--duration-base` (200ms) for controls;
68
+ - `--duration-moderate` (300ms) for panels.
69
+ - Easing is `ease-out`.
70
+ - **Voice:** direct, numerate, second person. Sentence case, no exclamation marks, no emoji in
71
+ body copy. The sparkle icon marks AI.
72
+
73
+ **Lint.** `src/adherence.oxlintrc.json` warns on raw hex colors, raw px values and fonts outside
74
+ the system. Extend it from your oxlint config.
75
+
76
+ ## Logo
77
+
78
+ The "blu." wordmark, one color per file:
79
+
80
+ | File | Use on |
81
+ |---|---|
82
+ | `assets/logo-blu-blue.svg` | white or light backgrounds (the default) |
83
+ | `assets/logo-blu-navy.svg` | light backgrounds where blue would clash |
84
+ | `assets/logo-blu-white.svg` | navy, blue or dark backgrounds |
85
+
86
+ - Import them like any asset: `import logo from "@blu/design-system/assets/logo-blu-blue.svg"`.
87
+ Vite gives a URL; Next.js gives `logo.src`.
88
+ - Keep them at least 16px tall, with clear space around them at least as wide as the dot.
89
+ - Never recolor, stretch or outline them.
90
+ - **The logo belongs to the Blu shell, the Admin and Blu's own pages.** Modules don't show it;
91
+ they're already inside Blu.
92
+
93
+ They came from the Blu site in Akkio, since the original export doesn't include them. Replace
94
+ them with Horizon Media Design's official files, including the lockup, when we have them.
95
+
96
+ ## Fonts
97
+
98
+ The font family is Arial, but **no font files ship**: Arial is licensed by Monotype. Browsers use
99
+ the installed Arial. Regular, Bold and Italic are on macOS and Windows; Light, Medium and Black fall
100
+ back to the nearest installed weight.
101
+
102
+ If Horizon confirms a web-font license, the files can be hosted privately and loaded with
103
+ `@font-face`. Don't commit them.
104
+
105
+ ## What's here
106
+
107
+ | Path | What |
108
+ |---|---|
109
+ | `src/tokens.css` | Every token (`:root` custom properties only) |
110
+ | `src/type.css` | The semantic type classes |
111
+ | `src/base.css` | tokens + type + reset, for apps that own the page |
112
+ | `src/tailwind-preset.js` | Tailwind preset over the tokens |
113
+ | `src/adherence.oxlintrc.json` | Lint rules |
114
+ | `source/` | The original export, unchanged, for reference (see [`source/SOURCE.md`](source/SOURCE.md)): includes the 7 React components, **compiled only**. Their sources aren't in the export yet |
115
+
116
+ ## Changing it
117
+
118
+ - **Tokens are a contract** with every module. Don't rename or remove a token; add new ones.
119
+ - Bump `version` in `package.json` for each release. It's published with the SDKs (an `sdk-v*`
120
+ tag; see `.github/workflows/publish-sdks.yml`).
121
+ - The shell picks up a change on its next deploy, and federated modules follow without
122
+ rebuilding.
@@ -0,0 +1,37 @@
1
+ {
2
+ "$comment": "Blu Design System adherence rules (from the export's _adherence.oxlintrc.json): no raw hex colors, no raw px values, no fonts outside the system. Warnings, not errors. Extend it from a module's .oxlintrc.json: \"extends\": [\"node_modules/@blu/design-system/src/adherence.oxlintrc.json\"].",
3
+ "plugins": [
4
+ "react",
5
+ "import"
6
+ ],
7
+ "rules": {
8
+ "no-restricted-imports": [
9
+ "warn",
10
+ {
11
+ "patterns": [
12
+ {
13
+ "group": [
14
+ "**/design-system/source/**"
15
+ ],
16
+ "message": "source/ is the original export, kept for reference. Use @blu/design-system (tokens.css, base.css, tailwind-preset)."
17
+ }
18
+ ]
19
+ }
20
+ ],
21
+ "no-restricted-syntax": [
22
+ "warn",
23
+ {
24
+ "selector": "Literal[value=/#[0-9a-fA-F]{3,8}\\b/]",
25
+ "message": "Raw hex color \u2014 use a design-system color token via var()."
26
+ },
27
+ {
28
+ "selector": "Literal[value=/\\b\\d+px\\b/]",
29
+ "message": "Raw px value \u2014 use a design-system spacing token via var()."
30
+ },
31
+ {
32
+ "selector": "Literal[value=/font-family\\s*:\\s*(?!['\\\"]?(?:Arial|Arial Narrow))/i]",
33
+ "message": "Font not provided by the design system. Available: Arial, Arial Narrow."
34
+ }
35
+ ]
36
+ }
37
+ }
@@ -0,0 +1,18 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="82" height="40" viewBox="0 0 82 40" fill="none" role="img" aria-label="blu.">
2
+ <title>blu.</title>
3
+ <g clip-path="url(#blu-logo-blue-clip)">
4
+ <path d="M64.3537 34.8865C64.2 35.0553 64.0604 35.2205 63.9076 35.3724C60.9339 38.3249 57.3692 39.9452 53.164 39.9673C50.4774 39.9814 47.8412 39.5529 45.4505 38.2375C41.8001 36.2303 39.3857 33.2318 38.4024 29.1406C38.0569 27.705 37.8608 26.249 37.8582 24.7728C37.8502 20.1515 37.8599 15.5301 37.8467 10.9088C37.8458 10.5148 37.9324 10.3734 38.3511 10.3929C39.1003 10.4291 39.853 10.4273 40.6022 10.3929C41.0174 10.3743 41.1464 10.4759 41.1446 10.9159C41.1261 15.1105 41.1314 19.3051 41.1349 23.4997C41.1367 25.1801 41.2179 26.8604 41.612 28.4965C42.3973 31.7556 44.3639 34.0923 47.4021 35.4625C51.8794 37.4821 56.2092 37.0457 60.2121 34.2672C62.1495 32.9226 63.2777 30.8871 63.9262 28.6149C64.276 27.3905 64.4235 26.136 64.4253 24.8664C64.4297 20.1417 64.4297 15.4179 64.42 10.6932C64.42 10.4167 64.4598 10.2983 64.7707 10.3063C65.58 10.3266 66.3901 10.3204 67.1993 10.3089C67.4441 10.3054 67.5616 10.377 67.5306 10.6332C67.52 10.7206 67.5289 10.8098 67.5289 10.8982C67.5289 20.3909 67.5289 29.8844 67.5289 39.3771C67.5289 39.7794 67.3207 39.9805 66.9043 39.9805C66.1975 39.9805 65.4907 39.9681 64.7849 39.9867C64.4942 39.9946 64.4147 39.9134 64.4191 39.6156C64.4377 38.188 64.4297 36.7603 64.4244 35.3327C64.4244 35.1949 64.4801 35.0429 64.3529 34.883L64.3537 34.8865Z"
5
+ fill="#0083BF" />
6
+ <path d="M35.2043 20.0456C35.2043 26.5063 35.2008 32.9661 35.2132 39.4268C35.2132 39.8517 35.1434 40.0258 34.6672 39.9975C33.9048 39.9516 33.1371 39.9754 32.372 39.9904C32.1043 39.9957 31.9877 39.9127 32.0213 39.6406C32.0319 39.554 32.023 39.4639 32.023 39.3755C32.023 26.4551 32.023 13.5346 32.0239 0.614138C32.0239 -0.0749539 31.9523 0.016925 32.6441 0.0125078C33.3358 0.0080905 34.0285 0.034594 34.7193 0.0027898C35.1063 -0.0148792 35.2167 0.0929018 35.214 0.488688C35.1955 3.18145 35.2043 5.8742 35.2043 8.56785C35.2043 12.3941 35.2043 16.2203 35.2043 20.0465V20.0456Z"
7
+ fill="#0083BF" />
8
+ <path d="M29.7948 23.2589C29.6402 21.401 29.1305 19.6473 28.2505 18.0059C26.4624 14.6682 23.6195 12.6018 20.1467 11.2899C17.6483 10.3464 15.0703 10.2872 12.488 10.7068C9.00192 11.2731 5.97169 12.7644 3.61906 15.4775C3.5687 15.5349 3.54573 15.648 3.40703 15.6047V15.17C3.40703 12.0497 3.40703 8.92932 3.40703 5.80897C3.40703 4.02794 3.39643 2.2469 3.41586 0.465864C3.42028 0.0921644 3.30543 -0.0094324 2.94322 0.00293591C2.17903 0.0294394 1.4122 0.0250222 0.647128 0.00470281C0.317601 -0.0041317 0.199219 0.0585933 0.200102 0.433176C0.211587 13.5029 0.208937 26.5736 0.199219 39.6434C0.199219 39.9314 0.288447 39.9932 0.548182 39.9888C1.32827 39.9764 2.11012 39.9588 2.88844 39.9941C3.32487 40.0144 3.42381 39.8678 3.41675 39.4508C3.39113 37.9242 3.40703 36.3967 3.40703 34.7632C3.94152 35.3295 4.34525 35.8525 4.86472 36.2712C6.88429 37.9003 9.0885 39.1566 11.6549 39.6973C13.6701 40.1213 15.6967 40.0648 17.7092 39.7344C23.3129 38.8147 27.186 35.7394 29.1252 30.3636C29.9538 28.0666 29.9954 25.6672 29.7948 23.258V23.2589ZM25.2238 31.088C23.9632 33.4124 21.9913 35.0989 19.4461 35.9611C14.5809 37.6088 9.39594 36.4939 5.9443 32.5846C4.30285 30.7258 3.66676 28.4739 3.5952 26.0356C3.58725 25.7564 3.59432 25.4764 3.59432 25.1972C3.46887 22.8357 4.13234 20.6934 5.39656 18.7197C6.985 16.2381 9.33322 14.8175 12.1205 14.1585C16.2471 13.1831 19.9974 14.0092 23.229 16.8459C25.0586 18.452 25.973 20.5661 26.4598 22.8781C27.0658 25.7546 26.602 28.5463 25.2238 31.088Z"
9
+ fill="#0083BF" />
10
+ <path d="M75.7661 27.8374C72.4249 27.8356 69.6959 30.5628 69.7012 33.9067C69.7056 37.0748 72.1545 39.9257 75.774 39.9698C79.1143 40.0114 81.8053 37.2338 81.8009 33.8767C81.7974 30.5443 79.0931 27.8392 75.7661 27.8374ZM75.7625 37.5518C73.7377 37.5545 72.0591 35.8821 72.0794 33.882C72.0997 31.8721 73.7368 30.2598 75.759 30.2563C77.7927 30.2528 79.4624 31.9172 79.4386 33.9217C79.4147 35.9369 77.783 37.5483 75.7625 37.5509V37.5518Z"
11
+ fill="#0083BF" />
12
+ </g>
13
+ <defs>
14
+ <clipPath id="blu-logo-blue-clip">
15
+ <rect width="81.6017" height="40" fill="white" transform="translate(0.199219)" />
16
+ </clipPath>
17
+ </defs>
18
+ </svg>
@@ -0,0 +1,18 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="82" height="40" viewBox="0 0 82 40" fill="none" role="img" aria-label="blu.">
2
+ <title>blu.</title>
3
+ <g clip-path="url(#blu-logo-navy-clip)">
4
+ <path d="M64.3537 34.8865C64.2 35.0553 64.0604 35.2205 63.9076 35.3724C60.9339 38.3249 57.3692 39.9452 53.164 39.9673C50.4774 39.9814 47.8412 39.5529 45.4505 38.2375C41.8001 36.2303 39.3857 33.2318 38.4024 29.1406C38.0569 27.705 37.8608 26.249 37.8582 24.7728C37.8502 20.1515 37.8599 15.5301 37.8467 10.9088C37.8458 10.5148 37.9324 10.3734 38.3511 10.3929C39.1003 10.4291 39.853 10.4273 40.6022 10.3929C41.0174 10.3743 41.1464 10.4759 41.1446 10.9159C41.1261 15.1105 41.1314 19.3051 41.1349 23.4997C41.1367 25.1801 41.2179 26.8604 41.612 28.4965C42.3973 31.7556 44.3639 34.0923 47.4021 35.4625C51.8794 37.4821 56.2092 37.0457 60.2121 34.2672C62.1495 32.9226 63.2777 30.8871 63.9262 28.6149C64.276 27.3905 64.4235 26.136 64.4253 24.8664C64.4297 20.1417 64.4297 15.4179 64.42 10.6932C64.42 10.4167 64.4598 10.2983 64.7707 10.3063C65.58 10.3266 66.3901 10.3204 67.1993 10.3089C67.4441 10.3054 67.5616 10.377 67.5306 10.6332C67.52 10.7206 67.5289 10.8098 67.5289 10.8982C67.5289 20.3909 67.5289 29.8844 67.5289 39.3771C67.5289 39.7794 67.3207 39.9805 66.9043 39.9805C66.1975 39.9805 65.4907 39.9681 64.7849 39.9867C64.4942 39.9946 64.4147 39.9134 64.4191 39.6156C64.4377 38.188 64.4297 36.7603 64.4244 35.3327C64.4244 35.1949 64.4801 35.0429 64.3529 34.883L64.3537 34.8865Z"
5
+ fill="#040E32" />
6
+ <path d="M35.2043 20.0456C35.2043 26.5063 35.2008 32.9661 35.2132 39.4268C35.2132 39.8517 35.1434 40.0258 34.6672 39.9975C33.9048 39.9516 33.1371 39.9754 32.372 39.9904C32.1043 39.9957 31.9877 39.9127 32.0213 39.6406C32.0319 39.554 32.023 39.4639 32.023 39.3755C32.023 26.4551 32.023 13.5346 32.0239 0.614138C32.0239 -0.0749539 31.9523 0.016925 32.6441 0.0125078C33.3358 0.0080905 34.0285 0.034594 34.7193 0.0027898C35.1063 -0.0148792 35.2167 0.0929018 35.214 0.488688C35.1955 3.18145 35.2043 5.8742 35.2043 8.56785C35.2043 12.3941 35.2043 16.2203 35.2043 20.0465V20.0456Z"
7
+ fill="#040E32" />
8
+ <path d="M29.7948 23.2589C29.6402 21.401 29.1305 19.6473 28.2505 18.0059C26.4624 14.6682 23.6195 12.6018 20.1467 11.2899C17.6483 10.3464 15.0703 10.2872 12.488 10.7068C9.00192 11.2731 5.97169 12.7644 3.61906 15.4775C3.5687 15.5349 3.54573 15.648 3.40703 15.6047V15.17C3.40703 12.0497 3.40703 8.92932 3.40703 5.80897C3.40703 4.02794 3.39643 2.2469 3.41586 0.465864C3.42028 0.0921644 3.30543 -0.0094324 2.94322 0.00293591C2.17903 0.0294394 1.4122 0.0250222 0.647128 0.00470281C0.317601 -0.0041317 0.199219 0.0585933 0.200102 0.433176C0.211587 13.5029 0.208937 26.5736 0.199219 39.6434C0.199219 39.9314 0.288447 39.9932 0.548182 39.9888C1.32827 39.9764 2.11012 39.9588 2.88844 39.9941C3.32487 40.0144 3.42381 39.8678 3.41675 39.4508C3.39113 37.9242 3.40703 36.3967 3.40703 34.7632C3.94152 35.3295 4.34525 35.8525 4.86472 36.2712C6.88429 37.9003 9.0885 39.1566 11.6549 39.6973C13.6701 40.1213 15.6967 40.0648 17.7092 39.7344C23.3129 38.8147 27.186 35.7394 29.1252 30.3636C29.9538 28.0666 29.9954 25.6672 29.7948 23.258V23.2589ZM25.2238 31.088C23.9632 33.4124 21.9913 35.0989 19.4461 35.9611C14.5809 37.6088 9.39594 36.4939 5.9443 32.5846C4.30285 30.7258 3.66676 28.4739 3.5952 26.0356C3.58725 25.7564 3.59432 25.4764 3.59432 25.1972C3.46887 22.8357 4.13234 20.6934 5.39656 18.7197C6.985 16.2381 9.33322 14.8175 12.1205 14.1585C16.2471 13.1831 19.9974 14.0092 23.229 16.8459C25.0586 18.452 25.973 20.5661 26.4598 22.8781C27.0658 25.7546 26.602 28.5463 25.2238 31.088Z"
9
+ fill="#040E32" />
10
+ <path d="M75.7661 27.8374C72.4249 27.8356 69.6959 30.5628 69.7012 33.9067C69.7056 37.0748 72.1545 39.9257 75.774 39.9698C79.1143 40.0114 81.8053 37.2338 81.8009 33.8767C81.7974 30.5443 79.0931 27.8392 75.7661 27.8374ZM75.7625 37.5518C73.7377 37.5545 72.0591 35.8821 72.0794 33.882C72.0997 31.8721 73.7368 30.2598 75.759 30.2563C77.7927 30.2528 79.4624 31.9172 79.4386 33.9217C79.4147 35.9369 77.783 37.5483 75.7625 37.5509V37.5518Z"
11
+ fill="#040E32" />
12
+ </g>
13
+ <defs>
14
+ <clipPath id="blu-logo-navy-clip">
15
+ <rect width="81.6017" height="40" fill="white" transform="translate(0.199219)" />
16
+ </clipPath>
17
+ </defs>
18
+ </svg>
@@ -0,0 +1,18 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="82" height="40" viewBox="0 0 82 40" fill="none" role="img" aria-label="blu.">
2
+ <title>blu.</title>
3
+ <g clip-path="url(#blu-logo-white-clip)">
4
+ <path d="M64.3537 34.8865C64.2 35.0553 64.0604 35.2205 63.9076 35.3724C60.9339 38.3249 57.3692 39.9452 53.164 39.9673C50.4774 39.9814 47.8412 39.5529 45.4505 38.2375C41.8001 36.2303 39.3857 33.2318 38.4024 29.1406C38.0569 27.705 37.8608 26.249 37.8582 24.7728C37.8502 20.1515 37.8599 15.5301 37.8467 10.9088C37.8458 10.5148 37.9324 10.3734 38.3511 10.3929C39.1003 10.4291 39.853 10.4273 40.6022 10.3929C41.0174 10.3743 41.1464 10.4759 41.1446 10.9159C41.1261 15.1105 41.1314 19.3051 41.1349 23.4997C41.1367 25.1801 41.2179 26.8604 41.612 28.4965C42.3973 31.7556 44.3639 34.0923 47.4021 35.4625C51.8794 37.4821 56.2092 37.0457 60.2121 34.2672C62.1495 32.9226 63.2777 30.8871 63.9262 28.6149C64.276 27.3905 64.4235 26.136 64.4253 24.8664C64.4297 20.1417 64.4297 15.4179 64.42 10.6932C64.42 10.4167 64.4598 10.2983 64.7707 10.3063C65.58 10.3266 66.3901 10.3204 67.1993 10.3089C67.4441 10.3054 67.5616 10.377 67.5306 10.6332C67.52 10.7206 67.5289 10.8098 67.5289 10.8982C67.5289 20.3909 67.5289 29.8844 67.5289 39.3771C67.5289 39.7794 67.3207 39.9805 66.9043 39.9805C66.1975 39.9805 65.4907 39.9681 64.7849 39.9867C64.4942 39.9946 64.4147 39.9134 64.4191 39.6156C64.4377 38.188 64.4297 36.7603 64.4244 35.3327C64.4244 35.1949 64.4801 35.0429 64.3529 34.883L64.3537 34.8865Z"
5
+ fill="#FFFFFF" />
6
+ <path d="M35.2043 20.0456C35.2043 26.5063 35.2008 32.9661 35.2132 39.4268C35.2132 39.8517 35.1434 40.0258 34.6672 39.9975C33.9048 39.9516 33.1371 39.9754 32.372 39.9904C32.1043 39.9957 31.9877 39.9127 32.0213 39.6406C32.0319 39.554 32.023 39.4639 32.023 39.3755C32.023 26.4551 32.023 13.5346 32.0239 0.614138C32.0239 -0.0749539 31.9523 0.016925 32.6441 0.0125078C33.3358 0.0080905 34.0285 0.034594 34.7193 0.0027898C35.1063 -0.0148792 35.2167 0.0929018 35.214 0.488688C35.1955 3.18145 35.2043 5.8742 35.2043 8.56785C35.2043 12.3941 35.2043 16.2203 35.2043 20.0465V20.0456Z"
7
+ fill="#FFFFFF" />
8
+ <path d="M29.7948 23.2589C29.6402 21.401 29.1305 19.6473 28.2505 18.0059C26.4624 14.6682 23.6195 12.6018 20.1467 11.2899C17.6483 10.3464 15.0703 10.2872 12.488 10.7068C9.00192 11.2731 5.97169 12.7644 3.61906 15.4775C3.5687 15.5349 3.54573 15.648 3.40703 15.6047V15.17C3.40703 12.0497 3.40703 8.92932 3.40703 5.80897C3.40703 4.02794 3.39643 2.2469 3.41586 0.465864C3.42028 0.0921644 3.30543 -0.0094324 2.94322 0.00293591C2.17903 0.0294394 1.4122 0.0250222 0.647128 0.00470281C0.317601 -0.0041317 0.199219 0.0585933 0.200102 0.433176C0.211587 13.5029 0.208937 26.5736 0.199219 39.6434C0.199219 39.9314 0.288447 39.9932 0.548182 39.9888C1.32827 39.9764 2.11012 39.9588 2.88844 39.9941C3.32487 40.0144 3.42381 39.8678 3.41675 39.4508C3.39113 37.9242 3.40703 36.3967 3.40703 34.7632C3.94152 35.3295 4.34525 35.8525 4.86472 36.2712C6.88429 37.9003 9.0885 39.1566 11.6549 39.6973C13.6701 40.1213 15.6967 40.0648 17.7092 39.7344C23.3129 38.8147 27.186 35.7394 29.1252 30.3636C29.9538 28.0666 29.9954 25.6672 29.7948 23.258V23.2589ZM25.2238 31.088C23.9632 33.4124 21.9913 35.0989 19.4461 35.9611C14.5809 37.6088 9.39594 36.4939 5.9443 32.5846C4.30285 30.7258 3.66676 28.4739 3.5952 26.0356C3.58725 25.7564 3.59432 25.4764 3.59432 25.1972C3.46887 22.8357 4.13234 20.6934 5.39656 18.7197C6.985 16.2381 9.33322 14.8175 12.1205 14.1585C16.2471 13.1831 19.9974 14.0092 23.229 16.8459C25.0586 18.452 25.973 20.5661 26.4598 22.8781C27.0658 25.7546 26.602 28.5463 25.2238 31.088Z"
9
+ fill="#FFFFFF" />
10
+ <path d="M75.7661 27.8374C72.4249 27.8356 69.6959 30.5628 69.7012 33.9067C69.7056 37.0748 72.1545 39.9257 75.774 39.9698C79.1143 40.0114 81.8053 37.2338 81.8009 33.8767C81.7974 30.5443 79.0931 27.8392 75.7661 27.8374ZM75.7625 37.5518C73.7377 37.5545 72.0591 35.8821 72.0794 33.882C72.0997 31.8721 73.7368 30.2598 75.759 30.2563C77.7927 30.2528 79.4624 31.9172 79.4386 33.9217C79.4147 35.9369 77.783 37.5483 75.7625 37.5509V37.5518Z"
11
+ fill="#FFFFFF" />
12
+ </g>
13
+ <defs>
14
+ <clipPath id="blu-logo-white-clip">
15
+ <rect width="81.6017" height="40" fill="white" transform="translate(0.199219)" />
16
+ </clipPath>
17
+ </defs>
18
+ </svg>
package/base.css ADDED
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Blu Design System: base styles for apps that own the whole page (the Blu shell, the Admin, a
3
+ * module's standalone page). Tokens + type classes + a light reset.
4
+ *
5
+ * Modules rendered inside the shell must NOT import this: the shell already loads it, and a
6
+ * module's own CSS is scoped to its wrapper. Use the tokens (var(--blu-500), …) instead.
7
+ *
8
+ * import "@blu/design-system/base.css";
9
+ */
10
+ @import "./tokens.css";
11
+ @import "./type.css";
12
+
13
+ *, *::before, *::after { box-sizing: border-box; }
14
+
15
+ html {
16
+ font-family: var(--font-sans);
17
+ font-size: var(--fs-base);
18
+ line-height: var(--lh-normal);
19
+ color: var(--color-text-primary);
20
+ background: var(--color-background-secondary);
21
+ -webkit-font-smoothing: antialiased;
22
+ }
23
+ body { margin: 0; }
24
+
25
+ /* Headings are Medium (500), never Bold: Bold is for inline emphasis only. */
26
+ h1, h2, h3, h4, h5, h6 { font-weight: var(--fw-medium); line-height: var(--lh-snug); }
27
+
28
+ a { color: var(--color-text-brand); text-decoration: none; }
29
+ a:hover { color: var(--blu-700); text-decoration: underline; }
30
+
31
+ button, input, select, textarea { font: inherit; color: inherit; }
32
+ button { cursor: pointer; }
33
+
34
+ /* Keyboard focus stays visible (the export removed outlines; that fails accessibility). */
35
+ :focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; }
36
+
37
+ /* Data is tabular. */
38
+ table, .tabular { font-variant-numeric: tabular-nums; }
package/package.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "@horizonmedia/blu-design-system",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "The Blu Design System: tokens (CSS custom properties), base styles, type classes, a Tailwind preset and lint rules for Blu modules.",
5
+ "type": "module",
6
+ "license": "UNLICENSED",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/HorizonMedia/blu-composable-experience.git",
10
+ "directory": "packages/design-system"
11
+ },
12
+ "homepage": "https://github.com/HorizonMedia/blu-composable-experience/tree/main/packages/design-system#readme",
13
+ "publishConfig": {
14
+ "registry": "https://registry.npmjs.org",
15
+ "access": "public"
16
+ },
17
+ "sideEffects": [
18
+ "*.css"
19
+ ],
20
+ "exports": {
21
+ "./tailwind-preset": {
22
+ "types": "./types/tailwind-preset.d.ts",
23
+ "default": "./tailwind-preset.js"
24
+ },
25
+ "./tokens.css": "./tokens.css",
26
+ "./type.css": "./type.css",
27
+ "./base.css": "./base.css",
28
+ "./adherence.oxlintrc.json": "./adherence.oxlintrc.json",
29
+ "./assets/logo-blu-blue.svg": "./assets/logo-blu-blue.svg",
30
+ "./assets/logo-blu-navy.svg": "./assets/logo-blu-navy.svg",
31
+ "./assets/logo-blu-white.svg": "./assets/logo-blu-white.svg"
32
+ }
33
+ }
@@ -0,0 +1,53 @@
1
+ // src/tailwind-preset.js
2
+ var v = (name) => `var(--${name})`;
3
+ var ramp = (name, steps) => Object.fromEntries(steps.map((s) => [s, v(`${name}-${s}`)]));
4
+ var BLU = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
5
+ var NEUTRAL = [0, 25, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
6
+ var SHORT = [50, 200, 500, 700, 900];
7
+ var preset = {
8
+ theme: {
9
+ extend: {
10
+ colors: {
11
+ blu: ramp("blu", BLU),
12
+ neutral: ramp("neutral", NEUTRAL),
13
+ success: ramp("success", SHORT),
14
+ danger: ramp("danger", SHORT),
15
+ warning: ramp("warning", SHORT),
16
+ purple: ramp("purple", SHORT),
17
+ teal: ramp("teal", SHORT),
18
+ amber: ramp("amber", SHORT),
19
+ navy: ramp("navy", [500, 700, 900]),
20
+ chart: {
21
+ 1: v("chart-1"),
22
+ 2: v("chart-2"),
23
+ 3: v("chart-3"),
24
+ 4: v("chart-4"),
25
+ 5: v("chart-5"),
26
+ "blu-1": v("chart-blu-1"),
27
+ "blu-2": v("chart-blu-2"),
28
+ "blu-3": v("chart-blu-3"),
29
+ "blu-4": v("chart-blu-4"),
30
+ "blu-5": v("chart-blu-5")
31
+ },
32
+ // Semantic names: prefer these in UI code.
33
+ ink: { DEFAULT: v("color-text-primary"), secondary: v("color-text-secondary"), tertiary: v("color-text-tertiary"), brand: v("color-text-brand"), "on-brand": v("color-text-on-brand") },
34
+ surface: { DEFAULT: v("color-background-primary"), subtle: v("color-background-secondary"), wash: v("color-background-tertiary"), brand: v("color-background-brand") },
35
+ line: { DEFAULT: v("color-border-tertiary"), secondary: v("color-border-secondary"), strong: v("color-border-primary"), focus: v("color-border-focus") }
36
+ },
37
+ fontFamily: { sans: [v("font-sans")], narrow: [v("font-narrow")], mono: [v("font-mono")] },
38
+ fontSize: Object.fromEntries(["2xs", "xs", "sm", "base", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"].map((s) => [s, v(`fs-${s}`)])),
39
+ fontWeight: { light: v("fw-light"), normal: v("fw-regular"), medium: v("fw-medium"), bold: v("fw-bold"), black: v("fw-black") },
40
+ lineHeight: { tight: v("lh-tight"), snug: v("lh-snug"), normal: v("lh-normal"), relaxed: v("lh-relaxed") },
41
+ letterSpacing: { tight: v("tracking-tight"), normal: v("tracking-normal"), wide: v("tracking-wide") },
42
+ borderRadius: { xs: v("radius-xs"), sm: v("radius-sm"), md: v("radius-md"), lg: v("radius-lg"), xl: v("radius-xl"), "2xl": v("radius-2xl"), pill: v("radius-pill") },
43
+ // Depth is border weight; shadows are for overlays (menus, dialogs) only.
44
+ boxShadow: { xs: v("shadow-xs"), sm: v("shadow-sm"), md: v("shadow-md"), lg: v("shadow-lg"), xl: v("shadow-xl"), focus: v("shadow-focus") },
45
+ transitionDuration: { fast: v("duration-fast"), base: v("duration-base"), moderate: v("duration-moderate") },
46
+ transitionTimingFunction: { standard: v("easing-standard") }
47
+ }
48
+ }
49
+ };
50
+ var tailwind_preset_default = preset;
51
+ export {
52
+ tailwind_preset_default as default
53
+ };
package/tokens.css ADDED
@@ -0,0 +1,247 @@
1
+ /*
2
+ * Blu Design System: tokens (CSS custom properties only, no selectors besides :root).
3
+ *
4
+ * Safe to load anywhere: the Blu shell loads it for every page, so federated modules get these
5
+ * variables without importing anything. Isolated (iframe) modules and standalone pages import
6
+ * it themselves: @blu/design-system/tokens.css.
7
+ *
8
+ * From the Blu Design System export (Horizon Media Design, July 2026), packages/design-system/source/.
9
+ * Fonts: the family is Arial, but no font files are shipped (Arial is licensed by Monotype).
10
+ * Browsers use the installed Arial; Light (300), Medium (500) and Black (900) fall back to the
11
+ * nearest installed weight.
12
+ */
13
+ :root {
14
+ /* ============================================================
15
+ COLOR — full ramps (50 / 200 / 500 / 700 / 900 anchors,
16
+ intermediate steps interpolated). Source: reference DS.
17
+ ============================================================ */
18
+
19
+ /* -------- Blu Blue — brand primary · official Color A #0083BF (cyan) -------- */
20
+ --blu-50: #E5F3FA;
21
+ --blu-100: #CCE6F5;
22
+ --blu-200: #99CCEB;
23
+ --blu-300: #66B3E0;
24
+ --blu-400: #339AD6; /* brighter interactive — focus rings, charts */
25
+ --blu-500: #0083BF; /* — PRIMARY brand blue / actions (A) */
26
+ --blu-600: #006FA1;
27
+ --blu-700: #005E89; /* deep — link text, pressed */
28
+ --blu-800: #004A6D;
29
+ --blu-900: #003654;
30
+
31
+ /* -------- Neutral Gray — COOL · anchored on official G #BFBFBF -------- */
32
+ --neutral-0: #FFFFFF; /* H */
33
+ --neutral-25: #FAFBFC;
34
+ --neutral-50: #F4F6F8; /* app background / surfaces */
35
+ --neutral-100: #ECEFF2; /* wash, stat-card bg */
36
+ --neutral-200: #E1E4E8; /* border tertiary */
37
+ --neutral-300: #CFD3D8; /* border secondary */
38
+ --neutral-400: #BFBFBF; /* border primary, muted (G) */
39
+ --neutral-500: #8A8F96; /* text tertiary / placeholder */
40
+ --neutral-600: #5B6068; /* text secondary */
41
+ --neutral-700: #3A3F47;
42
+ --neutral-800: #1B2233;
43
+ --neutral-900: #040E32; /* text primary — navy ink (B) */
44
+
45
+ /* -------- Success — official Teal C #01B282 -------- */
46
+ --success-50: #E5F7F1;
47
+ --success-200: #4DCFAA;
48
+ --success-500: #01B282;
49
+ --success-700: #007F5C;
50
+ --success-900: #00402F;
51
+
52
+ /* -------- Danger Red (sheet has no red; clean signal red) -------- */
53
+ --danger-50: #FCEBEB;
54
+ --danger-200: #F09595;
55
+ --danger-500: #D9352B;
56
+ --danger-700: #A32D2D;
57
+ --danger-900: #501313;
58
+
59
+ /* -------- Warning — official Amber E #FFB600 -------- */
60
+ --warning-50: #FFF5DB;
61
+ --warning-200: #FFCF52;
62
+ --warning-500: #FFB600;
63
+ --warning-700: #B88300;
64
+ --warning-900: #5C4200;
65
+
66
+ /* -------- Accent Purple — official Color D #4D419A — highlights / premium -------- */
67
+ --purple-50: #EDEBF5;
68
+ --purple-200: #8B81C2;
69
+ --purple-500: #4D419A;
70
+ --purple-700: #342B6A;
71
+ --purple-900: #221C47;
72
+
73
+ /* -------- Accent Teal — official Color C #01B282 — data / secondary -------- */
74
+ --teal-50: #E5F7F1;
75
+ --teal-200: #4DCFAA;
76
+ --teal-500: #01B282;
77
+ --teal-700: #007F5C;
78
+ --teal-900: #00402F;
79
+
80
+ /* -------- Accent Amber — official Color E #FFB600 — attention / tags -------- */
81
+ --amber-50: #FFF5DB;
82
+ --amber-200: #FFCF52;
83
+ --amber-500: #FFB600;
84
+ --amber-700: #B88300;
85
+ --amber-900: #5C4200;
86
+
87
+ /* -------- Deep navy — official Color B #040E32 (dark panels, ink) -------- */
88
+ --navy-500: #0A1A40;
89
+ --navy-700: #061233;
90
+ --navy-900: #040E32;
91
+
92
+ /* -------- Chart palette -------- */
93
+ /* Categorical: brand-led, then official accents */
94
+ --chart-1: #0083BF; /* blu (A) */
95
+ --chart-2: #01B282; /* teal (C) */
96
+ --chart-3: #4D419A; /* purple (D) */
97
+ --chart-4: #FFB600; /* amber (E) */
98
+ --chart-5: #040E32; /* navy (B) */
99
+ /* Mono-blue ramp for single-metric series */
100
+ --chart-blu-1: #003654;
101
+ --chart-blu-2: #005E89;
102
+ --chart-blu-3: #0083BF;
103
+ --chart-blu-4: #66B3E0;
104
+ --chart-blu-5: #CCE6F5;
105
+
106
+ /* ============================================================
107
+ SEMANTIC COLOR TOKENS (names match reference DS + legacy aliases)
108
+ ============================================================ */
109
+ --color-text-primary: var(--neutral-900);
110
+ --color-text-secondary: var(--neutral-600);
111
+ --color-text-tertiary: var(--neutral-500);
112
+ --color-text-brand: var(--blu-500);
113
+ --color-text-on-brand: #FFFFFF;
114
+
115
+ --color-background-primary: #FFFFFF;
116
+ --color-background-secondary: var(--neutral-50);
117
+ --color-background-tertiary: var(--neutral-100);
118
+ --color-background-brand: var(--blu-500);
119
+
120
+ --color-border-primary: var(--neutral-400); /* 1px — level 2 */
121
+ --color-border-secondary: var(--neutral-300); /* 0.5px — level 1 */
122
+ --color-border-tertiary: var(--neutral-200); /* 0.5px — level 0 */
123
+ --color-border-focus: var(--blu-400);
124
+
125
+ /* Legacy aliases (keep older cards + UI kit working) */
126
+ --bg-app: var(--color-background-secondary);
127
+ --bg-surface: var(--color-background-primary);
128
+ --bg-subtle: var(--color-background-secondary);
129
+ --bg-input: var(--color-background-primary);
130
+ --bg-hover: var(--neutral-100);
131
+ --border-subtle: var(--color-border-tertiary);
132
+ --border-strong: var(--color-border-primary);
133
+ --border-focus: var(--color-border-focus);
134
+ --fg-primary: var(--color-text-primary);
135
+ --fg-secondary: var(--color-text-secondary);
136
+ --fg-muted: var(--color-text-tertiary);
137
+ --fg-on-blu: #FFFFFF;
138
+ --fg-brand: var(--blu-500);
139
+ --info-500: var(--blu-500);
140
+ --info-50: var(--blu-50);
141
+
142
+ /* ============================================================
143
+ TYPE TOKENS — headings are MEDIUM (500), not bold
144
+ ============================================================ */
145
+ --font-sans: "Arial", "Helvetica Neue", Helvetica, Arial, sans-serif;
146
+ --font-narrow: "Arial Narrow", "Arial", sans-serif;
147
+ --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
148
+
149
+ --fs-2xs: 11px;
150
+ --fs-xs: 12px;
151
+ --fs-sm: 13px;
152
+ --fs-base: 16px; /* body */
153
+ --fs-md: 16px;
154
+ --fs-lg: 18px;
155
+ --fs-xl: 20px;
156
+ --fs-2xl: 22px;
157
+ --fs-3xl: 26px;
158
+ --fs-4xl: 32px; /* display */
159
+ --fs-5xl: 40px;
160
+ --fs-6xl: 48px;
161
+
162
+ --fw-light: 300;
163
+ --fw-regular: 400;
164
+ --fw-medium: 500; /* default heading weight */
165
+ --fw-bold: 700; /* reserve for emphasis only */
166
+ --fw-black: 900;
167
+
168
+ --lh-tight: 1.15;
169
+ --lh-snug: 1.3;
170
+ --lh-normal: 1.5;
171
+ --lh-relaxed: 1.7; /* body */
172
+
173
+ --tracking-tight: -0.01em;
174
+ --tracking-normal: 0;
175
+ --tracking-wide: 0.08em; /* uppercase labels */
176
+
177
+ /* ============================================================
178
+ RADII — buttons/inputs/cards use 8–12px, NOT pill.
179
+ Pill (100px) reserved for badges, avatars, segmented control.
180
+ ============================================================ */
181
+ --radius-xs: 2px;
182
+ --radius-sm: 6px;
183
+ --radius-md: 8px;
184
+ --radius-lg: 12px;
185
+ --radius-xl: 16px;
186
+ --radius-2xl: 20px;
187
+ --radius-pill: 100px;
188
+ /* reference-DS names */
189
+ --border-radius-xs: 2px;
190
+ --border-radius-sm: 6px;
191
+ --border-radius-md: 8px;
192
+ --border-radius-lg: 12px;
193
+
194
+ /* ============================================================
195
+ ELEVATION — depth is expressed with BORDER WEIGHT, not shadow.
196
+ Shadows are reserved for true overlays only.
197
+ ============================================================ */
198
+ --elevation-0: 0.5px solid var(--color-border-tertiary);
199
+ --elevation-1: 0.5px solid var(--color-border-secondary);
200
+ --elevation-2: 1px solid var(--color-border-primary);
201
+
202
+ --shadow-xs: none;
203
+ --shadow-sm: 0 1px 2px rgba(44, 44, 42, 0.05);
204
+ --shadow-md: 0 4px 12px rgba(44, 44, 42, 0.06);
205
+ --shadow-lg: 0 12px 28px rgba(44, 44, 42, 0.10);
206
+ --shadow-xl: 0 24px 56px rgba(44, 44, 42, 0.14);
207
+ --shadow-focus: 0 0 0 2px rgba(59, 111, 212, 0.25);
208
+
209
+ /* ============================================================
210
+ SPACE — 4px grid
211
+ ============================================================ */
212
+ --space-1: 4px;
213
+ --space-2: 8px;
214
+ --space-3: 12px;
215
+ --space-4: 16px;
216
+ --space-6: 24px;
217
+ --space-8: 32px;
218
+ --space-12: 48px;
219
+ --space-16: 64px;
220
+ /* legacy aliases */
221
+ --sp-0: 0;
222
+ --sp-1: 4px;
223
+ --sp-2: 8px;
224
+ --sp-3: 12px;
225
+ --sp-4: 16px;
226
+ --sp-5: 20px;
227
+ --sp-6: 24px;
228
+ --sp-8: 32px;
229
+ --sp-10: 40px;
230
+ --sp-12: 48px;
231
+ --sp-16: 64px;
232
+
233
+ /* ============================================================
234
+ MOTION
235
+ ============================================================ */
236
+ --duration-instant: 0ms;
237
+ --duration-fast: 100ms; /* hover, focus, icon swap */
238
+ --duration-base: 200ms; /* buttons, badges, inputs */
239
+ --duration-moderate: 300ms; /* panels, drawers, dropdowns */
240
+ --easing-standard: ease-out;
241
+ /* legacy */
242
+ --ease-out: ease-out;
243
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
244
+ --dur-fast: 100ms;
245
+ --dur-base: 200ms;
246
+ --dur-slow: 300ms;
247
+ }
package/type.css ADDED
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Blu Design System: semantic type classes (.t-display, .t-h1 … .t-eyebrow, .t-metric, .t-link).
3
+ * Global class names: loaded by base.css for apps that own the page (the shell, the Admin,
4
+ * standalone pages). Inside the shell, modules can use these classes without importing them.
5
+ */
6
+ /* ============================================================
7
+ SEMANTIC TYPE CLASSES
8
+ ============================================================ */
9
+
10
+ .t-display { font-size: var(--fs-4xl); font-weight: var(--fw-medium); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
11
+ .t-h1 { font-size: var(--fs-2xl); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
12
+ .t-h2 { font-size: var(--fs-lg); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
13
+ .t-h3 { font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
14
+ .t-title { font-size: var(--fs-md); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
15
+
16
+ .t-body { font-size: var(--fs-base); font-weight: var(--fw-regular); line-height: var(--lh-relaxed); }
17
+ .t-body-bold { font-size: var(--fs-base); font-weight: var(--fw-medium); line-height: var(--lh-relaxed); }
18
+ .t-small { font-size: var(--fs-sm); font-weight: var(--fw-regular); line-height: var(--lh-normal); color: var(--color-text-secondary); }
19
+ .t-xs { font-size: var(--fs-xs); font-weight: var(--fw-regular); line-height: var(--lh-normal); color: var(--color-text-secondary); }
20
+
21
+ .t-eyebrow { font-size: var(--fs-2xs); font-weight: var(--fw-medium); line-height: 1; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-tertiary); }
22
+
23
+ .t-metric { font-size: var(--fs-4xl); font-weight: var(--fw-medium); line-height: 1; letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
24
+ .t-metric-sm { font-size: var(--fs-3xl); font-weight: var(--fw-medium); line-height: 1; letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
25
+
26
+ .t-mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
27
+
28
+ .t-link { color: var(--color-text-brand); text-decoration: none; font-weight: var(--fw-medium); }
29
+ .t-link:hover { color: var(--blu-700); text-decoration: underline; }
@@ -0,0 +1,124 @@
1
+ declare namespace preset {
2
+ namespace theme {
3
+ namespace extend {
4
+ namespace colors {
5
+ let blu: {
6
+ [k: string]: any;
7
+ };
8
+ let neutral: {
9
+ [k: string]: any;
10
+ };
11
+ let success: {
12
+ [k: string]: any;
13
+ };
14
+ let danger: {
15
+ [k: string]: any;
16
+ };
17
+ let warning: {
18
+ [k: string]: any;
19
+ };
20
+ let purple: {
21
+ [k: string]: any;
22
+ };
23
+ let teal: {
24
+ [k: string]: any;
25
+ };
26
+ let amber: {
27
+ [k: string]: any;
28
+ };
29
+ let navy: {
30
+ [k: string]: any;
31
+ };
32
+ let chart: {
33
+ 1: string;
34
+ 2: string;
35
+ 3: string;
36
+ 4: string;
37
+ 5: string;
38
+ "blu-1": string;
39
+ "blu-2": string;
40
+ "blu-3": string;
41
+ "blu-4": string;
42
+ "blu-5": string;
43
+ };
44
+ let ink: {
45
+ DEFAULT: string;
46
+ secondary: string;
47
+ tertiary: string;
48
+ brand: string;
49
+ "on-brand": string;
50
+ };
51
+ namespace surface {
52
+ let DEFAULT: string;
53
+ let subtle: string;
54
+ let wash: string;
55
+ let brand: string;
56
+ }
57
+ namespace line {
58
+ let DEFAULT_1: string;
59
+ export { DEFAULT_1 as DEFAULT };
60
+ export let secondary: string;
61
+ export let strong: string;
62
+ export let focus: string;
63
+ }
64
+ }
65
+ namespace fontFamily {
66
+ let sans: string[];
67
+ let narrow: string[];
68
+ let mono: string[];
69
+ }
70
+ let fontSize: {
71
+ [k: string]: string;
72
+ };
73
+ namespace fontWeight {
74
+ let light: string;
75
+ let normal: string;
76
+ let medium: string;
77
+ let bold: string;
78
+ let black: string;
79
+ }
80
+ namespace lineHeight {
81
+ export let tight: string;
82
+ export let snug: string;
83
+ let normal_1: string;
84
+ export { normal_1 as normal };
85
+ export let relaxed: string;
86
+ }
87
+ namespace letterSpacing {
88
+ let tight_1: string;
89
+ export { tight_1 as tight };
90
+ let normal_2: string;
91
+ export { normal_2 as normal };
92
+ export let wide: string;
93
+ }
94
+ let borderRadius: {
95
+ xs: string;
96
+ sm: string;
97
+ md: string;
98
+ lg: string;
99
+ xl: string;
100
+ "2xl": string;
101
+ pill: string;
102
+ };
103
+ namespace boxShadow {
104
+ export let xs: string;
105
+ export let sm: string;
106
+ export let md: string;
107
+ export let lg: string;
108
+ export let xl: string;
109
+ let focus_1: string;
110
+ export { focus_1 as focus };
111
+ }
112
+ namespace transitionDuration {
113
+ let fast: string;
114
+ let base: string;
115
+ let moderate: string;
116
+ }
117
+ namespace transitionTimingFunction {
118
+ let standard: string;
119
+ }
120
+ }
121
+ }
122
+ }
123
+
124
+ export { preset as default };