@morze/ui 0.2.1 → 0.2.3
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 +21 -0
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/morze-ui-tokens.css +1 -1
- package/dist/morze-ui.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -200,6 +200,27 @@ sink them into the page.
|
|
|
200
200
|
|
|
201
201
|
## Customisation
|
|
202
202
|
|
|
203
|
+
**The neutrals carry a whisper of the brand.** Panels, inputs, table headers
|
|
204
|
+
and the sunken wells are a grey ramp with four percent of `--mz-tint` mixed in
|
|
205
|
+
— five channel steps out of 255, enough that a surface is not flat cardboard,
|
|
206
|
+
not enough to name a colour. The tint follows `--mz-primary-rgb`, so the greys
|
|
207
|
+
move with the brand instead of keeping a violet cast that belongs to no one:
|
|
208
|
+
|
|
209
|
+
```css
|
|
210
|
+
:root {
|
|
211
|
+
--mz-primary-rgb: 16, 175, 122; /* panels and wells go faintly green */
|
|
212
|
+
--mz-tint-strength: 0%; /* …or take the hue out altogether */
|
|
213
|
+
--mz-tint: #808080; /* same thing, keeping the lightness */
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
The grey under each mix is pre-compensated, so at the default strength the ramp
|
|
218
|
+
lands on the same lightness it would have with no tint at all; raising the
|
|
219
|
+
strength lifts the surfaces slightly. Text is deliberately left out: its
|
|
220
|
+
contrast is calibrated, and a saturated brand dragged through it costs more than
|
|
221
|
+
it buys. The tinted surfaces need `color-mix()` — Chrome 111+, Firefox 113+,
|
|
222
|
+
Safari 16.2+, the same baseline as the rest of the kit.
|
|
223
|
+
|
|
203
224
|
Everything is driven by custom properties; override them after importing the
|
|
204
225
|
styles. The main groups: surfaces (`--mz-bg`, `--mz-surface`, `--mz-elevated`),
|
|
205
226
|
borders, text, tones, the convex recipe (`--mz-convex-*`, `--mz-face*`,
|
package/dist/index.cjs
CHANGED