-
Notifications
You must be signed in to change notification settings - Fork 14
Refactor theme structure and update imports #727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Moved ClickUIProvider and theme variable files to a new src/theme directory. Updated all relevant imports in components and theme index to use the new paths. Added a new Theme type definition and separated theme variable JSON files for dark, light, and default themes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@serdec Can I get a second pair of eyes on this please? It's not enough to simply move the variables directory in the code as unless I make changes at the token creation end, it'll just overwrite them again. Can you double check the build work with style directory that we set up to make sure we're not breaking things with this PR? Screenshot from Tokens Studio, check the bottom field.
|
Changed the import path for ClickUIProvider in .storybook/preview.tsx to reflect its new location under src/theme. This ensures Storybook uses the correct provider component.
Reformats TypeScript interface declarations across multiple components for improved readability and consistency, primarily by moving 'extends' and generic type parameters to a single line or consistent multi-line style. Also updates Prettier to version 3.7.4 in package.json and yarn.lock.
the code changes themselves look fine, but apparently we need to double check what Gareth said
Moved ClickUIProvider and theme variable files to a new src/theme directory. Updated all relevant imports in components and theme index to use the new paths. Added a new Theme type definition and separated theme variable JSON files for dark, light, and default themes.
Changed the import path for ClickUIProvider in .storybook/preview.tsx to reflect its new location under src/theme. This ensures Storybook uses the correct provider component.
…m/ClickHouse/click-ui into theme-related-folder-optimization
Theme token files and types have been moved from src/styles to src/theme/tokens for better organization. The build-tokens.js script and related build paths were updated accordingly, and the generate-tokens script now formats the generated TypeScript file with Prettier. Old files in src/styles were deleted.
|
@gjones it should be ok and the changes shouldn't break anything |

Moved ClickUIProvider and theme variable files to a new src/theme directory. Updated all relevant imports in components and theme index to use the new paths. Added a new Theme type definition and separated theme variable JSON files for dark, light, and default themes.
The main purpose is to move all the theme related items in a single folder for better readability