Download the PHP package irajul/filament-shadcn-theme without Composer

On this page you can find all versions of the php package irajul/filament-shadcn-theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-shadcn-theme

Filament Shadcn Theme

A configurable shadcn-inspired theme plugin for Filament v5 panels.

Latest Version on Packagist Total Downloads PHP Version Require Tests

The package maps shadcn-style tokens onto Filament's generated HTML, so it can theme navigation, topbar, cards, forms, tables, pagination, checkboxes, empty states, modals, dropdowns, widgets, and light/dark mode without requiring a Vite asset build.

Features

Requirements

Installation

Install the package with Composer:

The package is auto-discovered by Laravel. Register the plugin on each Filament panel that should use the theme.

Defaults

The default package look is intentionally sharp and shadcn-like:

You may change defaults in config/filament-shadcn-theme.php, or override them fluently in the panel provider.

Configuration Options

Style

Controls density, spacing, table rhythm, sidebar spacing, card padding, and radius personality.

Available values:

String values: vega, nova, maia, lyra, mira, luma, sera.

Base Color

Controls neutral surfaces, borders, text, sidebar background, muted text, and table backgrounds.

Available values:

String values: neutral, stone, zinc, mauve, olive, mist, taupe.

Theme Color

Controls primary buttons, active navigation, focus rings, and primary accents.

Available values:

String values: neutral, stone, zinc, mauve, olive, mist, taupe, amber, blue, cyan, emerald, fuchsia, green, indigo, lime, orange, pink, purple, red, rose, sky, teal, violet, yellow.

Chart Color

Controls --chart-* tokens. If omitted, the chart palette follows theme_color.

Font And Heading Font

Controls the generated --font-sans and --font-heading tokens. The panel font is also applied through Filament by default.

Built-in font keys:

Any custom font family string is accepted:

Use heading_font => inherit or ->headingFont('inherit') to keep headings on the body font stack.

Radius

Controls shadcn radius tokens and component corners.

Available values:

String values: default, none, small, medium, large.

For the sharp Lyra look, use Radius::None.

Icon Library

Currently stored as a CSS metadata token so the same config can support icon-library-specific styling later.

Available values:

String values: lucide, heroicons, tabler, phosphor, radix.

CSS Mode

Controls how generated CSS is delivered.

Available values:

String values: inline, cached-asset.

inline injects a generated <style> tag into the Filament panel and is the default because it requires no writable public directory. cached-asset writes a hashed stylesheet to public/vendor/filament-shadcn-theme and injects a <link> tag instead.

You can warm or clear cached CSS assets from Artisan:

Menu Color

Controls sidebar color treatment.

Available values:

String values: default, inverted, default-translucent, inverted-translucent.

Menu Accent

Controls active navigation intensity.

Available values:

String values: subtle, bold.

Sidebar Variant

Controls sidebar offset, border, radius, and shadow.

Available values:

String values: sidebar, floating, inset.

Surface Shadow

Controls shared panel and floating surface shadow tokens.

Available values:

String values: none, xs, sm, md.

Advanced Overrides

Use token overrides when you want to change shadcn tokens directly.

Use style variables for layout and density adjustments.

Use selector overrides if your Filament build or custom plugin outputs a different class.

Config File Example

After publishing config, edit config/filament-shadcn-theme.php:

Then register the plugin with no extra arguments:

Testing The Package

Package tests live inside this package, not in the host Laravel app.

The tests are intentionally standalone. They exercise configuration hydration, fluent plugin configuration, shadcn token rendering, Filament selector coverage, light/dark token output, and the exposed option enums without relying on a host application's test case.

Contributing

Issues and pull requests are welcome. Please read CONTRIBUTING.md before opening larger changes so setup, tests, and release expectations stay predictable.

Security

Please do not open public issues for suspected vulnerabilities. Follow the private reporting process in SECURITY.md.

Releasing

Before tagging a release:

Then create the GitHub release and publish the tag to Packagist. Packagist reads versions from Git tags, so keep the version field out of composer.json.

For Packagist, submit the public GitHub repository URL once and enable the Packagist GitHub hook or application sync. No GitHub Action is required for Packagist updates; the hook updates the package when tags are pushed.

Notes


All versions of filament-shadcn-theme with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^5.0
illuminate/support Version ^12.0 || ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package irajul/filament-shadcn-theme contains the following files

Loading the files please wait ...