Skip to content

Commit 786f9e8

Browse files
chore: update tailwind and related dependencies to latest versions (#7984)
1 parent 0c5dd7f commit 786f9e8

13 files changed

Lines changed: 328 additions & 284 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ updates:
88
labels:
99
- dependencies
1010
versioning-strategy: widen
11-
ignore:
12-
- dependency-name: "tailwindcss"
1311
groups:
1412
dependencies:
1513
patterns:

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@
9898
"@octokit/rest": "^22.0.1",
9999
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.2",
100100
"@svgr/webpack": "^8.1.0",
101+
"@tailwindcss/postcss": "^4.2.1",
101102
"@testing-library/dom": "^10.4.1",
102103
"@testing-library/react": "^16.3.2",
103-
"autoprefixer": "^10.4.24",
104+
"autoprefixer": "^10.4.27",
104105
"babel-loader": "^10.1.1",
105106
"copy-webpack-plugin": "^14.0.0",
106107
"css-loader": "^7.1.3",
@@ -132,7 +133,7 @@
132133
"mkdirp": "^3.0.1",
133134
"modularscale-sass": "^3.0.3",
134135
"npm-run-all": "^4.1.1",
135-
"postcss": "^8.5.6",
136+
"postcss": "^8.5.8",
136137
"postcss-loader": "^8.2.0",
137138
"prettier": "^3.8.1",
138139
"react-refresh": "^0.18.0",
@@ -152,7 +153,7 @@
152153
"sitemap-static": "^0.4.2",
153154
"static-site-generator-webpack-plugin": "^3.4.1",
154155
"style-loader": "^4.0.0",
155-
"tailwindcss": "^3.4.16",
156+
"tailwindcss": "^4.2.1",
156157
"tap-spot": "^1.1.2",
157158
"unist-util-visit": "^5.1.0",
158159
"webpack": "^5.105.0",

postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
22

33
module.exports = {
4-
plugins: [require("tailwindcss"), require("autoprefixer")],
4+
plugins: ["@tailwindcss/postcss", "autoprefixer"],
55
};

src/components/Dropdown/Dropdown.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
margin: 0;
1212
padding: 0;
1313
font-size: inherit;
14+
display: flex;
15+
align-items: center;
1416
}
1517
}
1618

@@ -21,6 +23,7 @@
2123
}
2224

2325
.dropdown__arrow {
26+
line-height: 1;
2427
&:before {
2528
content: "\25be";
2629
}

src/components/Footer/Footer.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../../styles/partials/vars" as *;
2+
@use "sass:color";
13
@use "../../styles/partials/mixins" as *;
24
@use "../../styles/partials/functions" as *;
35

@@ -63,6 +65,7 @@
6365

6466
img {
6567
width: auto;
68+
display: inline-block;
6669
height: 100%;
6770
}
6871
}
@@ -94,12 +97,16 @@
9497

9598
img {
9699
width: auto;
100+
display: inline-block;
97101
height: 100%;
98102
margin-left: 1rem;
99103
}
100104
}
101105

