Closed chacha912 closed 1 month ago
The recent changes enhance the UI framework by refining button text styles for improved hierarchy, expanding shadow options for better theming, and adjusting typography for consistency. The imports across various components have been updated to reflect a new directory structure, while an index file consolidates component exports for easier access. Overall, these modifications aim to streamline the codebase and enhance visual consistency across the application.
Files | Change Summary |
---|---|
packages/core/panda/theme/recipes/button.ts |
Updated text styles for button sizes to enhance visual hierarchy and consistency. |
packages/core/panda/theme/semantic-tokens/shadows.ts |
Expanded shadows export to include defined styles for various sizes, improving design options. |
packages/core/panda/theme/text-styles.ts |
Adjusted lineHeight values from rem to px for consistency in text rendering across devices. |
packages/core/panda/theme/tokens/sizes.ts |
Simplified size definitions by removing several large size entries, streamlining the sizing structure. |
packages/core/panda/theme/tokens/typography.ts |
Modified font sizes and renamed font weights, suggesting a simplification of typography standards. |
packages/core/src/components/button/Button.tsx |
Updated import paths for button component to reflect new directory structure without changing functionality. |
packages/core/src/components/flex/Flex.tsx |
Adjusted import paths for flex component, indicating a reorganization of the directory structure. |
packages/core/src/components/index.ts |
Introduced an index file to aggregate and re-export components, simplifying imports for users. |
packages/core/src/index.ts |
Changed export strategy to consolidate button and flex exports under a new components module for better organization. |
sequenceDiagram
participant User
participant Button
participant Flex
participant Index
User->>Index: Import components
Index->>Button: Exports button
Index->>Flex: Exports flex
User->>Button: Uses button component
User->>Flex: Uses flex component
π° In the meadow, changes bloom,
New buttons shine, dispelling gloom.
Shadows dance with depth anew,
Typography sings in every hue.
A rabbit hops with joy so bright,
Celebrating code that feels just right! β¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What this PR does / why we need it:
Refactor folder structure and Modify tokens
Special notes for your reviewer:
Which issue(s) this PR fixes:
Fixes #
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Documentation
Style