chore(deps): remove radix-ui and install tailwind-scrollbar

Removed radix-ui as it's no longer needed. Installed tailwind-scrollbar for custom scrollbar
styling.
This commit is contained in:
2025-11-15 23:49:54 +08:00
parent ec99b0cf6a
commit c3ec7f70ee
3 changed files with 3 additions and 11 deletions

View File

@@ -13,6 +13,7 @@
"dependencies": { "dependencies": {
"@radix-ui/themes": "^3.2.1", "@radix-ui/themes": "^3.2.1",
"solid-js": "^1.9.10", "solid-js": "^1.9.10",
"tailwind-scrollbar": "^4.0.2",
"tailwindcss": "^4.1.17" "tailwindcss": "^4.1.17"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -1,11 +1,10 @@
@import 'tailwindcss'; @import 'tailwindcss';
@plugin 'tailwind-scrollbar'; @plugin 'tailwind-scrollbar';
@import "@radix-ui/themes/styles.css";
html, html,
body, body,
#root { #root {
@apply flex h-full w-full items-center; @apply flex h-full w-full items-center justify-center;
} }
@custom-variant dark (&:where(.dark, .dark *)); @custom-variant dark (&:where(.dark, .dark *));

View File

@@ -2,15 +2,7 @@
import { render } from 'solid-js/web'; import { render } from 'solid-js/web';
import './index.css'; import './index.css';
import App from './App.tsx'; import App from './App.tsx';
import { Theme } from '@radix-ui/themes';
const root = document.getElementById('root'); const root = document.getElementById('root');
render( render(() => <App />, root!);
() => (
<Theme>
<App />
</Theme>
),
root!
);