@nightshadeui/palette-generator 3.4.0 → 3.5.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/README.md CHANGED
@@ -13,4 +13,4 @@ const spec = PaletteSpecSchema.decode(JSON.parse(input));
13
13
  const css = generatePaletteCss(spec, ':root');
14
14
  ```
15
15
 
16
- A spec has twelve-step `lightnessCurve` and `chromaCurve`, and `ramps` of `{ name, hue, chroma, lightness }`. A ramp may bring its own `lightnessCurve` or `chromaCurve` in place of the palette's; its multipliers apply to either. The spec must keep `base`, `primary` and `secondary`: the styles read them by name.
16
+ A spec has twelve-step `lightnessCurve` and `chromaCurve`, and `ramps` of `{ name, hue, chroma, lightness }`. A ramp may bring its own `lightnessCurve` or `chromaCurve` in place of the palette's; its multipliers apply to either. The spec must keep `base` and `primary`: the styles read them by name.
@@ -4,7 +4,7 @@ export declare const RAMP_STEPS: number[];
4
4
  export declare const RAMP_ANCHOR_INDEX = 6;
5
5
  /**
6
6
  * Ramps the styles read by name: `base` for the canvas and the neutral tones,
7
- * `primary` and `secondary` for brand accents (neutral controls focus in `secondary`).
7
+ * and `primary`, the brand accent neutral controls focus in.
8
8
  */
9
9
  export declare const REQUIRED_RAMPS: string[];
10
10
  /** Ramp names the generator won't take: `inverse` is the mirrored `base` tone the styles define. */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,UAAU,UAEtB,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,cAAc,UAAmC,CAAC;AAE/D,oGAAoG;AACpG,eAAO,MAAM,cAAc,UAAc,CAAC;AAE1C,2FAA2F;AAC3F,eAAO,MAAM,iBAAiB,kCAAkC,CAAC;AAEjE,eAAO,MAAM,uBAAuB,UAEnC,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAEhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EA2C1C,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,UAAU,UAEtB,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,cAAc,UAAsB,CAAC;AAElD,oGAAoG;AACpG,eAAO,MAAM,cAAc,UAAc,CAAC;AAE1C,2FAA2F;AAC3F,eAAO,MAAM,iBAAiB,kCAAkC,CAAC;AAEjE,eAAO,MAAM,uBAAuB,UAEnC,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAEhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EA2C1C,CAAC"}
package/dist/constants.js CHANGED
@@ -5,9 +5,9 @@ export const RAMP_STEPS = [
5
5
  export const RAMP_ANCHOR_INDEX = 6;
6
6
  /**
7
7
  * Ramps the styles read by name: `base` for the canvas and the neutral tones,
8
- * `primary` and `secondary` for brand accents (neutral controls focus in `secondary`).
8
+ * and `primary`, the brand accent neutral controls focus in.
9
9
  */
10
- export const REQUIRED_RAMPS = ['base', 'primary', 'secondary'];
10
+ export const REQUIRED_RAMPS = ['base', 'primary'];
11
11
  /** Ramp names the generator won't take: `inverse` is the mirrored `base` tone the styles define. */
12
12
  export const RESERVED_RAMPS = ['inverse'];
13
13
  /** Ramp names are lowercase kebab-case, so each one makes a valid `.tone-<name>` class. */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG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AI,EAAE,IAAI,EAAE,IAAI;CACzE,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAsB;IAC5C;QACI,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,GAAG;QACR,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,CAAC;KACf;IACD;QACI,IAAI,EAAE,SAAS;QACf,GAAG,EAAE,GAAG;QACR,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,CAAC;KACf;IACD;QACI,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,GAAG;QACR,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,CAAC;KACf;IACD;QACI,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,CAAC;KACf;IACD;QACI,IAAI,EAAE,SAAS;QACf,GAAG,EAAE,GAAG;QACR,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,CAAC;KACf;IACD;QACI,IAAI,EAAE,SAAS;QACf,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,IAAI;KAClB;IACD;QACI,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,GAAG;QACX,SAAS,EAAE,GAAG;KACjB;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightshadeui/palette-generator",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "OKLCH palette CSS variable generator for Nightshade",
5
5
  "author": "Boris Okunskiy",
6
6
  "license": "ISC",
package/src/constants.ts CHANGED
@@ -9,9 +9,9 @@ export const RAMP_ANCHOR_INDEX = 6;
9
9
 
10
10
  /**
11
11
  * Ramps the styles read by name: `base` for the canvas and the neutral tones,
12
- * `primary` and `secondary` for brand accents (neutral controls focus in `secondary`).
12
+ * and `primary`, the brand accent neutral controls focus in.
13
13
  */
14
- export const REQUIRED_RAMPS = ['base', 'primary', 'secondary'];
14
+ export const REQUIRED_RAMPS = ['base', 'primary'];
15
15
 
16
16
  /** Ramp names the generator won't take: `inverse` is the mirrored `base` tone the styles define. */
17
17
  export const RESERVED_RAMPS = ['inverse'];