Skip to content
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

setup(css-library): setup tailwind for all apps with global config in ui package #15

Merged
merged 4 commits into from
Feb 14, 2024
Merged

setup(css-library): setup tailwind for all apps with global config in ui package #15

merged 4 commits into from
Feb 14, 2024

Conversation

sidarth-23
Copy link
Collaborator

… ui package

Summary

Made UI library a hub of any UI related things by all tailwind configs and css file required, an export by the ui library<

Also configured tailwind to the apps with the global config and is working

  • [ ✅ ] Tested
  • [ ❌ ] Test Case added - Not applicable
  • [ ✅ ] Build Successful
  • [ ✅ ] Sufficient Code comments added
  • [ ❌ ] Attached Screenshots / Videos - No screenshots for this
  • [ ✅ ] All Relevant Documents added

Depends on

No dependencies

@yogai53
Copy link
Contributor

yogai53 commented Feb 13, 2024

@sidarth-23 Please resolve conflict.

@sidarth-23
Copy link
Collaborator Author

@sidarth-23 Please resolve conflict.

Resolved

@@ -0,0 +1,17 @@
import type { Config } from "tailwindcss";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create new project for Tailwind.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm done with it. But I'm unable to squash the commits due to git merge in between the commits

"tailwindcss": "^3.4.1",
"postcss": "^8.4.33",
"autoprefixer": "^10.4.17",
"typescript": "^5.3.3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check other dependencies and ensure if it is really needed for the project.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked with the projects using it and found that it works only if tailwind is installed. But not sure if it's required in the config package. I'll test it out update the status here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intuition was correct and I did not need the node-modules in tailwind-config package.

Except for the tailwindcss. I needed it to get the type of config file which is there in tailwindcss npm. Is it worth deleting tailwindcss from the config package and lose type safety for the config.ts file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we are adding in only the tailwindcss dependency for the config package

… dependencies

setup(tailwind): bug fix in postcss

setup(tailwind): fix pnpm lock file

removed unused dependencies
@sidarth-23 sidarth-23 merged commit a3e32df into kalvilabs:master Feb 14, 2024
4 checks passed
@sidarth-23 sidarth-23 deleted the setup/tailwind branch February 15, 2024 15:17
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.

3 participants