@siyahi/tools 0.1.9-next.22 → 0.1.9-next.24
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/contrast.mjs +9 -1
- package/package.json +1 -1
package/contrast.mjs
CHANGED
|
@@ -69,7 +69,8 @@ const PAIRS = [
|
|
|
69
69
|
// Muted text on the fills it sits on: avatar initials and highlighted code
|
|
70
70
|
// lines (muted), a neutral Callout, CardFooter and the command field
|
|
71
71
|
// (muted/50), a Quote's source (muted/60), the accent, warning, positive and
|
|
72
|
-
// negative Callouts and
|
|
72
|
+
// negative Callouts, StatusAlerts and StatusBadges, a removed code line
|
|
73
|
+
// (destructive/10).
|
|
73
74
|
...["muted", "muted/50", "muted/60", "chart-1/8", "warning/10", "positive/8", "negative/8", "destructive/10"].map(
|
|
74
75
|
(bg) => ({ fg: "muted-foreground", bg, min: TEXT }),
|
|
75
76
|
),
|
|
@@ -87,6 +88,13 @@ const PAIRS = [
|
|
|
87
88
|
...["", "muted", "muted/50"].map((bg) => ({ fg: "input", bg, min: MARK })),
|
|
88
89
|
{ fg: "input", bg: "input/30", min: MARK, scheme: "dark" },
|
|
89
90
|
...["ring", "destructive"].map((fg) => ({ fg, bg: "", min: MARK })),
|
|
91
|
+
// A tone's icon or StatusBadge dot against the tone's own wash (lib/tone.ts).
|
|
92
|
+
...[
|
|
93
|
+
["link", "chart-1/8"],
|
|
94
|
+
["warning", "warning/10"],
|
|
95
|
+
["positive", "positive/8"],
|
|
96
|
+
["negative", "negative/8"],
|
|
97
|
+
].map(([fg = "", bg = ""]) => ({ fg, bg, min: MARK })),
|
|
90
98
|
// The selected tab's fill against its list.
|
|
91
99
|
{ fg: "foreground", bg: "muted", min: MARK },
|
|
92
100
|
// Chart marks on the canvas and the card. A dimmed bar keeps its full colour
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siyahi/tools",
|
|
3
|
-
"version": "0.1.9-next.
|
|
3
|
+
"version": "0.1.9-next.24",
|
|
4
4
|
"description": "Checks and build helpers for Siyahi pages: a lint plugin, a font preload plugin, a theme contrast check, and screenshot and layout shift scripts.",
|
|
5
5
|
"homepage": "https://siyahi.jatinbansal.com",
|
|
6
6
|
"license": "MIT",
|