@estiva-app/ui 0.8.0 → 0.9.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": "@estiva-app/ui",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Estiva's design tokens (the contract) and a small set of primitives (a convenience) for every Estiva app.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -88,9 +88,9 @@ const FAMILIES: Family[] = [
88
88
  },
89
89
  {
90
90
  label: 'Accent',
91
- blurb: 'The brand colour: the primary button, the checked box, the brand chip. Muted is its wash, outline its thin border.',
91
+ blurb: 'The brand colour: the primary button, the checked box, the brand chip. Muted is its opaque wash, wash the translucent one a row tints with on hover, outline its thin border.',
92
92
  utilities: COLOUR_UTILITIES,
93
- tokens: [colour('accent', 'primary', 'fill'), colour('accent', 'hover', 'fill'), colour('accent', 'muted', 'fill'), colour('accent', 'outline', 'outline')],
93
+ tokens: [colour('accent', 'primary', 'fill'), colour('accent', 'hover', 'fill'), colour('accent', 'muted', 'fill'), colour('accent', 'wash', 'fill'), colour('accent', 'outline', 'outline')],
94
94
  },
95
95
  {
96
96
  label: 'Tones',
@@ -100,6 +100,10 @@ const FAMILIES: Family[] = [
100
100
  colour(tone, 'default', 'text'),
101
101
  colour(tone, 'muted', 'fill'),
102
102
  colour(tone, 'outline', 'outline'),
103
+ // Only success has a translucent wash so far, because only success needed
104
+ // one: it is the tint on a resolved thread. The others gain one when a
105
+ // component asks, not before.
106
+ ...(tone === 'success' ? [colour(tone, 'wash', 'fill')] : []),
103
107
  ]),
104
108
  },
105
109
  {
@@ -154,6 +154,11 @@ export default {
154
154
  'warning-outline': 'var(--warning-outline)',
155
155
  'success-outline': 'var(--success-outline)',
156
156
  'error-outline': 'var(--error-outline)',
157
+ // The same hues as the outlines, at a fill's strength rather than an
158
+ // edge's: `-outline` is 30%, `-wash` is 11%. Peek tinted rows with its
159
+ // own copies of these before they moved here.
160
+ 'accent-wash': 'var(--accent-wash)',
161
+ 'success-wash': 'var(--success-wash)',
157
162
  'scrim': 'var(--scrim)',
158
163
  },
159
164
  boxShadow: {
package/tokens.css CHANGED
@@ -72,6 +72,8 @@
72
72
  --warning-outline: rgba(245, 158, 11, 0.3);
73
73
  --success-outline: rgba(14, 160, 111, 0.3);
74
74
  --error-outline: rgba(239, 68, 68, 0.3);
75
+ --accent-wash: rgba(139, 92, 246, 0.11);
76
+ --success-wash: rgba(14, 160, 111, 0.11);
75
77
  --glow-warning: 0 0 5px rgba(245, 158, 11, 0.4);
76
78
  --glow-success: 0 0 5px rgba(14, 160, 111, 0.7);
77
79
  --glow-accent: 0 0 5px rgba(139, 92, 246, 0.6);
@@ -133,6 +135,8 @@
133
135
  --warning-outline: rgba(251, 191, 36, 0.3);
134
136
  --success-outline: rgba(52, 211, 153, 0.3);
135
137
  --error-outline: rgba(248, 113, 113, 0.3);
138
+ --accent-wash: rgba(167, 139, 250, 0.11);
139
+ --success-wash: rgba(52, 211, 153, 0.11);
136
140
  --glow-warning: 0 0 5px rgba(251, 191, 36, 0.4);
137
141
  --glow-success: 0 0 5px rgba(52, 211, 153, 0.7);
138
142
  --glow-accent: 0 0 5px rgba(167, 139, 250, 0.6);
@@ -198,6 +202,8 @@
198
202
  --warning-outline: rgba(255, 176, 32, 0.3);
199
203
  --success-outline: rgba(63, 222, 140, 0.3);
200
204
  --error-outline: rgba(255, 107, 107, 0.3);
205
+ --accent-wash: rgba(86, 200, 255, 0.11);
206
+ --success-wash: rgba(63, 222, 140, 0.11);
201
207
  --glow-warning: 0 0 5px rgba(255, 176, 32, 0.4);
202
208
  --glow-success: 0 0 5px rgba(63, 222, 140, 0.7);
203
209
  --glow-accent: 0 0 5px rgba(86, 200, 255, 0.6);
@@ -269,6 +275,8 @@
269
275
  --warning-outline: rgba(224, 176, 74, 0.3);
270
276
  --success-outline: rgba(70, 192, 138, 0.3);
271
277
  --error-outline: rgba(229, 105, 122, 0.3);
278
+ --accent-wash: rgba(75, 88, 212, 0.11);
279
+ --success-wash: rgba(70, 192, 138, 0.11);
272
280
  --glow-warning: 0 0 5px rgba(224, 176, 74, 0.4);
273
281
  --glow-success: 0 0 5px rgba(70, 192, 138, 0.7);
274
282
  --glow-accent: 0 0 5px rgba(75, 88, 212, 0.6);