@crewlethq/tokens 0.32.0 → 0.34.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/README.md CHANGED
@@ -45,6 +45,22 @@ const accent = color.brand.accent;
45
45
  CSS variables follow Style Dictionary's `--{group}-{path}` convention,
46
46
  for example `var(--color-brand-accent)` or `var(--spacing-4)`.
47
47
 
48
+ ## Changed in 0.33.0: the projection
49
+
50
+ Five fixed colours for a slide shown full screen, the same in every palette and theme, as `--color-qr-*` is: what is under them is the slide in its own colours, or a projector's black, never the theme's ground.
51
+
52
+ | Token | Value | What it is for |
53
+ | --- | --- | --- |
54
+ | `--color-projection-letterbox` | `#000000` | The bars round a slide whose shape is not the screen's |
55
+ | `--color-projection-ground` | `rgba(0, 0, 0, 0.6)` | The pill a full screen show's controls float on |
56
+ | `--color-projection-ink` | `#ffffff` | The controls and the position on that pill |
57
+ | `--color-projection-hover` | `rgba(255, 255, 255, 0.16)` | A control under the pointer there |
58
+ | `--color-projection-rule` | `rgba(255, 255, 255, 0.24)` | The hairline before the show's own controls |
59
+
60
+ | What changed | What to change |
61
+ | --- | --- |
62
+ | `--color-projection-*` added | Nothing. A full screen surface of your own can take them in place of black and white literals. |
63
+
48
64
  ## Changed in 0.23.0: a text field's edge
49
65
 
