Skip to content

Commit 4c5372d

Browse files
committed
feat: updgrade tailwind css to v4
1 parent 982492a commit 4c5372d

File tree

9 files changed

+138
-253
lines changed

9 files changed

+138
-253
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"@octokit/rest": "^21.1.1",
8585
"@pmmmwh/react-refresh-webpack-plugin": "next",
8686
"@svgr/webpack": "^8.1.0",
87-
"autoprefixer": "^10.4.21",
87+
"@tailwindcss/postcss": "^4.0.14",
8888
"babel-loader": "^10.0.0",
8989
"copy-webpack-plugin": "^13.0.0",
9090
"css-loader": "^7.1.2",
@@ -136,7 +136,7 @@
136136
"sitemap-static": "^0.4.2",
137137
"static-site-generator-webpack-plugin": "^3.4.1",
138138
"style-loader": "^4.0.0",
139-
"tailwindcss": "^3.4.16",
139+
"tailwindcss": "^4.0.14",
140140
"tap-spot": "^1.1.2",
141141
"unist-util-visit": "^5.0.0",
142142
"webpack": "^5.97.1",

postcss.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
plugins: [require('tailwindcss'), require('autoprefixer')],
2+
plugins: [require('@tailwindcss/postcss')],
33
};

src/components/Configuration/components.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class Details extends Component {
8181
position={['right', 'top']}
8282
padding={0}
8383
onClickOutside={this.clickOutsideHandler}
84-
containerClassName={'shadow'}
84+
containerClassName={'shadow-sm'}
8585
content={<Card body={content} />}
8686
>
8787
<span

src/components/Contributors/Contributors.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Contributor({ contributor, inView }) {
2020
height={45}
2121
alt={contributor}
2222
title={contributor}
23-
className="w-full rounded-full shadow"
23+
className="w-full rounded-full shadow-sm"
2424
src={
2525
inView ? `https://github.com/${contributor}.png?size=90` : SmallIcon
2626
}

src/components/Navigation/Navigation.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function NavigationItem({ children, url, isactive, ariaLabel }) {
5454
<NavLink
5555
{...obj}
5656
className={({ isActive }) =>
57-
isActive ? `${classes} !text-blue-200` : classes
57+
isActive ? `${classes} text-blue-200!` : classes
5858
}
5959
to={url}
6060
aria-label={ariaLabel}
@@ -232,7 +232,7 @@ function Navigation({ links, pathname, hash = '', toggleSidebar }) {
232232
title={child.title}
233233
className={() =>
234234
isActive
235-
? `!text-black dark:!text-white ${classNames}`
235+
? `text-black! dark:text-white! ${classNames}`
236236
: classNames
237237
}
238238
>

src/components/NotificationBar/MessageBar.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function MessageBar(props) {
2727
<>
2828
{listTransitions((styles) => (
2929
<animated.div
30-
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"
30+
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"
3131
style={styles}
3232
>
3333
<Content />

src/components/Page/Page.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default function Page(props) {
136136

137137
{loadContributors && (
138138
<div data-testid="contributors" className="print:hidden">
139-
<h2 className="!font-sans !font-normal">
139+
<h2 className="font-sans! font-normal!">
140140
{numberOfContributors}{' '}
141141
{numberOfContributors === 1 ? 'Contributor' : 'Contributors'}
142142
</h2>

src/components/Tooltip/Tooltip.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Tooltip = ({
4141
{isVisible && (
4242
<div
4343
className={`
44-
absolute z-[9999]
44+
absolute z-9999
4545
${positions[position]}
4646
${isDelayed ? 'opacity-100' : 'opacity-0'}
4747
transition-opacity duration-200

yarn.lock

+128-243
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)