Skip to content

feat: updgrade tailwind css to v4 #7589

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@
"@octokit/rest": "^21.1.1",
"@pmmmwh/react-refresh-webpack-plugin": "next",
"@svgr/webpack": "^8.1.0",
"autoprefixer": "^10.4.21",
"@tailwindcss/postcss": "^4.0.14",
"babel-loader": "^10.0.0",
"copy-webpack-plugin": "^13.0.0",
"css-loader": "^7.1.2",
@@ -136,7 +136,7 @@
"sitemap-static": "^0.4.2",
"static-site-generator-webpack-plugin": "^3.4.1",
"style-loader": "^4.0.0",
"tailwindcss": "^3.4.16",
"tailwindcss": "^4.0.14",
"tap-spot": "^1.1.2",
"unist-util-visit": "^5.0.0",
"webpack": "^5.97.1",
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
plugins: [require('tailwindcss'), require('autoprefixer')],
plugins: [require('@tailwindcss/postcss')],
};
2 changes: 1 addition & 1 deletion src/components/Configuration/components.js
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ export class Details extends Component {
position={['right', 'top']}
padding={0}
onClickOutside={this.clickOutsideHandler}
containerClassName={'shadow'}
containerClassName={'shadow-sm'}
content={<Card body={content} />}
>
<span
2 changes: 1 addition & 1 deletion src/components/Contributors/Contributors.jsx
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ function Contributor({ contributor, inView }) {
height={45}
alt={contributor}
title={contributor}
className="w-full rounded-full shadow"
className="w-full rounded-full shadow-sm"
src={
inView ? `https://github.com/${contributor}.png?size=90` : SmallIcon
}
4 changes: 2 additions & 2 deletions src/components/Navigation/Navigation.jsx
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ function NavigationItem({ children, url, isactive, ariaLabel }) {
<NavLink
{...obj}
className={({ isActive }) =>
isActive ? `${classes} !text-blue-200` : classes
isActive ? `${classes} text-blue-200!` : classes
}
to={url}
aria-label={ariaLabel}
@@ -232,7 +232,7 @@ function Navigation({ links, pathname, hash = '', toggleSidebar }) {
title={child.title}
className={() =>
isActive
? `!text-black dark:!text-white ${classNames}`
? `text-black! dark:text-white! ${classNames}`
: classNames
}
>
2 changes: 1 addition & 1 deletion src/components/NotificationBar/MessageBar.jsx
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ export default function MessageBar(props) {
<>
{listTransitions((styles) => (
<animated.div
className="flex items-center rounded z-50 fixed left-[1px] right-[1px] bottom-[1px] bg-white border-2 border-solid border-gray-700 max-w-full pl-20 py-20 shadow-2xl md:left-20 md:right-auto md:bottom-20 md:max-w-[300px] dark:bg-gray-500 print:hidden"
className="flex items-center rounded-sm z-50 fixed left-[1px] right-[1px] bottom-[1px] bg-white border-2 border-solid border-gray-700 max-w-full pl-20 py-20 shadow-2xl md:left-20 md:right-auto md:bottom-20 md:max-w-[300px] dark:bg-gray-500 print:hidden"
style={styles}
>
<Content />
2 changes: 1 addition & 1 deletion src/components/Page/Page.jsx
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ export default function Page(props) {

{loadContributors && (
<div data-testid="contributors" className="print:hidden">
<h2 className="!font-sans !font-normal">
<h2 className="font-sans! font-normal!">
{numberOfContributors}{' '}
{numberOfContributors === 1 ? 'Contributor' : 'Contributors'}
</h2>
2 changes: 1 addition & 1 deletion src/components/Tooltip/Tooltip.jsx
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ const Tooltip = ({
{isVisible && (
<div
className={`
absolute z-[9999]
absolute z-9999
${positions[position]}
${isDelayed ? 'opacity-100' : 'opacity-0'}
transition-opacity duration-200
371 changes: 128 additions & 243 deletions yarn.lock

Large diffs are not rendered by default.