chore: fix shadcn/ui not applying styling
https://stackoverflow.com/a/79431749 rebase
This commit is contained in:
parent
64feeaa877
commit
460b092a6f
6 changed files with 810 additions and 465 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
@tailwind base;
|
@import "tailwindcss";
|
||||||
@tailwind components;
|
@config "../../tailwind.config.ts";
|
||||||
@tailwind utilities;
|
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
:root {
|
:root {
|
||||||
|
|
@ -66,3 +65,25 @@
|
||||||
@apply bg-background text-foreground;
|
@apply bg-background text-foreground;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom scrollbar */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: hsl(var(--muted));
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: hsl(var(--border));
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: hsl(var(--muted-foreground));
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@
|
||||||
"prefix": ""
|
"prefix": ""
|
||||||
},
|
},
|
||||||
"aliases": {
|
"aliases": {
|
||||||
"components": "~/components",
|
"components": "@/components",
|
||||||
"utils": "~/lib/utils",
|
"utils": "@/lib/utils",
|
||||||
"ui": "~/components/ui",
|
"ui": "@/components/ui",
|
||||||
"lib": "~/lib",
|
"lib": "@/lib",
|
||||||
"hooks": "~/hooks"
|
"hooks": "@/hooks"
|
||||||
},
|
},
|
||||||
"iconLibrary": "lucide"
|
"iconLibrary": "lucide"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1221
package-lock.json
generated
1221
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -42,10 +42,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@remix-run/dev": "^2.16.8",
|
"@remix-run/dev": "^2.16.8",
|
||||||
|
"@tailwindcss/postcss": "^4.1.8",
|
||||||
"@types/react": "^19.1.6",
|
"@types/react": "^19.1.6",
|
||||||
"@types/react-dom": "^19.1.6",
|
"@types/react-dom": "^19.1.6",
|
||||||
|
"autoprefixer": "^10.4.21",
|
||||||
"eslint": "^9.28.0",
|
"eslint": "^9.28.0",
|
||||||
"tailwindcss": "^3.4.17",
|
"tailwindcss": "^4.1.8",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.3",
|
||||||
"vite": "^6.3.5",
|
"vite": "^6.3.5",
|
||||||
"vite-tsconfig-paths": "^5.1.4"
|
"vite-tsconfig-paths": "^5.1.4"
|
||||||
|
|
|
||||||
6
postcss.config.ts
Normal file
6
postcss.config.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
export default {
|
||||||
|
plugins: {
|
||||||
|
"@tailwindcss/postcss": require("@tailwindcss/postcss"),
|
||||||
|
autoprefixer: require("autoprefixer"),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
import type { Config } from "tailwindcss";
|
import type { Config } from "tailwindcss";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
darkMode: ["class"],
|
darkMode: "class",
|
||||||
content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
|
content: [
|
||||||
|
"./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}",
|
||||||
|
"./app/**/*.{js,jsx,ts,tsx}",
|
||||||
|
],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
borderRadius: {
|
borderRadius: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue