@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 +1 -1
- package/src/index.ts +1 -1
- package/src/utils/themeOverrides.css.ts +2 -2
package/package.json
CHANGED
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 {
|
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
|
8
|
-
export const
|
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
|
};
|