hextimator 0.12.2 → 0.12.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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.12.3
2
+
3
+ ### Patch Changes
4
+
5
+ - [#164](https://github.com/fgrgic/hextimator/pull/164) [`4c4974e`](https://github.com/fgrgic/hextimator/commit/4c4974edaf14f3d75ad35cd84db48890d44dc2c4) Thanks [@fgrgic](https://github.com/fgrgic)! - docs: update README gif
6
+
1
7
  ## 0.12.2
2
8
 
3
9
  ### Patch Changes
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # hextimator
2
2
 
3
3
  <p align="center">
4
- <img src="https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/assets/gh-cover.gif?raw=true" alt="hextimator" width="600">
4
+ <img src="https://github.com/fgrgic/hextimator/blob/main/packages/hextimator/docs/assets/gh-cover.webp?raw=true" alt="hextimator" width="100%">
5
5
  </p>
6
6
  <p>
7
7
  <a href="https://www.npmjs.com/package/hextimator"><img src="https://img.shields.io/npm/v/hextimator" alt="npm version"></a>
@@ -22,6 +22,10 @@ Try it: **[hextimator.com](https://hextimator.com)**
22
22
 
23
23
  ## Why `hextimator` exists
24
24
 
25
+ <p align="center">
26
+ <video src="https://github.com/user-attachments/assets/245f0728-38e3-425a-8d0c-87bff6f48b0f" width="100%" controls playsinline></video>
27
+ </p>
28
+
25
29
  You ship a B2B, B2B2C, or white-label app. Every tenant brings a brand color. Your choices today:
26
30
 
27
31
  - **Let them pick any hex.** Legal-pad yellow buttons become unreadable. Cheeto tangerine toasts look like your warning state.
@@ -2179,10 +2179,7 @@ var HextimatePaletteBuilder = class _HextimatePaletteBuilder {
2179
2179
  }
2180
2180
  scale[name] = {
2181
2181
  ...anchor,
2182
- l: Math.max(
2183
- 0,
2184
- Math.min(1, anchor.l + emphasis * contrastDirection)
2185
- ),
2182
+ l: Math.max(0, Math.min(1, anchor.l + emphasis * contrastDirection)),
2186
2183
  c: Math.max(0, anchor.c + chromaOffset),
2187
2184
  h: wrapHue(anchor.h + hueOffset)
2188
2185
  };
package/dist/cli.js CHANGED
@@ -2187,10 +2187,7 @@ var HextimatePaletteBuilder = class _HextimatePaletteBuilder {
2187
2187
  }
2188
2188
  scale[name] = {
2189
2189
  ...anchor,
2190
- l: Math.max(
2191
- 0,
2192
- Math.min(1, anchor.l + emphasis * contrastDirection)
2193
- ),
2190
+ l: Math.max(0, Math.min(1, anchor.l + emphasis * contrastDirection)),
2194
2191
  c: Math.max(0, anchor.c + chromaOffset),
2195
2192
  h: wrapHue(anchor.h + hueOffset)
2196
2193
  };
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  hextimate,
7
7
  parse,
8
8
  simulateColor
9
- } from "./chunk-SG5HNU7M.js";
9
+ } from "./chunk-KSUQW6CV.js";
10
10
  import {
11
11
  presets_exports
12
12
  } from "./chunk-TEZ2I4CJ.js";
package/dist/react.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  hextimate
3
- } from "./chunk-SG5HNU7M.js";
3
+ } from "./chunk-KSUQW6CV.js";
4
4
  import "./chunk-TEZ2I4CJ.js";
5
5
 
6
6
  // src/react/hextimator-provider.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hextimator",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "Runtime theming for multi-tenant apps.",
5
5
  "keywords": [
6
6
  "color-palette",