rem42 / shadcn-admin-ui
Tailwind CSS + shadcn/ui (Symfony UX Toolkit) admin theme for Sylius Stack, a drop-in alternative to sylius/bootstrap-admin-ui.
Package info
github.com/rem42/shadcn-admin-ui
Language:Twig
Type:symfony-bundle
pkg:composer/rem42/shadcn-admin-ui
Requires
- php: >=8.4
- knplabs/knp-menu-bundle: ^3.0
- pagerfanta/twig: ^4.6
- sylius/admin-ui: ^0.14
- sylius/grid-bundle: ^1.16
- sylius/resource-bundle: ^1.13
- sylius/twig-extra: ^0.14
- sylius/twig-hooks: ^0.14
- symfony/asset: ^7.4 || ^8.0
- symfony/asset-mapper: ^7.4 || ^8.0
- symfony/form: ^7.4 || ^8.0
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/security-bundle: ^7.4 || ^8.0
- symfony/stimulus-bundle: ^3.5
- symfony/ux-icons: ^3.5
- symfony/ux-twig-component: ^3.5
- symfonycasts/tailwind-bundle: ^1.0
- tales-from-a-dev/twig-tailwind-extra: ^1.3
- twig/extra-bundle: ^3.24
- twig/html-extra: ^3.24
Requires (Dev)
- doctrine/doctrine-bundle: ^2.13 || ^3.0
- doctrine/orm: ^3.4
- pagerfanta/doctrine-orm-adapter: ^4.6
- phpunit/phpunit: ^11.5
- rem42/php-cs-fixer-config: ^4.1
- sylius/ui-translations: ^0.14
- symfony/browser-kit: ^7.4 || ^8.0
- symfony/console: ^7.4 || ^8.0
- symfony/css-selector: ^7.4 || ^8.0
- symfony/translation: ^7.4 || ^8.0
- symfony/twig-bundle: ^7.4 || ^8.0
- symfony/ux-toolkit: ^3.6
- symfony/validator: ^7.4 || ^8.0
- symfony/yaml: ^7.4 || ^8.0
- vincentlanglet/twig-cs-fixer: ^4.1
Suggests
- pagerfanta/doctrine-orm-adapter: For grids backed by Doctrine ORM
- rem42/sylius-admin-kit-bundle: Quick filters, environment indicator and searchable entity filters
- symfony/ux-autocomplete: For autocomplete form fields
- symfony/ux-live-component: For Live Component based forms
- symfony/workflow: For the apply_transition grid action
Provides
None
Conflicts
- behat/transliterator: <1.5
- twig/twig: 3.29.0
Replaces
None
README
Shadcn Admin UI for Sylius Stack
Tailwind CSS v4 + shadcn/ui admin theme for Sylius Stack
A drop-in alternative to sylius/bootstrap-admin-ui: same hooks, same macros, a modern look.
Installation · Configuration · Theming · Grids · Menu · Components · Migration
Why this theme?
| Feature | Details | |
|---|---|---|
| 🔁 | Drop-in replacement | Same hook and hookable names as BootstrapAdminUi: your sylius_twig_hooks customisations keep working. |
| 🧩 | Same macro APIs | button, breadcrumbs, header, table, pagination, dropdown…: just change the namespace. |
| 🧭 | shadcn sidebar | Collapsible to icons, Ctrl/⌘ + B, state kept in a cookie, drawer on mobile, 3 variants. |
| 📊 | Grids | Sorting, filters, pagination, selection + bulk delete, card layout on mobile. |
| 🎨 | shadcn tokens | Paste a theme from ui.shadcn.com/themes or tweakcn. Dark mode included. |
| 📦 | 100% AssetMapper | No Node, no Webpack: Tailwind runs through symfonycasts/tailwind-bundle. |
Quick start
Important
sylius/bootstrap-admin-ui can be installed alongside, but never enable both bundles in the same kernel.
composer require rem42/shadcn-admin-ui
# config/packages/rem42_shadcn_admin_ui.yaml imports: - { resource: '@Rem42ShadcnAdminUiBundle/config/app.php' }
/* assets/styles/admin.css */ @import "tailwindcss"; @import "../../vendor/rem42/shadcn-admin-ui/assets/styles/theme.css";
php bin/console tailwind:build assets/styles/admin.css --watch
Then follow the installation guide for the JavaScript entrypoint, icons and UX Autocomplete.
Requirements
| Package | Version |
|---|---|
| PHP | 8.4+ |
| Symfony | 7.4 LTS or 8.x |
Sylius Stack (sylius/admin-ui, twig-hooks, twig-extra) |
0.14 |
Symfony UX (ux-twig-component, stimulus-bundle, ux-icons) |
3.5+ (required by the shadcn kit: provide() / inject()) |
symfonycasts/tailwind-bundle |
1.x (Tailwind CSS v4) |
Documentation
| Guide | You will learn to… |
|---|---|
| 📥 Installation | Install the bundle, build the stylesheet, wire the entrypoint, icons, Autocomplete |
| ⚙️ Configuration | Configure the bundle: sidebar variant, branding, paths |
| 🎨 Theming | Change colors, radius and font, use the tone palette, dark mode |
| 📊 Grids | Tune columns, mobile cards |
| 🧭 Menu | Build the sidebar menu: sections, collapsible items, headers, external links |
| 🧩 Components | Use shadcn components, Sylius components, macros, Stimulus controllers, form theme |
| 🔀 Migration | Move an existing project from BootstrapAdminUi |
| 🛠️ Contributing | Run the demo application, the tests, and update the shadcn recipes |
Try the demo
git clone git@github.com:rem42/shadcn-admin-ui.git && cd shadcn-admin-ui composer install make up # http://localhost:8080/admin (admin / admin)
A book CRUD with filters, quick filters, bulk delete, forms and a dashboard, on SQLite. See Contributing.
License
MIT. Includes the shadcn kit recipes from Symfony UX Toolkit (MIT), tw-animate-css (MIT) and
shadcn/tailwind.css (MIT).