@skaile/brand 0.5.0 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skaile/brand",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Skaile brand: design tokens, CSS custom properties, Tailwind preset, and brand assets",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/src/css/theme.css CHANGED
@@ -49,7 +49,10 @@
49
49
  --secondary-foreground: hsl(0 0% 40%);
50
50
  --muted: hsl(0 0% 96%);
51
51
  --muted-foreground: hsl(0 0% 40%);
52
- --accent: hsl(0 0% 96%);
52
+ /* The hover ground for every menu item in the shell: DropdownMenuItem
53
+ highlights with focus:bg-accent and nothing else. At 96% it sat 1.09:1
54
+ from --popover and was invisible. */
55
+ --accent: hsl(0 0% 88%);
53
56
  --accent-foreground: hsl(0 0% 11%);
54
57
  --destructive: hsl(0 72.2% 50.6%);
55
58
  --destructive-foreground: hsl(0 0% 100%);
@@ -120,13 +123,18 @@
120
123
  --tab-inactive-hover: hsl(0 0% 87%);
121
124
  /* Sampled from the design, and the one shell value both themes share. */
122
125
  --tab-unread: #005eff;
123
- --control-surface: hsl(0 0% 88%);
124
- --control-surface-hover: hsl(0 0% 84%);
126
+ /* The well has to read on the deepest ground it is mounted on, not just on
127
+ the header it was drawn against. At 88% it was 1.08:1 from the header and
128
+ 1.03:1 from --sidebar, where the mode toggle sits — so the toggle had no
129
+ container at all. 82% sinks from both. */
130
+ --control-surface: hsl(0 0% 82%);
131
+ --control-surface-hover: hsl(0 0% 76%);
125
132
  --control-selected: hsl(0 0% 100%);
126
133
  /* Deliberately dimmer than --muted-foreground, and held at the 3:1 non-text
127
134
  floor against --control-surface — the design samples about 2.3:1, and this
128
- is the one place we knowingly part from it. */
129
- --control-icon: hsl(0 0% 49%);
135
+ is the one place we knowingly part from it. It moves with the track or the
136
+ floor breaks — 49% falls to 2.70:1 once --control-surface sinks. */
137
+ --control-icon: hsl(0 0% 45%);
130
138
  /* Stronger than --border against the same ground, because it is the only
131
139
  line the shell has left. */
132
140
  --content-border: hsl(0 0% 82%);
@@ -177,7 +185,10 @@
177
185
  --secondary-foreground: #f5f5f5;
178
186
  --muted: #2f2f2f;
179
187
  --muted-foreground: #a1a1a1;
180
- --accent: #323131;
188
+ /* See the light block. It used to share #323131 with --border/--input,
189
+ which left the menu hover at 1.07:1; the two are unrelated roles that
190
+ collided by accident. This is --tab-inactive-hover, so no new grey. */
191
+ --accent: #4a4a4a;
181
192
  --accent-foreground: #f5f5f5;
182
193
  --destructive: hsl(0 84.2% 60.2%);
183
194
  --destructive-foreground: #ffffff;
@@ -237,13 +248,21 @@
237
248
  --tab-inactive-hover: #4a4a4a;
238
249
  /* The one shell value both themes share. */
239
250
  --tab-unread: #005eff;
240
- --control-surface: #1a1919;
241
- --control-surface-hover: #2a2929;
242
- --control-selected: #343434;
251
+ /* Dark cannot sink. The well is mounted on two grounds: --background (#242424,
252
+ the toolbar) and --sidebar (#161515, the mode toggle). It cannot sit between
253
+ them without vanishing into one, and it cannot go under --sidebar — pure
254
+ black reaches only 1.15:1 there. So in dark the well inverts and lifts clear
255
+ of both. This is the grey --accent just vacated; no new grey enters.
256
+ Keep --popover (#2f2f2f) off this list of grounds: a control mounted inside
257
+ a menu would land 1.04:1 from it. None does today. */
258
+ --control-surface: #323131;
259
+ --control-surface-hover: #3e3e3e;
260
+ --control-selected: #484747;
243
261
  /* Deliberately dimmer than --muted-foreground, and held at the 3:1 non-text
244
262
  floor against --control-surface — the design samples about 2.3:1, and this
245
- is the one place we knowingly part from it. */
246
- --control-icon: #666666;
263
+ is the one place we knowingly part from it. It moves with the track or the
264
+ floor breaks — #666666 falls to 1.9:1 once --control-surface lifts. */
265
+ --control-icon: #7a7a7a;
247
266
  /* Stronger than --border against the same ground, because it is the only
248
267
  line the shell has left. */
249
268
  --content-border: #3e3e3e;
package/src/tokens.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "surface": "hsl(0 0% 100%)",
44
44
  "secondary": "hsl(0 0% 96%)",
45
45
  "muted": "hsl(0 0% 96%)",
46
- "accent": "hsl(0 0% 96%)",
46
+ "accent": "hsl(0 0% 88%)",
47
47
  "surface-sunken": "hsl(0 0% 96%)",
48
48
  "foreground": "hsl(0 0% 11%)",
49
49
  "muted-foreground": "hsl(0 0% 40%)",
@@ -56,10 +56,10 @@
56
56
  "tab-inactive": "hsl(0 0% 82%)",
57
57
  "tab-inactive-hover": "hsl(0 0% 87%)",
58
58
  "tab-unread": "#005eff",
59
- "control-surface": "hsl(0 0% 88%)",
60
- "control-surface-hover": "hsl(0 0% 84%)",
59
+ "control-surface": "hsl(0 0% 82%)",
60
+ "control-surface-hover": "hsl(0 0% 76%)",
61
61
  "control-selected": "hsl(0 0% 100%)",
62
- "control-icon": "hsl(0 0% 49%)",
62
+ "control-icon": "hsl(0 0% 45%)",
63
63
  "content-border": "hsl(0 0% 82%)",
64
64
  "sidebar-foreground": "hsl(0 0% 11%)",
65
65
  "sidebar-primary": "hsl(267 100% 50%)",
@@ -78,7 +78,7 @@
78
78
  "surface": "#2f2f2f",
79
79
  "secondary": "#2f2f2f",
80
80
  "muted": "#2f2f2f",
81
- "accent": "#323131",
81
+ "accent": "#4a4a4a",
82
82
  "surface-sunken": "#161515",
83
83
  "foreground": "#f5f5f5",
84
84
  "muted-foreground": "#a1a1a1",
@@ -91,10 +91,10 @@
91
91
  "tab-inactive": "#3e3e3e",
92
92
  "tab-inactive-hover": "#4a4a4a",
93
93
  "tab-unread": "#005eff",
94
- "control-surface": "#1a1919",
95
- "control-surface-hover": "#2a2929",
96
- "control-selected": "#343434",
97
- "control-icon": "#666666",
94
+ "control-surface": "#323131",
95
+ "control-surface-hover": "#3e3e3e",
96
+ "control-selected": "#484747",
97
+ "control-icon": "#7a7a7a",
98
98
  "content-border": "#3e3e3e",
99
99
  "sidebar-foreground": "#f5f5f5",
100
100
  "sidebar-primary": "#7300ff",