Skip to content

[bug]: Bugged styling in React Vite project #8542

@mulaRahul

Description

@mulaRahul

Describe the bug

In a react vite project created following the docs, the Button, Sidebar and other components styling is unsual/missing.

Affected component/components

Button, Sidebar

How to reproduce

  1. Follow steps in getting started guide for vite from shadcn docs.
  2. Add button component or sidebar block npx shadcn@latest add dashboard-01
  3. View the unusual styling.

Codesandbox/StackBlitz link

No response

Logs

System Info

OS: Windows 11
Browser: Chrome 141.0.7390.108 (Official Build) (64-bit)
---
npm: 11.4.2
---
packages
├── @eslint/[email protected]
├── @radix-ui/[email protected]
├── @radix-ui/[email protected]
├── @radix-ui/[email protected]
├── @radix-ui/[email protected]
├── @radix-ui/[email protected]
├── @radix-ui/[email protected]
├── @tailwindcss/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @vitejs/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions