Skip to content

Conversation

@vineethasok
Copy link
Collaborator

@vineethasok vineethasok commented Dec 16, 2025

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

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.
@vineethasok vineethasok requested a review from gjones December 16, 2025 14:10
@vineethasok vineethasok self-assigned this Dec 16, 2025
@vercel
Copy link

vercel bot commented Dec 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
click-ui Ready Ready Preview, Comment Dec 16, 2025 4:41pm

@gjones
Copy link
Collaborator

gjones commented Dec 16, 2025

@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.

CleanShot 2025-12-16 at 09 13 19@2x

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.
elizabetdev and others added 2 commits December 16, 2025 15:31
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.
ariser
ariser previously approved these changes Dec 16, 2025
@ariser ariser self-requested a review December 16, 2025 15:58
@ariser ariser dismissed their stale review December 16, 2025 15:59

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.
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.
@vineethasok
Copy link
Collaborator Author

@gjones @ariser I have fixed the issue with the styled dictionary and it won't be causing the issue you mentioned

@serdec
Copy link
Member

serdec commented Dec 16, 2025

@gjones it should be ok and the changes shouldn't break anything

@vineethasok vineethasok merged commit 823a762 into main Dec 16, 2025
6 checks passed
@vineethasok vineethasok deleted the theme-related-folder-optimization branch December 16, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants