Download the PHP package alenadashko/filament-color-themes without Composer

On this page you can find all versions of the php package alenadashko/filament-color-themes. 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-color-themes

Filament Color Themes

A Filament PHP plugin that adds panel color theme selection from the user menu.

Features

Requirements

Installation

1. Require the package

From Packagist (no repositories / path needed):

Important: remove any leftover path repository for this package from the app composer.json / composer config, for example:

Otherwise Composer still looks for ../filament-color-themes and fails even though the package is on Packagist.

Local path development (optional) Only if you develop against a local clone — `url` must point to a real folder next to (or absolute path relative to) the app:

2. Register the plugin in your Panel Provider

Add the plugin to AdminPanelProvider (or your panel provider):

After installing or updating the plugin, clear caches:

Your AdminPanelProvider should look like this:

isPersistent: true is required for Livewire.

3. (Optional) Publish config and translations

How it works

When a theme is selected, the plugin updates the primary palette (unless the panel already defines it via ->colors()). Sidebar, topbar, and filter chrome use dedicated theme colors (cardBackground / cardBorder / cardText) in CSS — Filament’s default Zinc gray is left alone so placeholders, Selects, and form text stay readable.

Panel ->colors() and themes

Colors you define on the panel keep working while a theme is active. For example, with a brand primary:

Buttons, links and other primary elements stay #ED1A38 in every theme; the theme still styles the topbar, sidebar, and gray surfaces. If you want the active theme to fully override panel colors instead (the pre-1.1 behavior):

Restrict access to the user-menu theme switcher:

Configuration

File: config/filament-color-themes.php

Key Description Default
session_key Session key for the selected theme filament_color_theme
default Default theme (null = none until selected) null

Available theme keys: forest-green, office-blue, midtone, sepia, midnight.

Localization

Translations live in:

The language is taken from the Laravel locale (config('app.locale')). To add a language, create resources/lang/{locale}/color-themes.php and publish the translations.

License

MIT


All versions of filament-color-themes with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.2|^5.0
spatie/laravel-package-tools Version ^1.15.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 alenadashko/filament-color-themes contains the following files

Loading the files please wait ...