@crewlethq/tokens 0.32.0 → 0.33.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;
package/dist/index.d.ts CHANGED
@@ -146,6 +146,13 @@ export declare const color: {
146
146
  readonly dark: "#000000";
147
147
  readonly light: "#ffffff";
148
148
  };
149
+ readonly projection: {
150
+ readonly letterbox: "#000000";
151
+ readonly ground: "rgba(0, 0, 0, 0.6)";
152
+ readonly ink: "#ffffff";
153
+ readonly hover: "rgba(255, 255, 255, 0.16)";
154
+ readonly rule: "rgba(255, 255, 255, 0.24)";
155
+ };
149
156
  };
150
157
  export declare const density: {
151
158
  readonly compact: "0.82";
package/dist/index.js CHANGED
@@ -146,6 +146,13 @@ export const color = {
146
146
  "qr": {
147
147
  "dark": "#000000",
148
148
  "light": "#ffffff"
149
+ },
150
+ "projection": {
151
+ "letterbox": "#000000",
152
+ "ground": "rgba(0, 0, 0, 0.6)",
153
+ "ink": "#ffffff",
154
+ "hover": "rgba(255, 255, 255, 0.16)",
155
+ "rule": "rgba(255, 255, 255, 0.24)"
149
156
  }
150
157
  };
151
158
  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.33.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": {