Skip to content

Commit 561b6aa

Browse files
committed
docs: added ideas of improvements
1 parent 7f32757 commit 561b6aa

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Ideas for Future Improvements to Jacaranda
2+
3+
## Performance & Optimization
4+
5+
1. **Memoization for style functions**: Implement React.memo or useMemo in the styled components to prevent unnecessary recalculations when props haven't changed.
6+
7+
2. **Style caching system**: Cache resolved styles based on input parameters to avoid redundant style calculations, especially for complex compound variants.
8+
9+
3. **Lazy evaluation**: Only resolve token references when they're actually used rather than upfront.
10+
11+
## Enhanced Features
12+
13+
1. **Media queries support**: Add responsive styling capabilities similar to how frameworks like Tailwind handle breakpoints.
14+
15+
2. **Platform-specific styling**: Add built-in utilities for platform-specific styles (iOS vs Android).
16+
17+
3. **Animation integration**: Built-in support for React Native Animated or Reanimated libraries.
18+
19+
4. **Theme switching**: Add support for light/dark mode or custom themes with smooth transitions.
20+
21+
## Developer Experience
22+
23+
1. **TypeScript improvements**:
24+
25+
- Better autocomplete for token references
26+
- Stricter type checking for style properties
27+
- Improved error messages for invalid token references
28+
29+
## Testing & Tooling
30+
31+
1. **Snapshot testing utilities**: Dedicated utilities to make testing styled components easier.
32+
33+
2. **Bundle size optimization**: Tree-shaking improvements and smaller runtime for production.
34+
35+
## Ecosystem
36+
37+
1. **Preset component library**: A collection of pre-styled, accessible components built with Jacaranda.

0 commit comments

Comments
 (0)