50
66
  `--color-border-field` is new, in every theme and both palettes: the edge of a box a person types into. It is the strong border (a secondary button's edge) lifted only as far as 3:1 on the four rungs a field stands on, and the palette suite holds it there (`a field boundary clears 3:1`). `--color-border-control` keeps its 3:1 over every row composite as well, for a checkbox, a switch and an editor inside a row; held to those, it measured 4.9:1 on the card a search box sits on, the brightest edge on the page.
@@ -123,6 +123,11 @@
123
123
  --color-scrollbar-hover: rgba(255, 255, 255, 0.26);
124
124
  --color-qr-dark: #000000; /** A QR code's dark modules. Part of the symbol a camera reads rather than a colour of the palette, so it is the same in every palette and theme and is never spent on anything else. A code is specified dark on light, and some authenticator apps do not read one inverted for a dark theme, which is why it is not themed. */
125
125
  --color-qr-light: #ffffff; /** A QR code's light plate, its quiet zone included. Fixed for the same reason as the dark modules: the plate is what gives a scanner light to find the finder patterns against, on any page. */
126
+ --color-projection-letterbox: #000000; /** The bars round a slide shown full screen, where its shape and the screen's differ. Black in every palette and theme, as on a projector or a television: the room sees the slide and nothing of the interface, and a lit bar beside a dark slide would read as part of it. */
127
+ --color-projection-ground: rgba(0, 0, 0, 0.6); /** The pill a full screen show's controls float on, over the slide or its bars. Fixed for the same reason as the letterbox: what is under it is the slide, in the slide's own colours, never the theme's. */
128
+ --color-projection-ink: #ffffff; /** The controls' glyphs and the position on the projection ground: white over a 60% black, which clears 4.5:1 over any slide behind it. */
129
+ --color-projection-hover: rgba(255, 255, 255, 0.16); /** A control under the pointer on the projection ground. */
130
+ --color-projection-rule: rgba(255, 255, 255, 0.24); /** The hairline that sets the show's own controls (full screen) apart from Previous and Next on the projection ground. */
126
131
  --density-compact: 0.82; /** The three steps --density takes, set on the root by @crewlethq/tokens/css/density. Every spacing and size token is emitted as calc(Npx * var(--density, 1)), so a density is a real change to every surface rather than to three font sizes, and every value is unchanged at 1. */
127
132
  --density-normal: 1;
128
133
  --density-comfortable: 1.16;
@@ -230,6 +235,30 @@
230
235
  --z-index-modal: 9999; /** Dialog backdrop and frame. High enough to clear any page chrome an application stacks with its own numbers. */
231
236
  --z-index-popover: 10000; /** Floating panels portaled to the body (Select menus, Popover, date pickers). Above modal because they are routinely opened from inside a dialog, and a panel under the backdrop is hidden and swallows clicks. */
232
237
  --z-index-toast: 10001; /** Top of the stack. A toast reports the outcome of what somebody just did, often in a dialog or from a menu opened inside one, so it sits above both. */
238
+ --color-artifact-kind-doc: var(--color-node-blue); /** The hue an artifact kind is drawn in wherever its kind is pictured: the illustration on a Make something new tile and the ground a gallery card shows before its live preview arrives. Each kind is an ALIAS of one node hue (doc blue, slides amber, design purple, dashboard cyan, HTML rose, sheet green), so every theme repaints it with no value of its own, and the Ink, Fill and Line steps follow the node hue's own derived steps. A kind's hue is identity and never state: the kind's name is always drawn beside it. */
239
+ --color-artifact-kind-doc-ink: var(--color-node-blue-ink);
240
+ --color-artifact-kind-doc-fill: var(--color-node-blue-fill);
241
+ --color-artifact-kind-doc-line: var(--color-node-blue-line);
242
+ --color-artifact-kind-slides: var(--color-node-amber);
243
+ --color-artifact-kind-slides-ink: var(--color-node-amber-ink);
244
+ --color-artifact-kind-slides-fill: var(--color-node-amber-fill);
245
+ --color-artifact-kind-slides-line: var(--color-node-amber-line);
246
+ --color-artifact-kind-design: var(--color-node-purple);
247
+ --color-artifact-kind-design-ink: var(--color-node-purple-ink);
248
+ --color-artifact-kind-design-fill: var(--color-node-purple-fill);
249
+ --color-artifact-kind-design-line: var(--color-node-purple-line);
250
+ --color-artifact-kind-dashboard: var(--color-node-cyan);
251
+ --color-artifact-kind-dashboard-ink: var(--color-node-cyan-ink);
252
+ --color-artifact-kind-dashboard-fill: var(--color-node-cyan-fill);
253
+ --color-artifact-kind-dashboard-line: var(--color-node-cyan-line);
254
+ --color-artifact-kind-html: var(--color-node-rose);
255
+ --color-artifact-kind-html-ink: var(--color-node-rose-ink);
256
+ --color-artifact-kind-html-fill: var(--color-node-rose-fill);
257
+ --color-artifact-kind-html-line: var(--color-node-rose-line);
258
+ --color-artifact-kind-sheet: var(--color-node-green);
259
+ --color-artifact-kind-sheet-ink: var(--color-node-green-ink);
260
+ --color-artifact-kind-sheet-fill: var(--color-node-green-fill);
261
+ --color-artifact-kind-sheet-line: var(--color-node-green-line);
233
262
  --color-change-mark: var(--color-brand-accent-soft-strong); /** The corner mark on a cell or an element that changed since the reader last looked. An alias of the accent's strong soft step, so the meaning has a name of its own and follows the accent in every palette; the mark is always paired with a tooltip that says who changed it and what it was. */
234
263
  --radius-chip: calc(var(--radius-md) - 1px); /** The corner of a chip lifted INSIDE a well at --radius-md: one hairline tighter than the well around it, which is what reads as sitting in it. It sits between sm and md and is derived rather than written as 7px, so it follows --radius-md if that step ever moves. */
235
264
  --shadow-cursor: var(--shadow-sm); /** The lift under a collaborator's live cursor and its name flag, so a pointer drawn over content reads as above it. An alias of the small step, so it repaints with the palette. */
package/dist/index.d.ts CHANGED
@@ -139,6 +139,34 @@ export declare const color: {
139
139
  readonly presence: {
140
140
  readonly flagText: "#07080d";
141
141
  };
142
+ readonly artifact: {
143
+ readonly kind: {
144
+ readonly doc: "#5b7fc7";
145
+ readonly docInk: "#b9c5e0";
146
+ readonly docFill: "rgba(91, 127, 199, 0.12)";
147
+ readonly docLine: "rgba(91, 127, 199, 0.38)";
148
+ readonly slides: "#c89866";
149
+ readonly slidesInk: "#e0c89e";
150
+ readonly slidesFill: "rgba(200, 152, 102, 0.12)";
151
+ readonly slidesLine: "rgba(200, 152, 102, 0.38)";
152
+ readonly design: "#8e6ed4";
153
+ readonly designInk: "#cabae0";
154
+ readonly designFill: "rgba(142, 110, 212, 0.12)";
155
+ readonly designLine: "rgba(142, 110, 212, 0.38)";
156
+ readonly dashboard: "#5ca8be";
157
+ readonly dashboardInk: "#b3d7e0";
158
+ readonly dashboardFill: "rgba(92, 168, 190, 0.12)";
159
+ readonly dashboardLine: "rgba(92, 168, 190, 0.38)";
160
+ readonly html: "#c8757f";
161
+ readonly htmlInk: "#e0bfc4";
162
+ readonly htmlFill: "rgba(200, 117, 127, 0.12)";
163
+ readonly htmlLine: "rgba(200, 117, 127, 0.38)";
164
+ readonly sheet: "#62a578";
165
+ readonly sheetInk: "#b8d8c0";
166
+ readonly sheetFill: "rgba(98, 165, 120, 0.12)";
167
+ readonly sheetLine: "rgba(98, 165, 120, 0.38)";
168
+ };
169
+ };
142
170
  readonly changeMark: "rgba(124, 86, 255, 0.32)";
143
171
  readonly scrollbar: "rgba(255, 255, 255, 0.16)";
144
172
  readonly scrollbarHover: "rgba(255, 255, 255, 0.26)";
@@ -146,6 +174,13 @@ export declare const color: {
146
174
  readonly dark: "#000000";
147
175
  readonly light: "#ffffff";
148
176
  };
177
+ readonly projection: {
178
+ readonly letterbox: "#000000";
179
+ readonly ground: "rgba(0, 0, 0, 0.6)";
180
+ readonly ink: "#ffffff";
181
+ readonly hover: "rgba(255, 255, 255, 0.16)";
182
+ readonly rule: "rgba(255, 255, 255, 0.24)";
183
+ };
149
184
  };
150
185
  export declare const density: {
151
186
  readonly compact: "0.82";
package/dist/index.js CHANGED
@@ -140,12 +140,47 @@ export const color = {
140
140
  "presence": {
141
141
  "flagText": "#07080d"
142
142
  },
143
+ "artifact": {
144
+ "kind": {
145
+ "doc": "#5b7fc7",
146
+ "docInk": "#b9c5e0",
147
+ "docFill": "rgba(91, 127, 199, 0.12)",
148
+ "docLine": "rgba(91, 127, 199, 0.38)",
149
+ "slides": "#c89866",
150
+ "slidesInk": "#e0c89e",
151
+ "slidesFill": "rgba(200, 152, 102, 0.12)",
152
+ "slidesLine": "rgba(200, 152, 102, 0.38)",
153
+ "design": "#8e6ed4",
154
+ "designInk": "#cabae0",
155
+ "designFill": "rgba(142, 110, 212, 0.12)",
156
+ "designLine": "rgba(142, 110, 212, 0.38)",
157
+ "dashboard": "#5ca8be",
158
+ "dashboardInk": "#b3d7e0",
159
+ "dashboardFill": "rgba(92, 168, 190, 0.12)",
160
+ "dashboardLine": "rgba(92, 168, 190, 0.38)",
161
+ "html": "#c8757f",
162
+ "htmlInk": "#e0bfc4",
163
+ "htmlFill": "rgba(200, 117, 127, 0.12)",
164
+ "htmlLine": "rgba(200, 117, 127, 0.38)",
165
+ "sheet": "#62a578",
166
+ "sheetInk": "#b8d8c0",
167
+ "sheetFill": "rgba(98, 165, 120, 0.12)",
168
+ "sheetLine": "rgba(98, 165, 120, 0.38)"
169
+ }
170
+ },
143
171
  "changeMark": "rgba(124, 86, 255, 0.32)",
144
172
  "scrollbar": "rgba(255, 255, 255, 0.16)",
145
173
  "scrollbarHover": "rgba(255, 255, 255, 0.26)",
146
174
  "qr": {
147
175
  "dark": "#000000",
148
176
  "light": "#ffffff"
177
+ },
178
+ "projection": {
179
+ "letterbox": "#000000",
180
+ "ground": "rgba(0, 0, 0, 0.6)",
181
+ "ink": "#ffffff",
182
+ "hover": "rgba(255, 255, 255, 0.16)",
183
+ "rule": "rgba(255, 255, 255, 0.24)"
149
184
  }
150
185
  };
151
186
  export const density = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/tokens",
3
- "version": "0.32.0",
3
+ "version": "0.34.0",
4
4
  "description": "Crewlet design tokens. Single JSON source compiled to CSS variables and typed JS modules.",
5
5
  "license": "MIT AND OFL-1.1",
6
6
  "repository": {