@quieto/design-tokens 0.2.0 → 1.0.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.
@@ -59,7 +59,8 @@ The available category types are:
59
59
  - animation
60
60
 
61
61
  `spacing` is the space between things; `size` is the dimensions of things, such as container
62
- widths, which outgrow the spacing scale. `opacity` is transparency, as a number from 0 to 1.
62
+ widths, which outgrow the spacing scale, and icon sizes, under the `icon` sub-category
63
+ (`size.icon.md`). `opacity` is transparency, as a number from 0 to 1.
63
64
 
64
65
  ##### Sub-category (if needed)
65
66
 
@@ -68,6 +69,7 @@ The sub-category identifier signifies any deeper design choices that need to be
68
69
  The available sub-category types are:
69
70
 
70
71
  - color or hue name (i.e. "blue" or "green")
72
+ - icon
71
73
  - font-size
72
74
  - font-family
73
75
  - font-weight
@@ -207,6 +209,10 @@ primary button or the check mark in a checked box. It flips with the mode — li
207
209
  dark in dark — because filled surfaces lighten in dark mode, where light text on them would fall
208
210
  below 4.5:1.
209
211
 
212
+ As a background, `inverse` is that filled surface itself: an element that stands out from the page
213
+ in either mode, such as a tooltip. It is dark in light mode and light in dark mode, and is always
214
+ paired with `inverse` content.
215
+
210
216
  The status roles also have **border** colors, tuned to reach 3:1 against the page. Because that is
211
217
  exactly the requirement for any non-text mark, they are also what solid status indicators use — a
212
218
  progress bar's fill, for example.
@@ -326,6 +332,10 @@ primary button or the check mark in a checked box. It flips with the mode — li
326
332
  dark in dark — because filled surfaces lighten in dark mode, where light text on them would fall
327
333
  below 4.5:1.
328
334
 
335
+ As a background, `inverse` is that filled surface itself: an element that stands out from the page
336
+ in either mode, such as a tooltip. It is dark in light mode and light in dark mode, and is always
337
+ paired with `inverse` content.
338
+
329
339
  The status roles also have **border** colors, tuned to reach 3:1 against the page. Because that is
330
340
  exactly the requirement for any non-text mark, they are also what solid status indicators use — a
331
341
  progress bar's fill, for example.
package/nomenclature.js CHANGED
@@ -97,7 +97,8 @@ export const primitive = {
97
97
  * (container widths, which outgrow the spacing scale), and `opacity` for
98
98
  * transparency. Both were added when the component library first needed them:
99
99
  * before that, the modal's widths and backdrop opacity were raw values with
100
- * nothing to reference.
100
+ * nothing to reference. Icon sizes sit under `size` with the `icon`
101
+ * sub-category (`size.icon.md`), apart from the container widths.
101
102
  */
102
103
  categories: ['color', 'typography', 'spacing', 'size', 'border', 'shadow', 'opacity', 'animation'],
103
104
 
@@ -107,6 +108,7 @@ export const primitive = {
107
108
  * below rather than this list.
108
109
  */
109
110
  subCategories: [
111
+ 'icon',
110
112
  'font-size',
111
113
  'font-family',
112
114
  'font-weight',
@@ -202,7 +204,10 @@ export const semantic = {
202
204
  * button, a check mark in a checked box. Every other role describes what the
203
205
  * element itself means; this one describes what it sits on. It flips with the
204
206
  * mode (light text in light mode, dark in dark) because the filled surfaces
205
- * lighten in dark mode, and light text on them falls below 4.5:1.
207
+ * lighten in dark mode, and light text on them falls below 4.5:1. As a
208
+ * background, it is that filled surface itself, for an element that stands
209
+ * out from the page in either mode, such as a tooltip: dark in light mode,
210
+ * light in dark, always paired with inverse content.
206
211
  */
207
212
  roles: [
208
213
  'default',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quieto/design-tokens",
3
- "version": "0.2.0",
3
+ "version": "1.0.0",
4
4
  "description": "Three-tier design tokens as CSS custom properties and a typed JS manifest, with light and dark modes.",
5
5
  "type": "module",
6
6
  "license": "MIT",