Skip to content

Commit

Permalink
adding custom buttons using shadcn in astro OCT-11
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeem996 committed Jan 8, 2025
1 parent eb0fb52 commit af110b0
Show file tree
Hide file tree
Showing 14 changed files with 1,080 additions and 106 deletions.
16 changes: 11 additions & 5 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// @ts-check
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({});
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
export default defineConfig({
// ...
integrations: [// ...
react(),
tailwind({
applyBaseStyles: false,
}),],
});
21 changes: 21 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/styles/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.1.2"
"@astrojs/react": "^4.1.2",
"@astrojs/tailwind": "^5.1.4",
"@radix-ui/react-avatar": "^1.1.2",
"@radix-ui/react-slot": "^1.1.1",
"@shadcn/ui": "^0.0.4",
"@types/react": "^19.0.3",
"@types/react-dom": "^19.0.2",
"astro": "^5.1.2",
"lucide-react": "^0.469.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwind-merge": "^2.6.0"
},
"devDependencies": {
"autoprefixer": "^10.4.20",
Expand Down
Loading

0 comments on commit af110b0

Please sign in to comment.