@trading-game/design-intelligence-layer 1.0.0 → 1.0.1

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.
@@ -50,7 +50,7 @@ import { Badge } from "@trading-game/design-intelligence-layer"
50
50
 
51
51
  **Colour (semantic):**
52
52
  - Solid: `background-brand-default` + `text-on-brand-static`; `background-demo-solid`; `background-inverse-surface` + `text-prominent-inverse`; `background-success-solid` / `background-error-solid` / `background-warning-solid`, all with `text-on-status-static`.
53
- - Tint: `--background-brand-container` (layered static recipe, painted via `[background:…]`) + `text-brand-container-static`; `background-demo-default` + `text-demo-default`; `background-secondary-surface` + `border-neutral-default` + `text-prominent-default`; `background-success/error/warning-default` + matching `border-*` and `text-*` status tokens.
53
+ - Tint: `--background-brand-container` (layered static recipe, painted via `[background:…]`) + `text-brand-container-static`; `background-demo-default` + `text-demo-default`; `background-secondary-surface` + `text-prominent-default`; `background-success/error/warning-default` + matching `text-*` status tokens. All tints are borderless — the tinted fill alone carries the meaning.
54
54
  - Focus: `ring-focus-strong`.
55
55
 
56
56
  **Type (private):** `--badge-font-size/line-height-{xs,sm,md,lg}` = 10/16, 12/16, 14/20, 16/24; `--badge-font-weight` = semibold (600).
@@ -60,7 +60,7 @@ import { Badge } from "@trading-game/design-intelligence-layer"
60
60
  - Status solids use the bright 600 fills with shared static white ink (`text-on-status-static`) — deliberately below AA on green and amber; a style call, not an oversight.
61
61
  - `tint` (brand) paints the layered `--background-brand-container` value via arbitrary `background`, so a `bg-*` utility cannot override it — replace the whole `[background:…]` if you must.
62
62
  - No hover states — badges are read-only markers; if it needs to be clickable, it's a [Chip](./chip.md).
63
- - `rounded-full`, `border-transparent` base (tints add their own status borders), no shadow.
63
+ - `rounded-full`, `border-transparent` on every variant — no outlines, no shadow.
64
64
 
65
65
  ## Do / Don't
66
66
 
@@ -42,6 +42,7 @@ All scales run 50→1000 (mono 50→1200; blue adds 25 and 1000 as the two canva
42
42
  | Token | Light | Dark | Job |
43
43
  |---|---|---|---|
44
44
  | `background-primary-canvas` | blue-25 `#F7F8FC` | blue-1000 `#00001F` | The app page behind everything |
45
+ | `background-tinted-canvas` | blue-600 12%→4% mixed into the canvas + a blue-400 aurora | blue-400 14% into the canvas + aurora | The Refined screen background — a layered gradient, consume via `background: var(--background-tinted-canvas)` on the page root only; ends on `primary-canvas` in both themes so long pages melt in seamlessly |
45
46
  | `background-primary-surface` | mono-50 `#FFFFFF` | white 6% over canvas ≈ `#0F0F2C` | Cards, panels, menus, inputs, sheets — the default solid surface |
46
47
  | `background-secondary-surface` | mono-100 `#F1F1F1` | white 12% over canvas ≈ `#1F1F3A` | One step up: muted fills, tracks, icon tiles, read-only fields |
47
48
  | `background-hover-default` | black-alpha-4 | white-alpha-12 | The hover glaze — laid over any solid surface |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trading-game/design-intelligence-layer",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Trading Game Design System — shadcn/ui components with Tailwind CSS v4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
package/src/styles.css CHANGED
@@ -544,6 +544,18 @@
544
544
  /* pressed wash on outline chips */
545
545
  --background-static-white-wash: var(--primitive-white-alpha-80);
546
546
  /* hover on the white on-brand button fills */
547
+ /* Tinted canvas — the screen background: a blue tint melting into the
548
+ canvas with a soft centred aurora — the Refined composition, in token math. One token, two layers; consume via
549
+ `background: var(--background-tinted-canvas)` on the page root (an
550
+ app-shell decision — components never paint it). Every stop is token
551
+ math (blue primitives mixed into the canvas), and both themes end on
552
+ background-primary-canvas so long pages melt in without a seam. */
553
+ --background-tinted-canvas:
554
+ radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--primitive-blue-400) 24%, transparent), transparent 55%),
555
+ linear-gradient(180deg,
556
+ color-mix(in srgb, var(--primitive-blue-600) 12%, var(--background-primary-canvas)) 0%,
557
+ color-mix(in srgb, var(--primitive-blue-600) 4%, var(--background-primary-canvas)) 55%,
558
+ var(--background-primary-canvas) 100%);
547
559
  --background-brand-container:
548
560
  linear-gradient(rgb(255 255 255 / 92%), rgb(255 255 255 / 92%)),
549
561
  var(--primitive-blue-600);
@@ -779,6 +791,11 @@
779
791
  --text-brand-default: var(--primitive-blue-400);
780
792
  --text-brand-hover: var(--primitive-blue-300);
781
793
  --background-brand-selected: color-mix(in srgb, var(--primitive-blue-400) 24%, var(--primitive-blue-1000));
794
+ --background-tinted-canvas:
795
+ radial-gradient(circle at 60% 15%, color-mix(in srgb, var(--primitive-blue-400) 28%, transparent), transparent 55%),
796
+ linear-gradient(180deg,
797
+ color-mix(in srgb, var(--primitive-blue-400) 14%, var(--background-primary-canvas)) 0%,
798
+ var(--background-primary-canvas) 100%);
782
799
  --text-brand-selected: var(--primitive-blue-200);
783
800
  --border-brand-selected: var(--primitive-blue-300);
784
801
  --background-chrome-default: rgb(20 20 44 / 72%);
@@ -1153,7 +1170,7 @@
1153
1170
  }
1154
1171
 
1155
1172
  body {
1156
- @apply bg-prominent text-on-prominent font-sans antialiased;
1173
+ @apply bg-background-primary-canvas text-text-prominent-default font-sans antialiased;
1157
1174
  }
1158
1175
  }
1159
1176