@latte-macchiat-io/latte-vanilla-components 0.0.181 → 0.0.182

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.181",
3
+ "version": "0.0.182",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/index.ts CHANGED
@@ -89,7 +89,7 @@ export { ToRemove } from './components/ToRemove/ToRemove';
89
89
  // Theme utilities
90
90
  export { createDarkTheme, createLightTheme, type ThemeOverrides } from './utils/theme';
91
91
  export { createCustomLightTheme, createCustomDarkTheme, type ThemeOverrides as CustomThemeOverrides } from './utils/createCustomTheme';
92
- export { createThemeOverride } from './utils/themeOverrides.css';
92
+ export { createScopedTheme } from './utils/themeOverrides.css';
93
93
  // Theme contract and values
94
94
  export { themeContract } from './theme/contract.css';
95
95
  export { baseLightTheme, baseDarkTheme } from './theme/baseThemeValues';
@@ -4,7 +4,7 @@ import { themeContract } from '../theme/contract.css';
4
4
  // Create a higher-specificity theme that can override the base themes
5
5
  export const themeOverrides = createThemeContract(themeContract);
6
6
 
7
- // Export a utility to create override themes with custom selectors
8
- export const createThemeOverride = (selector: string, values: Partial<typeof themeContract>) => {
7
+ // Export a utility to create CSS theme overrides with custom selectors
8
+ export const createScopedTheme = (selector: string, values: Partial<typeof themeContract>) => {
9
9
  return createGlobalTheme(selector, themeContract, values as any);
10
10
  };