@tangle-network/brand 1.13.0 → 1.14.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/CHANGELOG.md +12 -0
- package/bin/drift-baseline.json +10 -16
- 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.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
|
|
9
|
+
## 1.13.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1170561: Lower the SUPER drift baseline to super-agent main 1a055e7: hex 501 -> 0, CSS variable definitions 104 -> 14.
|
|
14
|
+
|
|
3
15
|
## 1.13.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/bin/drift-baseline.json
CHANGED
|
@@ -1351,12 +1351,15 @@
|
|
|
1351
1351
|
"public"
|
|
1352
1352
|
],
|
|
1353
1353
|
"branch": "main",
|
|
1354
|
-
"head": "
|
|
1355
|
-
"tsx_files":
|
|
1356
|
-
"css_files":
|
|
1354
|
+
"head": "1a055e7b73d4",
|
|
1355
|
+
"tsx_files": 14,
|
|
1356
|
+
"css_files": 5,
|
|
1357
1357
|
"versions": {
|
|
1358
1358
|
"agent-app": [
|
|
1359
1359
|
"0.51.12"
|
|
1360
|
+
],
|
|
1361
|
+
"brand": [
|
|
1362
|
+
"1.13.0"
|
|
1360
1363
|
]
|
|
1361
1364
|
},
|
|
1362
1365
|
"importing_files": {
|
|
@@ -1367,27 +1370,18 @@
|
|
|
1367
1370
|
},
|
|
1368
1371
|
"by_file": {
|
|
1369
1372
|
"raw_palette": {},
|
|
1370
|
-
"hex": {
|
|
1371
|
-
"public/app.js": 3,
|
|
1372
|
-
"public/design-tokens.css": 33,
|
|
1373
|
-
"public/index.html": 1,
|
|
1374
|
-
"public/invite.html": 1,
|
|
1375
|
-
"public/sandbox-ui.css": 42,
|
|
1376
|
-
"public/style.css": 421
|
|
1377
|
-
},
|
|
1373
|
+
"hex": {},
|
|
1378
1374
|
"arbitrary_color": {},
|
|
1379
1375
|
"css_var_defs": {
|
|
1380
|
-
"public/design-components.css":
|
|
1381
|
-
"public/design-tokens.css": 95,
|
|
1382
|
-
"public/sandbox-ui.css": 2,
|
|
1376
|
+
"public/design-components.css": 13,
|
|
1383
1377
|
"public/style.css": 1
|
|
1384
1378
|
},
|
|
1385
1379
|
"local_primitive_count": {}
|
|
1386
1380
|
},
|
|
1387
1381
|
"raw_palette": 0,
|
|
1388
|
-
"hex":
|
|
1382
|
+
"hex": 0,
|
|
1389
1383
|
"arbitrary_color": 0,
|
|
1390
|
-
"css_var_defs":
|
|
1384
|
+
"css_var_defs": 14,
|
|
1391
1385
|
"local_primitive_count": 0,
|
|
1392
1386
|
"palette_top": [],
|
|
1393
1387
|
"local_primitives": {}
|
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;
|