Skip to content

Commit c836ad5

Browse files
committed
feat: add ThemeEngine tests and implement ThemeContext for theme management
- Created comprehensive tests for ThemeEngine functions including color conversion, typography, border radius, shadows, animations, z-index, theme generation, merging, and inheritance. - Introduced ThemeProvider and context for managing themes and modes in React, supporting theme switching, persistence, and CSS variable injection. - Implemented hooks for accessing theme context and optional theme usage. - Added tests for ThemeProvider to ensure proper functionality and persistence behavior.
1 parent fb72ebb commit c836ad5

File tree

12 files changed

+2334
-310
lines changed

12 files changed

+2334
-310
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export * from './evaluator/index.js';
1717
export * from './actions/index.js';
1818
export * from './query/index.js';
1919
export * from './adapters/index.js';
20+
export * from './theme/index.js';
2021
// export * from './data-scope'; // TODO
2122
// export * from './validators'; // TODO
2223

0 commit comments

Comments
 (0)