shadcn-admin README

The project's README from github.com/satnaing/shadcn-admin. As one markdown file: README.md.

Shadcn Admin Dashboard

Admin Dashboard UI crafted with Shadcn and Vite. Built with responsiveness and accessibility in mind.

alt text

Sponsored by Clerk

I've been creating dashboard UIs at work and for my personal projects. I always wanted to make a reusable collection of dashboard UI for future projects; and here it is now. While I've created a few custom components, some of the code is directly adapted from ShadcnUI examples.

This is not a starter project (template) though. I'll probably make one in the future.

Features

Customized Components (click to expand)

This project uses Shadcn UI components, but some have been slightly modified for better RTL (Right-to-Left) support and other improvements. These customized components differ from the original Shadcn UI versions.

If you want to update components using the Shadcn CLI (e.g., npx shadcn@latest add <component>), it's generally safe for non-customized components. For the listed customized ones, you may need to manually merge changes to preserve the project's modifications and avoid overwriting RTL support or other updates.

If you don't require RTL support, you can safely update the 'RTL Updated Components' via the Shadcn CLI, as these changes are primarily for RTL compatibility. The 'Modified Components' may have other customizations to consider.

Modified Components

  • scroll-area
  • sonner
  • separator

RTL Updated Components

  • alert-dialog
  • calendar
  • command
  • dialog
  • dropdown-menu
  • select
  • table
  • sheet
  • sidebar
  • switch

Notes:

  • Modified Components: These have general updates, potentially including RTL adjustments.
  • RTL Updated Components: These have specific changes for RTL language support (e.g., layout, positioning).
  • For implementation details, check the source files in src/components/ui/.
  • All other Shadcn UI components in the project are standard and can be safely updated via the CLI.

Tech Stack

UI: ShadcnUI (TailwindCSS + RadixUI)

Build Tool: Vite

Routing: TanStack Router

Type Checking: TypeScript

Linting/Formatting: ESLint & Prettier

Icons: Lucide Icons, Tabler Icons (Brand icons only)

Auth (partial): Clerk

Run Locally

Clone the project

  git clone https://github.com/satnaing/shadcn-admin.git

Go to the project directory

  cd shadcn-admin

Install dependencies

  pnpm install

Start the server

  pnpm run dev

Sponsoring this project ❤️

If you find this project helpful or use this in your own work, consider sponsoring me to support development and maintenance. You can buy me a coffee as well. Don’t worry, every penny helps. Thank you! 🙏

For questions or sponsorship inquiries, feel free to reach out at [email protected].

Current Sponsor

Author

Crafted with 🤍 by @satnaing

License

Licensed under the MIT License

shadcn-admin (satnaing/shadcn-admin)

Searching Database…

这是什么?一个用 Shadcn UI(TailwindCSS + Radix)和 Vite 搭建的开源后台管理面板界面——一套可复用的仪表盘页面集合,作者会在自己的项目里拿它来改造使用。
这是能直接用来生成项目的脚手架模板,还是已经做完的面板?它是一个完整、可直接克隆运行的 Web 应用,而不是脚手架。作者明确说明它不是入门模板,不过将来可能会做成模板。
我怎么在本地把它跑起来?克隆仓库,进入目录,安装依赖,然后启动 Vite 开发服务器(npm run dev)。仓库里还带有构建、预览、代码检查、格式化和 Vitest 测试的脚本。
它是基于什么做的——我需要准备什么特别的东西吗,比如注册个登录服务账号?技术栈是 Vite + React:Shadcn UI(TailwindCSS + Radix UI)、TanStack Router、TypeScript、ESLint/Prettier,以及 Lucide/Tabler 图标。登录功能有一部分接了 Clerk,所以这部分需要配置好 Clerk 才能用。
我能不能放心地用 Shadcn CLI 更新这些 Shadcn 组件?大体可以,但不能无脑更新。有几个组件(scroll-area、sonner、separator)做过修改,还有十个组件带有 RTL(从右到左布局)的修复,所以用 CLI 更新这些组件时可能需要手动合并改动,才能保留原来的调整。
开箱即用我能得到什么?10 多个页面,内置侧边栏和全局搜索命令、明暗模式切换、RTL 支持,还有额外的自定义组件——全都做到了响应式布局,并且照顾了无障碍访问。
作者为什么要做这个?他在工作和个人项目里反复需要做后台面板界面,于是想攒一套可复用的页面集合,以后做新项目时直接拿来用,而不用每次从零开始。
有没有测试或者代码质量方面的工具?有。仓库自带 Vitest 浏览器测试,还有 ESLint 和 Prettier 脚本,另外用 knip 来找出没被用到的代码。
Creator
satnaing
Size
2.9 MB
Stars
15.8K
Age
2y
Commits · 90 Days