@tangle-network/brand 1.13.1 → 1.14.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.
- package/CHANGELOG.md +12 -0
- package/bin/drift-baseline.json +17 -30
- package/package.json +1 -1
- package/src/styles/legacy-light.css +7 -1
- package/src/styles/named-themes.css +3 -0
- package/src/styles/scrim.test.ts +19 -0
- package/src/styles/theme.css +3 -0
- package/src/styles/tokens.css +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6cddfa1: Lower the Legal drift baseline to legal-agent main f0b961c: raw palette 1 -> 0, hex 136 -> 1, arbitrary colors 2 -> 0, CSS variable definitions 267 -> 0.
|
|
8
|
+
|
|
9
|
+
## 1.14.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 085e657: Add `--scrim`, `--scrim-strong` and `--on-media` tokens, with `bg-scrim`, `bg-scrim-strong` and `text-on-media` Tailwind colors, for modal backdrops and text on photos.
|
|
14
|
+
|
|
3
15
|
## 1.13.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/bin/drift-baseline.json
CHANGED
|
@@ -448,57 +448,44 @@
|
|
|
448
448
|
""
|
|
449
449
|
],
|
|
450
450
|
"branch": "main",
|
|
451
|
-
"head": "
|
|
451
|
+
"head": "f0b961cb1adc",
|
|
452
452
|
"tsx_files": 62,
|
|
453
453
|
"css_files": 1,
|
|
454
454
|
"versions": {
|
|
455
455
|
"agent-app": [
|
|
456
|
-
"0.53.
|
|
456
|
+
"0.53.11"
|
|
457
457
|
],
|
|
458
458
|
"brand": [
|
|
459
|
-
"1.
|
|
459
|
+
"1.11.0"
|
|
460
460
|
],
|
|
461
461
|
"sandbox-ui": [
|
|
462
|
-
"0.
|
|
462
|
+
"0.124.0"
|
|
463
463
|
],
|
|
464
464
|
"ui": [
|
|
465
|
-
"11.
|
|
465
|
+
"11.17.0"
|
|
466
466
|
]
|
|
467
467
|
},
|
|
468
468
|
"importing_files": {
|
|
469
|
-
"brand":
|
|
470
|
-
"ui":
|
|
469
|
+
"brand": 2,
|
|
470
|
+
"ui": 16,
|
|
471
471
|
"sandbox-ui": 18,
|
|
472
|
-
"agent-app":
|
|
472
|
+
"agent-app": 115
|
|
473
473
|
},
|
|
474
474
|
"by_file": {
|
|
475
|
-
"raw_palette": {
|
|
476
|
-
"src/routes/_index.tsx": 1
|
|
477
|
-
},
|
|
475
|
+
"raw_palette": {},
|
|
478
476
|
"hex": {
|
|
479
|
-
"src/
|
|
480
|
-
"src/root.tsx": 2,
|
|
481
|
-
"src/routes/_index.tsx": 2
|
|
482
|
-
},
|
|
483
|
-
"arbitrary_color": {
|
|
484
|
-
"src/routes/_index.tsx": 2
|
|
485
|
-
},
|
|
486
|
-
"css_var_defs": {
|
|
487
|
-
"src/app.css": 267
|
|
477
|
+
"src/root.tsx": 1
|
|
488
478
|
},
|
|
479
|
+
"arbitrary_color": {},
|
|
480
|
+
"css_var_defs": {},
|
|
489
481
|
"local_primitive_count": {}
|
|
490
482
|
},
|
|
491
|
-
"raw_palette":
|
|
492
|
-
"hex":
|
|
493
|
-
"arbitrary_color":
|
|
494
|
-
"css_var_defs":
|
|
483
|
+
"raw_palette": 0,
|
|
484
|
+
"hex": 1,
|
|
485
|
+
"arbitrary_color": 0,
|
|
486
|
+
"css_var_defs": 0,
|
|
495
487
|
"local_primitive_count": 0,
|
|
496
|
-
"palette_top": [
|
|
497
|
-
[
|
|
498
|
-
"text-slate-300",
|
|
499
|
-
1
|
|
500
|
-
]
|
|
501
|
-
],
|
|
488
|
+
"palette_top": [],
|
|
502
489
|
"local_primitives": {}
|
|
503
490
|
},
|
|
504
491
|
"creative": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* GENERATED by scripts/gen-compat.mjs. Do not edit.
|
|
2
2
|
* Source: tokens.css + named-themes.css
|
|
3
|
-
* SHA-256:
|
|
3
|
+
* SHA-256: c09b4b2d488a4b0bbe7ace4523e27d9cc9bba99013b95b2d361ab476bd61ebf2
|
|
4
4
|
* Light-default compatibility; all explicit modes remain canonical.
|
|
5
5
|
*/
|
|
6
6
|
:where(:root),
|
|
@@ -268,6 +268,9 @@
|
|
|
268
268
|
--shadow-accent: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
269
269
|
--shadow-overlay: 0 2px 6px hsl(var(--hsl-foreground) / 0.1),
|
|
270
270
|
0 16px 40px hsl(var(--hsl-foreground) / 0.16);
|
|
271
|
+
--scrim: rgb(0 0 0 / 0.4);
|
|
272
|
+
--scrim-strong: rgb(0 0 0 / 0.72);
|
|
273
|
+
--on-media: #ffffff;
|
|
271
274
|
--shadow-status-running: none;
|
|
272
275
|
--shadow-status-creating: none;
|
|
273
276
|
--shadow-status-error: none;
|
|
@@ -757,6 +760,9 @@
|
|
|
757
760
|
--text-page: var(--font-size-3xl);
|
|
758
761
|
--text-section: var(--font-size-xl);
|
|
759
762
|
--text-eyebrow: var(--font-size-sm);
|
|
763
|
+
--color-scrim: var(--scrim);
|
|
764
|
+
--color-scrim-strong: var(--scrim-strong);
|
|
765
|
+
--color-on-media: var(--on-media);
|
|
760
766
|
--color-depth-1: var(--depth-1);
|
|
761
767
|
--color-depth-2: var(--depth-2);
|
|
762
768
|
--color-depth-3: var(--depth-3);
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
--text-page: var(--font-size-3xl);
|
|
20
20
|
--text-section: var(--font-size-xl);
|
|
21
21
|
--text-eyebrow: var(--font-size-sm);
|
|
22
|
+
--color-scrim: var(--scrim);
|
|
23
|
+
--color-scrim-strong: var(--scrim-strong);
|
|
24
|
+
--color-on-media: var(--on-media);
|
|
22
25
|
--color-depth-1: var(--depth-1);
|
|
23
26
|
--color-depth-2: var(--depth-2);
|
|
24
27
|
--color-depth-3: var(--depth-3);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { describe, expect, it } from "vitest";
|
|
4
|
+
import { blockIn } from "./css-test-utils";
|
|
5
|
+
|
|
6
|
+
const read = (name: string) =>
|
|
7
|
+
readFileSync(path.resolve(import.meta.dirname, name), "utf8");
|
|
8
|
+
const tokens = read("tokens.css");
|
|
9
|
+
|
|
10
|
+
describe("scrim and media ink", () => {
|
|
11
|
+
it("are declared once on the shared baseline, so every theme dims the same way", () => {
|
|
12
|
+
const baseline = blockIn(tokens, ".dark");
|
|
13
|
+
expect(baseline).toMatch(/--scrim:\s*rgb\(0 0 0 \/ 0\.4\);/);
|
|
14
|
+
expect(baseline).toMatch(/--scrim-strong:\s*rgb\(0 0 0 \/ 0\.72\);/);
|
|
15
|
+
expect(baseline).toMatch(/--on-media:\s*#ffffff;/);
|
|
16
|
+
expect(blockIn(tokens, ".light")).not.toMatch(/^\s*--(scrim|on-media)[\w-]*\s*:/m);
|
|
17
|
+
expect(read("named-themes.css")).not.toMatch(/^\s*--(scrim|on-media)[\w-]*\s*:/m);
|
|
18
|
+
});
|
|
19
|
+
});
|
package/src/styles/theme.css
CHANGED
|
@@ -61,6 +61,9 @@
|
|
|
61
61
|
--text-section: var(--font-size-xl);
|
|
62
62
|
--text-eyebrow: var(--font-size-sm);
|
|
63
63
|
|
|
64
|
+
--color-scrim: var(--scrim);
|
|
65
|
+
--color-scrim-strong: var(--scrim-strong);
|
|
66
|
+
--color-on-media: var(--on-media);
|
|
64
67
|
--color-depth-1: var(--depth-1);
|
|
65
68
|
--color-depth-2: var(--depth-2);
|
|
66
69
|
--color-depth-3: var(--depth-3);
|
package/src/styles/tokens.css
CHANGED
|
@@ -411,6 +411,13 @@
|
|
|
411
411
|
--shadow-overlay:
|
|
412
412
|
0 2px 6px hsl(var(--hsl-foreground) / 0.1),
|
|
413
413
|
0 16px 40px hsl(var(--hsl-foreground) / 0.16);
|
|
414
|
+
/* Scrim and media ink. A scrim dims the page behind a modal or sheet, or
|
|
415
|
+
darkens a photo under its caption. It is black in every theme: a dimming
|
|
416
|
+
layer that inverted in dark mode would brighten the page it covers.
|
|
417
|
+
--on-media is the ink for text set directly on a photo or a scrim. */
|
|
418
|
+
--scrim: rgb(0 0 0 / 0.4);
|
|
419
|
+
--scrim-strong: rgb(0 0 0 / 0.72);
|
|
420
|
+
--on-media: #ffffff;
|
|
414
421
|
--shadow-status-running: none;
|
|
415
422
|
--shadow-status-creating: none;
|
|
416
423
|
--shadow-status-error: none;
|