@hewnui/themes 0.1.0 → 0.1.1
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/dist/authoring/css-vars.d.ts +1 -1
- package/dist/authoring/derive.d.ts +1 -1
- package/dist/authoring/export-css.d.ts +1 -1
- package/dist/authoring/export-design-md.d.ts +1 -1
- package/dist/authoring/export-dtcg.d.ts +1 -1
- package/dist/authoring/export-figma.d.ts +1 -1
- package/dist/authoring/export-formats.d.ts +1 -1
- package/dist/authoring/export-skill.d.ts +1 -1
- package/dist/authoring/export-sticker.d.ts +1 -1
- package/dist/authoring/export-style-dictionary.d.ts +1 -1
- package/dist/authoring/figma-kit.d.ts +2 -2
- package/dist/authoring/index.d.ts +21 -21
- package/dist/authoring/oklch.d.ts +1 -1
- package/dist/authoring/override-map.d.ts +1 -1
- package/dist/authoring/pack-def.d.ts +1 -1
- package/dist/authoring/pack-meta.d.ts +1 -1
- package/dist/authoring/packs-dual.d.ts +72 -72
- package/dist/authoring/packs-single.d.ts +36 -36
- package/dist/authoring/packs.d.ts +1 -1
- package/dist/authoring/pro-apply.d.ts +1 -1
- package/dist/authoring/propose.d.ts +1 -1
- package/dist/authoring/ramps.d.ts +1 -1
- package/dist/authoring/status-ramps.d.ts +1 -1
- package/dist/authoring/token-entries.d.ts +1 -1
- package/package.json +14 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResolvedPack } from "./types";
|
|
1
|
+
import type { ResolvedPack } from "./types.js";
|
|
2
2
|
/** Free — human- and AI-readable design brief for one pack. */
|
|
3
3
|
export declare function exportDesignMd(pack: ResolvedPack): string;
|
|
4
4
|
/** Convenience — expose formatted OKLCH for tests/docs samples. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ThemeExportFormatId } from "./export-formats";
|
|
2
|
-
import { type BasePackId, type ResolvedPack } from "./types";
|
|
1
|
+
import { type ThemeExportFormatId } from "./export-formats.js";
|
|
2
|
+
import { type BasePackId, type ResolvedPack } from "./types.js";
|
|
3
3
|
/** Derive curated packs with no overrides (canonical kit source). */
|
|
4
4
|
export declare function curatedResolvedPacks(): ResolvedPack[];
|
|
5
5
|
export declare function curatedResolvedPack(basePackId: BasePackId): ResolvedPack;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { derivePack } from "./derive";
|
|
2
|
-
export type { DeriveResult } from "./derive";
|
|
3
|
-
export { exportPackCss, exportTailwindTheme } from "./export-css";
|
|
4
|
-
export { exportDesignMd, sampleAccent } from "./export-design-md";
|
|
5
|
-
export { exportDtcg } from "./export-dtcg";
|
|
6
|
-
export { getThemeExportFormat, renderThemeExport, themeExportPublicPath, THEME_EXPORT_BASENAMES, THEME_EXPORT_FORMATS, type ExportTier, type ThemeExportFormat, type ThemeExportFormatId, } from "./export-formats";
|
|
7
|
-
export { exportSkillMd } from "./export-skill";
|
|
8
|
-
export { modeToCssVars, modeToPreviewCss } from "./css-vars";
|
|
9
|
-
export { exportFigmaKit, exportFigmaVariables } from "./export-figma";
|
|
10
|
-
export { exportStyleDictionary } from "./export-style-dictionary";
|
|
11
|
-
export { exportStickerSheetSvg } from "./export-sticker";
|
|
12
|
-
export { curatedResolvedPack, curatedResolvedPacks, exportCuratedFigmaKit, exportCuratedStickerSheet, exportCuratedThemeFiles, type CuratedThemeExportFile, } from "./figma-kit";
|
|
13
|
-
export { contrastForeground, contrastRatio, formatHex, formatOklch, parseColor } from "./oklch";
|
|
14
|
-
export { normalizeOverrideMap } from "./override-map";
|
|
15
|
-
export type { NormalizeResult } from "./override-map";
|
|
16
|
-
export { PACK_IDENTITY, DESIGN_DO, DESIGN_DONT } from "./pack-meta";
|
|
17
|
-
export { BASE_PACKS, supportedModes } from "./packs";
|
|
18
|
-
export { extractColorsFromCss, parseAiProposal, pickAccentFromColors, proposeFromPalette, proposeFromPrompt, proposalToOverrideMap, suggestBasePack, suggestRadius, } from "./propose";
|
|
19
|
-
export type { ThemeProposal } from "./propose";
|
|
20
|
-
export { accentSetFromSeed } from "./ramps";
|
|
21
|
-
export { BASE_PACK_IDS, PRO_AUTHORING_UNLOCKED, SCHEMA_VERSION, type BasePackId, type DensityPreset, type GlassOverrides, type MotionCharacter, type NeutralOverrides, type OverrideMap, type RadiusPreset, type ResolvedPack, type SemanticOverrides, type ShapeOverrides, type ThemeMode, } from "./types";
|
|
1
|
+
export { derivePack } from "./derive.js";
|
|
2
|
+
export type { DeriveResult } from "./derive.js";
|
|
3
|
+
export { exportPackCss, exportTailwindTheme } from "./export-css.js";
|
|
4
|
+
export { exportDesignMd, sampleAccent } from "./export-design-md.js";
|
|
5
|
+
export { exportDtcg } from "./export-dtcg.js";
|
|
6
|
+
export { getThemeExportFormat, renderThemeExport, themeExportPublicPath, THEME_EXPORT_BASENAMES, THEME_EXPORT_FORMATS, type ExportTier, type ThemeExportFormat, type ThemeExportFormatId, } from "./export-formats.js";
|
|
7
|
+
export { exportSkillMd } from "./export-skill.js";
|
|
8
|
+
export { modeToCssVars, modeToPreviewCss } from "./css-vars.js";
|
|
9
|
+
export { exportFigmaKit, exportFigmaVariables } from "./export-figma.js";
|
|
10
|
+
export { exportStyleDictionary } from "./export-style-dictionary.js";
|
|
11
|
+
export { exportStickerSheetSvg } from "./export-sticker.js";
|
|
12
|
+
export { curatedResolvedPack, curatedResolvedPacks, exportCuratedFigmaKit, exportCuratedStickerSheet, exportCuratedThemeFiles, type CuratedThemeExportFile, } from "./figma-kit.js";
|
|
13
|
+
export { contrastForeground, contrastRatio, formatHex, formatOklch, parseColor } from "./oklch.js";
|
|
14
|
+
export { normalizeOverrideMap } from "./override-map.js";
|
|
15
|
+
export type { NormalizeResult } from "./override-map.js";
|
|
16
|
+
export { PACK_IDENTITY, DESIGN_DO, DESIGN_DONT } from "./pack-meta.js";
|
|
17
|
+
export { BASE_PACKS, supportedModes } from "./packs.js";
|
|
18
|
+
export { extractColorsFromCss, parseAiProposal, pickAccentFromColors, proposeFromPalette, proposeFromPrompt, proposalToOverrideMap, suggestBasePack, suggestRadius, } from "./propose.js";
|
|
19
|
+
export type { ThemeProposal } from "./propose.js";
|
|
20
|
+
export { accentSetFromSeed } from "./ramps.js";
|
|
21
|
+
export { BASE_PACK_IDS, PRO_AUTHORING_UNLOCKED, SCHEMA_VERSION, type BasePackId, type DensityPreset, type GlassOverrides, type MotionCharacter, type NeutralOverrides, type OverrideMap, type RadiusPreset, type ResolvedPack, type SemanticOverrides, type ShapeOverrides, type ThemeMode, } from "./types.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CoreModeColors, Oklch, StructuralTokens, ThemeMode } from "./types";
|
|
1
|
+
import type { CoreModeColors, Oklch, StructuralTokens, ThemeMode } from "./types.js";
|
|
2
2
|
export declare function o(l: number, c: number, h: number, alpha?: number): Oklch;
|
|
3
3
|
/** Curated pack definition before status families are merged. */
|
|
4
4
|
export type PackDef = {
|
|
@@ -13,32 +13,32 @@ export declare const DUAL_PACKS: {
|
|
|
13
13
|
};
|
|
14
14
|
readonly modes: {
|
|
15
15
|
readonly light: {
|
|
16
|
-
readonly background: import("./types").Oklch;
|
|
17
|
-
readonly foreground: import("./types").Oklch;
|
|
18
|
-
readonly surface: import("./types").Oklch;
|
|
19
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
20
|
-
readonly muted: import("./types").Oklch;
|
|
21
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
22
|
-
readonly accent: import("./types").Oklch;
|
|
23
|
-
readonly accentForeground: import("./types").Oklch;
|
|
24
|
-
readonly border: import("./types").Oklch;
|
|
25
|
-
readonly ring: import("./types").Oklch;
|
|
26
|
-
readonly danger: import("./types").Oklch;
|
|
27
|
-
readonly glassTint: import("./types").Oklch;
|
|
16
|
+
readonly background: import("./types.js").Oklch;
|
|
17
|
+
readonly foreground: import("./types.js").Oklch;
|
|
18
|
+
readonly surface: import("./types.js").Oklch;
|
|
19
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
20
|
+
readonly muted: import("./types.js").Oklch;
|
|
21
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
22
|
+
readonly accent: import("./types.js").Oklch;
|
|
23
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
24
|
+
readonly border: import("./types.js").Oklch;
|
|
25
|
+
readonly ring: import("./types.js").Oklch;
|
|
26
|
+
readonly danger: import("./types.js").Oklch;
|
|
27
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
28
28
|
};
|
|
29
29
|
readonly dark: {
|
|
30
|
-
readonly background: import("./types").Oklch;
|
|
31
|
-
readonly foreground: import("./types").Oklch;
|
|
32
|
-
readonly surface: import("./types").Oklch;
|
|
33
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
34
|
-
readonly muted: import("./types").Oklch;
|
|
35
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
36
|
-
readonly accent: import("./types").Oklch;
|
|
37
|
-
readonly accentForeground: import("./types").Oklch;
|
|
38
|
-
readonly border: import("./types").Oklch;
|
|
39
|
-
readonly ring: import("./types").Oklch;
|
|
40
|
-
readonly danger: import("./types").Oklch;
|
|
41
|
-
readonly glassTint: import("./types").Oklch;
|
|
30
|
+
readonly background: import("./types.js").Oklch;
|
|
31
|
+
readonly foreground: import("./types.js").Oklch;
|
|
32
|
+
readonly surface: import("./types.js").Oklch;
|
|
33
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
34
|
+
readonly muted: import("./types.js").Oklch;
|
|
35
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
36
|
+
readonly accent: import("./types.js").Oklch;
|
|
37
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
38
|
+
readonly border: import("./types.js").Oklch;
|
|
39
|
+
readonly ring: import("./types.js").Oklch;
|
|
40
|
+
readonly danger: import("./types.js").Oklch;
|
|
41
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
};
|
|
@@ -55,32 +55,32 @@ export declare const DUAL_PACKS: {
|
|
|
55
55
|
};
|
|
56
56
|
readonly modes: {
|
|
57
57
|
readonly light: {
|
|
58
|
-
readonly background: import("./types").Oklch;
|
|
59
|
-
readonly foreground: import("./types").Oklch;
|
|
60
|
-
readonly surface: import("./types").Oklch;
|
|
61
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
62
|
-
readonly muted: import("./types").Oklch;
|
|
63
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
64
|
-
readonly accent: import("./types").Oklch;
|
|
65
|
-
readonly accentForeground: import("./types").Oklch;
|
|
66
|
-
readonly border: import("./types").Oklch;
|
|
67
|
-
readonly ring: import("./types").Oklch;
|
|
68
|
-
readonly danger: import("./types").Oklch;
|
|
69
|
-
readonly glassTint: import("./types").Oklch;
|
|
58
|
+
readonly background: import("./types.js").Oklch;
|
|
59
|
+
readonly foreground: import("./types.js").Oklch;
|
|
60
|
+
readonly surface: import("./types.js").Oklch;
|
|
61
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
62
|
+
readonly muted: import("./types.js").Oklch;
|
|
63
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
64
|
+
readonly accent: import("./types.js").Oklch;
|
|
65
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
66
|
+
readonly border: import("./types.js").Oklch;
|
|
67
|
+
readonly ring: import("./types.js").Oklch;
|
|
68
|
+
readonly danger: import("./types.js").Oklch;
|
|
69
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
70
70
|
};
|
|
71
71
|
readonly dark: {
|
|
72
|
-
readonly background: import("./types").Oklch;
|
|
73
|
-
readonly foreground: import("./types").Oklch;
|
|
74
|
-
readonly surface: import("./types").Oklch;
|
|
75
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
76
|
-
readonly muted: import("./types").Oklch;
|
|
77
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
78
|
-
readonly accent: import("./types").Oklch;
|
|
79
|
-
readonly accentForeground: import("./types").Oklch;
|
|
80
|
-
readonly border: import("./types").Oklch;
|
|
81
|
-
readonly ring: import("./types").Oklch;
|
|
82
|
-
readonly danger: import("./types").Oklch;
|
|
83
|
-
readonly glassTint: import("./types").Oklch;
|
|
72
|
+
readonly background: import("./types.js").Oklch;
|
|
73
|
+
readonly foreground: import("./types.js").Oklch;
|
|
74
|
+
readonly surface: import("./types.js").Oklch;
|
|
75
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
76
|
+
readonly muted: import("./types.js").Oklch;
|
|
77
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
78
|
+
readonly accent: import("./types.js").Oklch;
|
|
79
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
80
|
+
readonly border: import("./types.js").Oklch;
|
|
81
|
+
readonly ring: import("./types.js").Oklch;
|
|
82
|
+
readonly danger: import("./types.js").Oklch;
|
|
83
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
};
|
|
@@ -97,32 +97,32 @@ export declare const DUAL_PACKS: {
|
|
|
97
97
|
};
|
|
98
98
|
readonly modes: {
|
|
99
99
|
readonly light: {
|
|
100
|
-
readonly background: import("./types").Oklch;
|
|
101
|
-
readonly foreground: import("./types").Oklch;
|
|
102
|
-
readonly surface: import("./types").Oklch;
|
|
103
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
104
|
-
readonly muted: import("./types").Oklch;
|
|
105
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
106
|
-
readonly accent: import("./types").Oklch;
|
|
107
|
-
readonly accentForeground: import("./types").Oklch;
|
|
108
|
-
readonly border: import("./types").Oklch;
|
|
109
|
-
readonly ring: import("./types").Oklch;
|
|
110
|
-
readonly danger: import("./types").Oklch;
|
|
111
|
-
readonly glassTint: import("./types").Oklch;
|
|
100
|
+
readonly background: import("./types.js").Oklch;
|
|
101
|
+
readonly foreground: import("./types.js").Oklch;
|
|
102
|
+
readonly surface: import("./types.js").Oklch;
|
|
103
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
104
|
+
readonly muted: import("./types.js").Oklch;
|
|
105
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
106
|
+
readonly accent: import("./types.js").Oklch;
|
|
107
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
108
|
+
readonly border: import("./types.js").Oklch;
|
|
109
|
+
readonly ring: import("./types.js").Oklch;
|
|
110
|
+
readonly danger: import("./types.js").Oklch;
|
|
111
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
112
112
|
};
|
|
113
113
|
readonly dark: {
|
|
114
|
-
readonly background: import("./types").Oklch;
|
|
115
|
-
readonly foreground: import("./types").Oklch;
|
|
116
|
-
readonly surface: import("./types").Oklch;
|
|
117
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
118
|
-
readonly muted: import("./types").Oklch;
|
|
119
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
120
|
-
readonly accent: import("./types").Oklch;
|
|
121
|
-
readonly accentForeground: import("./types").Oklch;
|
|
122
|
-
readonly border: import("./types").Oklch;
|
|
123
|
-
readonly ring: import("./types").Oklch;
|
|
124
|
-
readonly danger: import("./types").Oklch;
|
|
125
|
-
readonly glassTint: import("./types").Oklch;
|
|
114
|
+
readonly background: import("./types.js").Oklch;
|
|
115
|
+
readonly foreground: import("./types.js").Oklch;
|
|
116
|
+
readonly surface: import("./types.js").Oklch;
|
|
117
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
118
|
+
readonly muted: import("./types.js").Oklch;
|
|
119
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
120
|
+
readonly accent: import("./types.js").Oklch;
|
|
121
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
122
|
+
readonly border: import("./types.js").Oklch;
|
|
123
|
+
readonly ring: import("./types.js").Oklch;
|
|
124
|
+
readonly danger: import("./types.js").Oklch;
|
|
125
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
128
|
};
|
|
@@ -13,18 +13,18 @@ export declare const SINGLE_PACKS: {
|
|
|
13
13
|
};
|
|
14
14
|
readonly modes: {
|
|
15
15
|
readonly light: {
|
|
16
|
-
readonly background: import("./types").Oklch;
|
|
17
|
-
readonly foreground: import("./types").Oklch;
|
|
18
|
-
readonly surface: import("./types").Oklch;
|
|
19
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
20
|
-
readonly muted: import("./types").Oklch;
|
|
21
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
22
|
-
readonly accent: import("./types").Oklch;
|
|
23
|
-
readonly accentForeground: import("./types").Oklch;
|
|
24
|
-
readonly border: import("./types").Oklch;
|
|
25
|
-
readonly ring: import("./types").Oklch;
|
|
26
|
-
readonly danger: import("./types").Oklch;
|
|
27
|
-
readonly glassTint: import("./types").Oklch;
|
|
16
|
+
readonly background: import("./types.js").Oklch;
|
|
17
|
+
readonly foreground: import("./types.js").Oklch;
|
|
18
|
+
readonly surface: import("./types.js").Oklch;
|
|
19
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
20
|
+
readonly muted: import("./types.js").Oklch;
|
|
21
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
22
|
+
readonly accent: import("./types.js").Oklch;
|
|
23
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
24
|
+
readonly border: import("./types.js").Oklch;
|
|
25
|
+
readonly ring: import("./types.js").Oklch;
|
|
26
|
+
readonly danger: import("./types.js").Oklch;
|
|
27
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
@@ -41,18 +41,18 @@ export declare const SINGLE_PACKS: {
|
|
|
41
41
|
};
|
|
42
42
|
readonly modes: {
|
|
43
43
|
readonly light: {
|
|
44
|
-
readonly background: import("./types").Oklch;
|
|
45
|
-
readonly foreground: import("./types").Oklch;
|
|
46
|
-
readonly surface: import("./types").Oklch;
|
|
47
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
48
|
-
readonly muted: import("./types").Oklch;
|
|
49
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
50
|
-
readonly accent: import("./types").Oklch;
|
|
51
|
-
readonly accentForeground: import("./types").Oklch;
|
|
52
|
-
readonly border: import("./types").Oklch;
|
|
53
|
-
readonly ring: import("./types").Oklch;
|
|
54
|
-
readonly danger: import("./types").Oklch;
|
|
55
|
-
readonly glassTint: import("./types").Oklch;
|
|
44
|
+
readonly background: import("./types.js").Oklch;
|
|
45
|
+
readonly foreground: import("./types.js").Oklch;
|
|
46
|
+
readonly surface: import("./types.js").Oklch;
|
|
47
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
48
|
+
readonly muted: import("./types.js").Oklch;
|
|
49
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
50
|
+
readonly accent: import("./types.js").Oklch;
|
|
51
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
52
|
+
readonly border: import("./types.js").Oklch;
|
|
53
|
+
readonly ring: import("./types.js").Oklch;
|
|
54
|
+
readonly danger: import("./types.js").Oklch;
|
|
55
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
};
|
|
@@ -69,18 +69,18 @@ export declare const SINGLE_PACKS: {
|
|
|
69
69
|
};
|
|
70
70
|
readonly modes: {
|
|
71
71
|
readonly dark: {
|
|
72
|
-
readonly background: import("./types").Oklch;
|
|
73
|
-
readonly foreground: import("./types").Oklch;
|
|
74
|
-
readonly surface: import("./types").Oklch;
|
|
75
|
-
readonly surfaceRaised: import("./types").Oklch;
|
|
76
|
-
readonly muted: import("./types").Oklch;
|
|
77
|
-
readonly mutedForeground: import("./types").Oklch;
|
|
78
|
-
readonly accent: import("./types").Oklch;
|
|
79
|
-
readonly accentForeground: import("./types").Oklch;
|
|
80
|
-
readonly border: import("./types").Oklch;
|
|
81
|
-
readonly ring: import("./types").Oklch;
|
|
82
|
-
readonly danger: import("./types").Oklch;
|
|
83
|
-
readonly glassTint: import("./types").Oklch;
|
|
72
|
+
readonly background: import("./types.js").Oklch;
|
|
73
|
+
readonly foreground: import("./types.js").Oklch;
|
|
74
|
+
readonly surface: import("./types.js").Oklch;
|
|
75
|
+
readonly surfaceRaised: import("./types.js").Oklch;
|
|
76
|
+
readonly muted: import("./types.js").Oklch;
|
|
77
|
+
readonly mutedForeground: import("./types.js").Oklch;
|
|
78
|
+
readonly accent: import("./types.js").Oklch;
|
|
79
|
+
readonly accentForeground: import("./types.js").Oklch;
|
|
80
|
+
readonly border: import("./types.js").Oklch;
|
|
81
|
+
readonly ring: import("./types.js").Oklch;
|
|
82
|
+
readonly danger: import("./types.js").Oklch;
|
|
83
|
+
readonly glassTint: import("./types.js").Oklch;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BasePackId, ModeColorTokens, StructuralTokens, ThemeMode } from "./types";
|
|
1
|
+
import type { BasePackId, ModeColorTokens, StructuralTokens, ThemeMode } from "./types.js";
|
|
2
2
|
export type ResolvedPackDef = {
|
|
3
3
|
modes: Partial<Record<ThemeMode, ModeColorTokens>>;
|
|
4
4
|
structural: StructuralTokens;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GlassOverrides, ModeColorTokens, NeutralOverrides, OverrideMap, SemanticOverrides, ShapeOverrides, StructuralTokens, ThemeMode } from "./types";
|
|
1
|
+
import type { GlassOverrides, ModeColorTokens, NeutralOverrides, OverrideMap, SemanticOverrides, ShapeOverrides, StructuralTokens, ThemeMode } from "./types.js";
|
|
2
2
|
export declare function applyNeutrals(colors: ModeColorTokens, neutrals: NeutralOverrides | undefined, mode: ThemeMode, adjustments: string[]): ModeColorTokens;
|
|
3
3
|
export declare function applySemantic(colors: ModeColorTokens, semantic: SemanticOverrides | undefined, mode: ThemeMode, adjustments: string[]): ModeColorTokens | {
|
|
4
4
|
error: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BasePackId, Oklch, StatusModeColors, ThemeMode } from "./types";
|
|
1
|
+
import type { BasePackId, Oklch, StatusModeColors, ThemeMode } from "./types.js";
|
|
2
2
|
/** Pack-character hues for semantic status families (not accent clones). */
|
|
3
3
|
export declare const PACK_STATUS_HUES: Record<BasePackId, {
|
|
4
4
|
success: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hewnui/themes",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,33 +12,7 @@
|
|
|
12
12
|
"**/*.css"
|
|
13
13
|
],
|
|
14
14
|
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
"exports": {
|
|
17
|
-
"./tokens.css": "./src/tokens.css",
|
|
18
|
-
"./motion.css": "./src/motion.css",
|
|
19
|
-
"./glass.css": "./src/glass.css",
|
|
20
|
-
"./glass-buttons.css": "./src/glass-buttons.css",
|
|
21
|
-
"./radius.css": "./src/radius.css",
|
|
22
|
-
"./packs/clay.css": "./src/packs/clay.css",
|
|
23
|
-
"./packs/dune.css": "./src/packs/dune.css",
|
|
24
|
-
"./packs/ember.css": "./src/packs/ember.css",
|
|
25
|
-
"./packs/forest.css": "./src/packs/forest.css",
|
|
26
|
-
"./packs/graphite.css": "./src/packs/graphite.css",
|
|
27
|
-
"./packs/tide.css": "./src/packs/tide.css",
|
|
28
|
-
"./authoring": {
|
|
29
|
-
"types": "./dist/authoring/index.d.ts",
|
|
30
|
-
"default": "./dist/authoring/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./figma/hewn.tokens.json": "./figma/hewn.tokens.json",
|
|
33
|
-
"./figma/sticker-sheet.svg": "./figma/sticker-sheet.svg",
|
|
34
|
-
"./package.json": "./package.json"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "tsc -p tsconfig.build.json && tsx ../../tooling/fix-esm-relative-extensions.ts dist/authoring",
|
|
39
|
-
"generate": "tsx ../../tooling/build-figma-kit.ts && tsx ../../tooling/build-theme-exports.ts",
|
|
40
|
-
"typecheck": "tsc --noEmit",
|
|
41
|
-
"test": "vitest run"
|
|
15
|
+
"access": "public"
|
|
42
16
|
},
|
|
43
17
|
"files": [
|
|
44
18
|
"README.md",
|
|
@@ -64,17 +38,17 @@
|
|
|
64
38
|
"./packs/graphite.css": "./src/packs/graphite.css",
|
|
65
39
|
"./packs/tide.css": "./src/packs/tide.css",
|
|
66
40
|
"./authoring": {
|
|
67
|
-
"types": "./
|
|
68
|
-
"default": "./
|
|
41
|
+
"types": "./dist/authoring/index.d.ts",
|
|
42
|
+
"default": "./dist/authoring/index.js"
|
|
69
43
|
},
|
|
70
44
|
"./figma/hewn.tokens.json": "./figma/hewn.tokens.json",
|
|
71
45
|
"./figma/sticker-sheet.svg": "./figma/sticker-sheet.svg",
|
|
72
46
|
"./package.json": "./package.json"
|
|
73
47
|
},
|
|
74
48
|
"devDependencies": {
|
|
75
|
-
"@hewnui/tsconfig": "workspace:*",
|
|
76
49
|
"typescript": "6.0.3",
|
|
77
|
-
"vitest": "4.1.10"
|
|
50
|
+
"vitest": "4.1.10",
|
|
51
|
+
"@hewnui/tsconfig": "0.0.0"
|
|
78
52
|
},
|
|
79
53
|
"homepage": "https://hewnui.dev",
|
|
80
54
|
"bugs": {
|
|
@@ -96,5 +70,11 @@
|
|
|
96
70
|
"wcag",
|
|
97
71
|
"figma-tokens",
|
|
98
72
|
"hewnui"
|
|
99
|
-
]
|
|
100
|
-
|
|
73
|
+
],
|
|
74
|
+
"scripts": {
|
|
75
|
+
"build": "tsc -p tsconfig.build.json && tsx ../../tooling/fix-esm-relative-extensions.ts dist/authoring",
|
|
76
|
+
"generate": "tsx ../../tooling/build-figma-kit.ts && tsx ../../tooling/build-theme-exports.ts",
|
|
77
|
+
"typecheck": "tsc --noEmit",
|
|
78
|
+
"test": "vitest run"
|
|
79
|
+
}
|
|
80
|
+
}
|