@celestia-island/hikari 0.55.410 → 0.55.412
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/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/theme/index.ts +2 -0
- package/src/theme/semanticPalette.test.ts +812 -0
- package/src/theme/semanticPalette.ts +565 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -342,6 +342,8 @@ export {
|
|
|
342
342
|
type ThemeDecorSlot, type ThemeDecorRegistration, type ThemeDecorBuiltinRegistration,
|
|
343
343
|
type FontContextOverrides,
|
|
344
344
|
} from "./theme";
|
|
345
|
+
export { deriveSemanticPalette, CANONICAL_SEMANTIC, contrastRatio, hueDistance, rgbToOklch, oklchToRgb } from "./theme/semanticPalette";
|
|
346
|
+
export type { SemanticPalette, SemanticFills, OKLCH } from "./theme/semanticPalette";
|
|
345
347
|
|
|
346
348
|
// Wallpaper logic layer (ported from shittim-chest). The pack, the brand map
|
|
347
349
|
// and the pipeline registry arrive as host registrations.
|
package/src/theme/index.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { initTheme, useTheme } from "./useTheme";
|
|
|
2
2
|
export { initFontContext, applyFontContext, resetFontContext, useFontContext, HIKARI_FONT_SANS, HIKARI_FONT_MONO, HIKARI_FONT_READING } from "./fontContext";
|
|
3
3
|
export type { FontContextOverrides } from "./fontContext";
|
|
4
4
|
export { themePresets, stockDefaultPreset, tokensToCSSVars, getThemeTokens, loadCustomThemes, saveCustomThemes, addCustomTheme, removeCustomTheme } from "./presets";
|
|
5
|
+
export { deriveSemanticPalette, CANONICAL_SEMANTIC, contrastRatio, hueDistance, rgbToOklch, oklchToRgb } from "./semanticPalette";
|
|
6
|
+
export type { SemanticPalette, SemanticFills, OKLCH } from "./semanticPalette";
|
|
5
7
|
export type { ThemeTokenRGB, ThemeSchemeTokens, ThemePreset, CustomThemePreset, ThemeId, ThemeMode, ThemeTokenValue, ThemeTokenGroupValues, ThemeTokenGroupModes } from "./presets";
|
|
6
8
|
export type { ThemeTokens } from "./presets";
|
|
7
9
|
export {
|