Skip to content

Changes I would make to the tailwind PR#33

Merged
gauravwarale merged 1 commit intopatterninc:CU-86dxezft7_Upgrade-tailwind-4-for-heimdallfrom
ryankshaw:ry/tailwind
Aug 7, 2025
Merged

Changes I would make to the tailwind PR#33
gauravwarale merged 1 commit intopatterninc:CU-86dxezft7_Upgrade-tailwind-4-for-heimdallfrom
ryankshaw:ry/tailwind

Conversation

@ryankshaw
Copy link
Collaborator

These are the things I would do differently in your PR. this PR is made as a PR to your PR so if you like it you can merge it and it will be merged into your branch

These are the things I would do differently in your PR. this PR is 
made as a PR to your PR so if you like it you can merge it and it will
be merged into your branch
{
"jsxSingleQuote": true,
"plugins": ["prettier-plugin-sort-json"],
"plugins": ["prettier-plugin-sort-json", "prettier-plugin-tailwindcss"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you don't need this but it makes life a lot better when dealing with tailwind classes

Comment on lines +1 to +2
/* you might want to consider adding this preflight line here. it enables tailwind's preflight. we can't do it by default in our other apps because they are relying on their own css reset but if you can it will make your app look more like "standard" tailwind */
/* @import "tailwindcss/preflight.css" layer(base); */
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if you can use tailwind's preflight, I would. we can't in our other apps but you should if you can

import ClientLayout from '@/common/ClientLayout/ClientLayout'
import { NuqsAdapter } from 'nuqs/adapters/next/app'
import './globals.css'
import '../../node_modules/@patterninc/react-ui/dist/pattern-themed-tailwind.css'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you don't want to pull in pattern-themed-tailwind.css as it's own css file. you want to pull it in where you were pulling in "tailwind" in your css file

@@ -1,19 +0,0 @@
import type { Config } from 'tailwindcss'
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 don't think you need this configuration file anymore. since tailiwind v4 uses css based configuration

"./src/*"
]
},
"target": "ES2017"
Copy link
Collaborator Author

@ryankshaw ryankshaw Aug 7, 2025

Choose a reason for hiding this comment

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

This isn't necessarily part of upgrading to tailwind, but I noticed this while playing with your pr. all the browsers we support support at lest es2022 so you can bump this so you can get access to more stuff like Array.at or whatever

Comment on lines -48 to -51
},
"overrides": {
"@types/react": "19.1.6",
"@types/react-dom": "19.1.6"
Copy link
Collaborator Author

@ryankshaw ryankshaw Aug 7, 2025

Choose a reason for hiding this comment

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

you shouldn't need these anymore. not related to tailwind but something you could clean up

@gauravwarale gauravwarale merged commit 5900649 into patterninc:CU-86dxezft7_Upgrade-tailwind-4-for-heimdall Aug 7, 2025
5 checks passed
@ryankshaw ryankshaw deleted the ry/tailwind branch August 7, 2025 18:16
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.

2 participants