Astro
Start using Wedges with Astro.
Setting up Astro
Create project
To set up a new Astro project, run the following command in your terminal:
More information can be found in the official Astro Documentation.
Configure project
The system will prompt you with several configuration queries:
After the installation is complete, navigate to your project directory:
Add React and Tailwind
To install React and Tailwind CSS, run the following command:
Setting up Wedges
Install Wedges
Configure Tailwind CSS
Update your tailwind.config.mjs
file to add the necessary configuration for Wedges:
Setup pnpm (optional)
If you’re using pnpm, add the following line to your .npmrc
file:
This ensures that pnpm correctly handles dependencies for Wedges, allowing necessary packages to be accessible at the top level of your node_modules.
After updating, run pnpm install
again to reconfigure your dependencies correctly.
Using the components
That’s all. You can now start using the components in your application.