Skip to content

Commit e03d9e7

Browse files
committed
chore: upgrade to tailwind v4
1 parent e109191 commit e03d9e7

24 files changed

+1306
-1949
lines changed

package-lock.json

Lines changed: 981 additions & 1590 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
"type": "module",
1111
"postcss": {
1212
"plugins": {
13-
"postcss-import": {},
14-
"tailwindcss/nesting": "postcss-nesting",
15-
"tailwindcss": {},
16-
"autoprefixer": {}
13+
"@tailwindcss/postcss": {}
1714
}
1815
},
1916
"dependencies": {
@@ -69,7 +66,7 @@
6966
},
7067
"devDependencies": {
7168
"@mdx-js/react": "^2.3.0",
72-
"autoprefixer": "^10.4.14",
69+
"@tailwindcss/postcss": "^4.1.11",
7370
"cssnano": "^6.0.1",
7471
"dotenv": "^16.4.7",
7572
"esbuild-loader": "^4.3.0",
@@ -79,6 +76,7 @@
7976
"postcss-nesting": "^12.1.1",
8077
"reanalyze": "^2.16.0",
8178
"simple-functional-loader": "^1.2.1",
82-
"tailwindcss": "^3.3.3"
79+
"tailwindcss": "^4.1.11",
80+
"webpack": "^5.100.2"
8381
}
8482
}

pages/docs/react/latest/styling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ let make = (~active: bool) => {
114114
"text-red-600"
115115
}
116116
117-
<div className={`border-1 border-black ${activeClass}`}>
117+
<div className={`border border-black ${activeClass}`}>
118118
{React.string("Hello World")}
119119
</div>
120120
}

pages/docs/react/v0.10.0/styling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ let make = (~active: bool) => {
114114
"text-red-600"
115115
}
116116
117-
<div className={`border-1 border-black ${activeClass}`}>
117+
<div className={`border border-black ${activeClass}`}>
118118
{React.string("Hello World")}
119119
</div>
120120
}

pages/docs/react/v0.11.0/styling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ let make = (~active: bool) => {
114114
"text-red-600"
115115
}
116116
117-
<div className={`border-1 border-black ${activeClass}`}>
117+
<div className={`border border-black ${activeClass}`}>
118118
{React.string("Hello World")}
119119
</div>
120120
}

src/ApiDocs.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ module SidebarTree = {
207207
) ++ " md:block md:w-48 md:-ml-4 lg:w-1/5 md:h-auto md:relative overflow-y-visible bg-white"}>
208208
<aside
209209
id="sidebar-content"
210-
className="relative top-0 px-4 w-full block md:top-[7rem] md:pt-10 md:sticky border-r border-gray-20 overflow-y-auto pb-24 h-[calc(100vh-7rem)]">
210+
className="relative top-0 px-4 w-full block md:top-28 md:pt-10 md:sticky border-r border-gray-20 overflow-y-auto pb-24 h-[calc(100vh-7rem)]">
211211
<div className="flex justify-between">
212212
<div className="w-3/4 md:w-full"> React.null </div>
213213
<button
@@ -350,7 +350,7 @@ let default = (props: props) => {
350350
| Ok({module_: {items}}) if Array.length(items) > 0 =>
351351
<div className="hidden xl:block lg:w-1/5 md:h-auto md:relative overflow-y-visible bg-white">
352352
<aside
353-
className="relative top-0 pl-4 w-full block md:top-[7rem] md:pt-4 md:sticky border-l border-gray-20 overflow-y-auto pb-24 h-[calc(100vh-7rem)]">
353+
className="relative top-0 pl-4 w-full block md:top-28 md:pt-4 md:sticky border-l border-gray-20 overflow-y-auto pb-24 h-[calc(100vh-7rem)]">
354354
<div className="hl-overline block text-gray-80 mt-16 mb-2">
355355
{"Types and values"->React.string}
356356
</div>

src/Blog.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ module FeatureCard = {
142142
}
143143
<section
144144
className="flex sm:px-4 md:px-8 lg:px-0 flex-col justify-end lg:flex-row sm:items-center h-full">
145-
<div className="w-full h-full sm:self-start md:self-auto max-h-[25.4375rem]">
145+
<div className="w-full h-full sm:self-start md:self-auto max-h-101.75">
146146
<Link href={`/blog/${slug}`} className="relative block pt-2/3">
147147
{switch badge {
148148
| Some(badge) =>
@@ -262,7 +262,7 @@ let default = (props: props): React.element => {
262262

263263
<>
264264
<div className="hidden sm:flex justify-center ">
265-
<div className="my-16 w-full max-w-[12rem]">
265+
<div className="my-16 w-full max-w-48">
266266
<CategorySelector selected=category />
267267
</div>
268268
</div>
@@ -284,7 +284,7 @@ let default = (props: props): React.element => {
284284
<main className="min-w-320 lg:align-center w-full lg:px-0 max-w-1280 pb-48">
285285
<MdxProvider components=MarkdownComponents.default>
286286
<div className="flex justify-center">
287-
<div className="w-full max-w-[66.625rem]"> content </div>
287+
<div className="w-full max-w-266.5"> content </div>
288288
</div>
289289
</MdxProvider>
290290
</main>

src/BlogArticle.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module BlogHeader = {
9393
)}
9494
<div className="flex flex-col md:flex-row mb-12">
9595
{Array.map(authors, author =>
96-
<div key=author.username className="mt-4 md:mt-0 md:ml-8 first:ml-0 min-w-[8.1875rem]">
96+
<div key=author.username className="mt-4 md:mt-0 md:ml-8 first:ml-0 min-w-32.75">
9797
<AuthorBox author />
9898
</div>
9999
)->React.array}
@@ -102,7 +102,7 @@ module BlogHeader = {
102102
{switch articleImg {
103103
| Some(articleImg) =>
104104
<div className="-mx-8 sm:mx-0 sm:w-full bg-gray-5-tr md:mt-24">
105-
<img className="h-full w-full object-cover max-h-[33.625rem]" src=articleImg />
105+
<img className="h-full w-full object-cover max-h-134.5" src=articleImg />
106106
</div>
107107
| None =>
108108
<div className="max-w-740 w-full">

src/DocsOverview.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Card = {
22
@react.component
33
let make = (~title: string, ~hrefs: array<(string, string)>) => {
4-
<div className="max-w-[21rem] border border-gray-10 bg-gray-5 px-5 py-8 rounded-lg">
4+
<div className="max-w-84 border border-gray-10 bg-gray-5 px-5 py-8 rounded-lg">
55
<h2 className="font-bold text-24 mb-4"> {React.string(title)} </h2>
66
<ul>
77
{Array.map(hrefs, ((text, href)) =>

src/Packages.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ let default = (props: props) => {
489489
className="flex justify-between min-w-320 px-4 pt-16 lg:align-center w-full lg:px-8 pb-48">
490490
<MdxProvider components=MarkdownComponents.default>
491491
<main className="max-w-1280 w-full flex justify-center">
492-
<div className="w-full max-w-[44.0625rem]">
492+
<div className="w-full max-w-176.25">
493493
<H1> {React.string("Libraries & Bindings")} </H1>
494494
<SearchBox
495495
placeholder="Enter a search term, name, keyword, etc"

0 commit comments

Comments
 (0)