Skip to content

Commit 63cee1d

Browse files
committed
chore: update Tailwind CSS dependencies and improve mobile TOC styles
- Added `@tailwindcss/postcss` and updated existing Tailwind CSS packages to version 4.1.18. - Enhanced mobile Table of Contents button and overlay styles for better visibility and user experience. - Adjusted z-index values to ensure proper layering of components in the mobile view.
1 parent 389379f commit 63cee1d

4 files changed

Lines changed: 82 additions & 5 deletions

File tree

bun.lock

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

packages/docs/components/docs/toc.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ export function MobileTOC({ items = [] }: TableOfContentsProps) {
9292
<>
9393
<button
9494
onClick={() => setOpen(true)}
95-
className="xl:hidden flex items-center gap-2 w-full mb-4 p-3 rounded-xl bg-background/50 dark:bg-background/30 backdrop-blur-md border border-white/10 dark:border-white/5 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-all"
95+
className="xl:hidden flex items-center z-50 gap-2 w-full mb-4 p-3 rounded-xl bg-background/50 dark:bg-background/30 backdrop-blur-md border border-white/10 dark:border-white/5 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-all"
9696
>
9797
<List className="h-4 w-4 shrink-0" />
9898
On this page
9999
</button>
100100

101101
{open && (
102-
<div className="xl:hidden fixed inset-0 z-[60]">
102+
<div className="xl:hidden fixed inset-0 z-[100]">
103103
<div
104104
className="fixed inset-0 bg-black/40 backdrop-blur-sm"
105105
onClick={() => setOpen(false)}
106106
/>
107-
<div className="fixed inset-x-0 top-0 z-[61] max-h-[70vh] overflow-auto rounded-b-2xl border-b border-x border-white/10 bg-background/95 dark:bg-background/90 backdrop-blur-xl shadow-xl">
107+
<div className="fixed inset-x-0 top-0 z-[101] max-h-[70vh] overflow-auto rounded-b-2xl border-b border-x border-white/10 bg-background/95 dark:bg-background backdrop-blur-xl shadow-xl">
108108
<div className="flex items-center justify-between p-4 border-b border-white/10">
109109
<span className="font-semibold text-sm">On this page</span>
110110
<button

playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"tailwind-merge": "^3.4.0"
2020
},
2121
"devDependencies": {
22+
"@tailwindcss/postcss": "^4.1.18",
2223
"@types/node": "^25",
2324
"@types/react": "^19",
2425
"tailwindcss": "4.1.18",

playground/postcss.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/** @type {import('postcss-load-config').Config} */
22
const config = {
33
plugins: {
4-
tailwindcss: {},
5-
autoprefixer: {},
4+
"@tailwindcss/postcss": {},
65
},
76
};
87

0 commit comments

Comments
 (0)