hextimator 0.10.2 → 0.11.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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.11.0
2
+
3
+ ### Minor Changes
4
+
5
+ - [#142](https://github.com/fgrgic/hextimator/pull/142) [`95875bf`](https://github.com/fgrgic/hextimator/commit/95875bf4889c2120626cad00cfe54c6ea8f6b9dc) Thanks [@fgrgic](https://github.com/fgrgic)! - Widens the default POSITIVE_RANGE to be [120, 180].
6
+
7
+ The previous range was to limiting so you could get an accent color that is green, and a positive color that is a whole other green that doesn't match.
8
+
9
+ Technically it changes the algorithm so it's a breaking change, but it's a minor change that should improve the color generation algorithm.
10
+
11
+ If you find your themes look worse, limit your positive range to the previous [120, 160].
12
+
1
13
  ## 0.10.2
2
14
 
3
15
  ### Patch Changes
@@ -1526,7 +1526,7 @@ function generateAccent(accent, themeType, options) {
1526
1526
  }
1527
1527
 
1528
1528
  // src/generate/generateSemanticColors.ts
1529
- var POSITIVE_RANGE = [120, 160];
1529
+ var POSITIVE_RANGE = [120, 180];
1530
1530
  var NEGATIVE_RANGE = [5, 30];
1531
1531
  var CAUTION_RANGE = [45, 70];
1532
1532
  function generateSemanticColors(color, themeType, options) {
package/dist/cli.js CHANGED
@@ -1534,7 +1534,7 @@ function generateAccent(accent, themeType, options) {
1534
1534
  }
1535
1535
 
1536
1536
  // src/generate/generateSemanticColors.ts
1537
- var POSITIVE_RANGE = [120, 160];
1537
+ var POSITIVE_RANGE = [120, 180];
1538
1538
  var NEGATIVE_RANGE = [5, 30];
1539
1539
  var CAUTION_RANGE = [45, 70];
1540
1540
  function generateSemanticColors(color, themeType, options) {
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  hextimate,
7
7
  parse,
8
8
  simulateColor
9
- } from "./chunk-64DBUA5U.js";
9
+ } from "./chunk-TF34PRUI.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-64DBUA5U.js";
3
+ } from "./chunk-TF34PRUI.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.10.2",
3
+ "version": "0.11.0",
4
4
  "description": "Runtime theming for multi-tenant apps: per-tenant branded themes from a single brand color, with WCAG contrast guarantees.",
5
5
  "keywords": [
6
6
  "runtime-theming",