Commit c836ad5
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- packages
- core/src
- theme
- __tests__
- react/src
- __tests__
- context
- types/src
- __tests__
- zod
12 files changed
+2334
-310
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
0 commit comments