@clhaas/palette-kit 0.1.6 → 0.1.7

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.
@@ -33,6 +33,11 @@ function typeExports() {
33
33
  'export type ThemeTokenName = keyof Theme["tokens"]["light"];',
34
34
  'export type ThemeTokenMap = Theme["tokens"]["light"];',
35
35
  'export type ThemeOverlay = Theme["overlay"];',
36
+ 'export type ThemeMode = keyof Theme["tokens"];',
37
+ 'export type ThemeScaleStep = keyof Theme["scales"][ThemeScaleName]["light"];',
38
+ 'export type ThemeTokenHex = Theme["tokens"][ThemeMode][ThemeTokenName];',
39
+ 'export type ThemeScaleHex = Theme["scales"][ThemeScaleName][ThemeMode][ThemeScaleStep];',
40
+ 'export type ThemeAlphaHex = Theme["alpha"] extends undefined ? never : Theme["alpha"][ThemeMode][ThemeScaleStep];',
36
41
  "",
37
42
  ].join("\n");
38
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clhaas/palette-kit",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Easy way to create the color palette of your app",
5
5
  "license": "MIT",
6
6
  "author": "Claus Haas",