Convert from styled-components to Tailwind CSS v4#1143
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Install tailwindcss and @tailwindcss/postcss - Remove styled-components and styled-normalize - Create postcss.config.mjs for Tailwind v4 - Create styles/globals.css with normalize + component styles - Convert all styled-components to className-based JSX - Remove ServerStyleSheet SSR setup from _document - Remove styledComponents compiler option from next.config.ts Co-authored-by: kachkaev <608862+kachkaev@users.noreply.github.com>
Co-authored-by: kachkaev <608862+kachkaev@users.noreply.github.com>
…ader weight / page width / paragraph spacing Co-authored-by: kachkaev <608862+kachkaev@users.noreply.github.com>
All three items addressed in 75c9bad:
|
…n for header spacing Co-authored-by: kachkaev <608862+kachkaev@users.noreply.github.com>
All three items addressed in d256ef6:
|
|
@copilot Still seeing 520px for inner width. Just confirmed in https://njt-r36ybi3ev-alexander-kachkaevs-projects.vercel.app/ Term Once you've fixed that, go through as many named classes as you can and convert them into utility classes inside the markup. We want the project look like as if it was created with TailwindCSS v4 from scratch. If you need to, extract css variables to refer to 'theme' colors (shadcn naming convention). Note that we want to keep supporting both dark and light modes, so all colors should refer to theme vars. |
|
@copilot I'm ot seeing any changes from your prev. work session. Please try again |
|
@copilot update branch, resolve conflicts |
… utility classes with CSS custom properties Co-authored-by: kachkaev <608862+kachkaev@users.noreply.github.com>
Branch updated and conflicts resolved in c38c733. Also addressed the outstanding feedback from previous sessions:
|
|
@copilot give this PR another try |
…, pnpm 10.33.0, typescript 6) Agent-Logs-Url: https://github.com/kachkaev/njt/sessions/55d79813-d230-4114-b93e-0b838b49fa4b
|
@copilot I still see that this pr is 37 commits behind + there are conflicts in package.json / pnpm-lock.yaml. Needs fixing. merge latest main into this branch (don't rebase / amend / force-push). |
Merged latest main (37 commits) into the branch in 5032d65. Resolved conflicts in |








tailwindcss,@tailwindcss/postcss) and configure PostCSS@import "tailwindcss", CSS custom properties for theme colors (shadcn convention), base styles, dark mode viaprefers-color-schemenext.config.tsto removestyledComponentscompiler option_document.page.tsxto removeServerStyleSheetSSR setup_app.page.tsxto import global CSS instead of styled PageLayoutstyled-componentsandstyled-normalizefrom dependencies^)package.json→postcss35emto560pxso[destination]fits in input placeholder--color-*) for all theme colors supporting light/dark modes💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.