layouts-vulpix-pack-project
v1.0.0
Published

Readme
Potidev - React Vulpix Pack
Description
TODO...
Setup
Setup Shadcn/ui in Vulpix Pack
- Install Shadcn/ui dependencies:
npm install tailwindcss-animate class-variance-authority clsx tailwind-merge lucide-react @potidev/react-vulpix-packnpm install -D tailwindcss postcss autoprefixer- Configure the path aliases in your
tsconfig.jsonfile.
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
}
}
}Configure
tailwind.config.js. Here's what ours file looks like: tailwind.config.js.Configure
postcss.config.js. Here's what ours file looks like: postcss.config.js.Add the following to your global.css file and import. You can learn more about using CSS variables for theming in the theming section of shadcn ui doc.
Add this line in your global.css to tailwind detect the classes from vulpix like this documentation:
@source "../node_modules/@potidev/react-vulpix-pack";
@source "../node_modules/@potidev/layouts-vulpix-pack";- If you are on a NextJS project, add these lines in your
next.config.js:
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
transpilePackages: ["@potidev/react-vulpix-pack", "@potidev/layouts-vulpix-pack"],
// Other settings...
};
export default nextConfig;To use dark-mode, follow the shadcn-ui documentation.
In the original shadcn-ui documentation, there are other steps that are not necessary when using the vulpix pack. That's it.