102106
.footer__top {
107+
a {
108+
color: $text-color-highlight;
109+
}
103110
max-width: 900px;
104111
margin: 0 auto;
105112
text-align: center;

src/components/Markdown/Markdown.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ $topHeightMobileWithBanner: $bannerHeight + $topHeightMobile;
125125
ul,
126126
ol {
127127
padding-left: 30px;
128+
list-style: revert;
128129

129130
&:first-child {
130131
margin-top: 0;

src/components/Navigation/Navigation.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function Navigation({ links, pathname, hash = "", toggleSidebar }) {
240240
>
241241
{link.children.map((child) => {
242242
const classNames =
243-
"text-blue-400 py-5 text-sm capitalize hover:text-black dark:hover:text-white";
243+
"text-blue-400 dark:text-[#69a8ee] py-5 text-sm capitalize hover:text-black dark:hover:text-white";
244244
const isActive = location.pathname.startsWith(child.url);
245245
return (
246246
<NavLink

src/components/SplashViz/SplashViz.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import "./SplashViz.scss";
1414
export default class SplashViz extends Component {
1515
render() {
1616
return (
17-
<section className="splash-viz dark:bg-gray-900">
17+
<section className="splash-viz dark:bg-gray-900!">
1818
<h1 className="splash-viz__heading">
1919
<span> bundle your</span>
2020
<TextRotator delay={5000} repeatDelay={5000} maxWidth={110}>

src/styles/dark.scss

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,13 @@
112112
.footer__inner {
113113
border-color: #252525;
114114
}
115-
a,
116-
button.as-link {
117-
color: #69a8ee;
118-
}
119115
.page-links__gap {
120116
color: #999;
121117
}
122118
.sidebar-item__toggle,
123119
.sidebar-item--disabled .sidebar-item__toggle {
124120
color: #69a8ee;
125121
}
126-
.sidebar-item__anchor a:hover,
127-
a:hover {
128-
color: #82b7f6;
129-
}
130122
.site {
131123
background: #121212 !important;
132124
}
@@ -174,3 +166,17 @@
174166
color: white;
175167
}
176168
}
169+
170+
@layer base {
171+
[data-theme="dark"] a,
172+
[data-theme="dark"] button.as-link {
173+
color: #69a8ee;
174+
}
175+
}
176+
177+
@layer base {
178+
[data-theme="dark"] .sidebar-item__anchor a:hover,
179+
[data-theme="dark"] a:hover {
180+
color: #82b7f6;
181+
}
182+
}

src/styles/index.scss

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
@use "partials/vars" as *;
33
@use "partials/functions" as *;
44
@use "partials/mixins" as *;
5-
@use "./reset";
65
@use "dark";
76

87
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600&family=Source+Sans+Pro:ital,wght@0,400;0,600;1,400&family=Source+Serif+Pro:wght@600&display=swap");
@@ -32,36 +31,38 @@ body {
3231
[aria-hidden="true"]:hover .header-link {
3332
visibility: visible;
3433
}
35-
a,
36-
button.as-link {
37-
color: $text-color-highlight;
38-
text-decoration: none;
39-
transition: color 250ms;
34+
@layer base {
35+
a,
36+
button.as-link {
37+
color: $text-color-highlight;
38+
text-decoration: none;
39+
transition: color 250ms;
4040

41-
&.icon-link {
42-
display: inline-block;
43-
font-size: 0.7em;
44-
margin-left: 16px;
45-
transform: rotate(-45deg);
41+
&.icon-link {
42+
display: inline-block;
43+
font-size: 0.7em;
44+
margin-left: 16px;
45+
transform: rotate(-45deg);
46+
47+
color: color.adjust(getColor(dusty-grey), $lightness: 10%);
48+
&:hover {
49+
color: $text-color-highlight;
50+
}
51+
}
4652

47-
color: color.adjust(getColor(dusty-grey), $lightness: 10%);
4853
&:hover {
49-
color: $text-color-highlight;
54+
color: color.adjust(getColor(denim), $lightness: -5%);
5055
}
5156
}
5257

53-
&:hover {
54-
color: color.adjust(getColor(denim), $lightness: -5%);
58+
::selection {
59+
background: color.adjust(getColor(malibu), $alpha: -0.65);
5560
}
56-
}
5761

58-
::selection {
59-
background: color.adjust(getColor(malibu), $alpha: -0.65);
60-
}
61-
62-
.language-diff {
63-
.token.prefix.inserted,
64-
.token.prefix.deleted {
65-
user-select: none;
62+
.language-diff {
63+
.token.prefix.inserted,
64+
.token.prefix.deleted {
65+
user-select: none;
66+
}
6667
}
6768
}

0 commit comments

Comments
 (0)