Download the PHP package northwestern-sysdev/northwestern-filament-theme without Composer

On this page you can find all versions of the php package northwestern-sysdev/northwestern-filament-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 northwestern-filament-theme

PHP Version Laravel Version Filament Version


A branded Filament theme plugin for Northwestern University applications. Applies the official NU color palette, typography, and institutional styling to any Filament panel.

Installation

Quick Start

Register the plugin in your Filament panel provider:

Then publish the theme assets:

[!NOTE]

If your panel has a custom theme via ->viteTheme(), it will continue to work alongside this plugin. The Northwestern theme is an additive CSS layer registered separately through Filament's asset system. It does not replace your custom theme.

Vite Theme Integration

You can also import the theme directly into your panel's Vite-compiled stylesheet instead of loading it as a separate <link> tag. This gives you a single compiled CSS bundle, access to Northwestern design tokens as Tailwind v4 utility classes (e.g., bg-nu-purple-100, text-nu-gold), and the ability to override specific theme styles in your own CSS.

Setup

Run the install command:

This will:

Then disable automatic asset registration in your panel provider to prevent the CSS from loading twice:

Finally, compile your assets:

Tailwind v4 Design Tokens

When you opt in to design tokens during northwestern-theme:install, the plugin provides Northwestern colors as Tailwind v4 utility classes:

Available token groups:

Group Examples
Purple scale nu-purple-10 through nu-purple-160
Grays nu-black-10, nu-black-20, nu-black-50, nu-black-80, nu-black-100
Brand colors nu-green, nu-teal, nu-blue, nu-yellow, nu-gold, nu-orange
Dark brand colors nu-dark-green, nu-dark-teal, nu-dark-blue, etc.
Semantic colors nu-success, nu-info, nu-warning, nu-danger

[!NOTE]

Design tokens require Tailwind CSS v4+ (they use the @theme syntax). The core theme CSS works with any Tailwind version.

Dark Mode

The theme adapts to Filament's dark mode setting automatically. No extra configuration needed.

Favicon & Brand Logo

The plugin automatically sets a Northwestern favicon and brand logo when the panel has not already configured them. If you call ->favicon() or ->brandLogo() on your panel, your values take precedence.

The brand logo is resolved in the following order:

  1. Panel-level ->brandLogo() (if set, the plugin does not override it)
  2. config('northwestern-theme.lockup') (from northwestern-sysdev/northwestern-laravel-ui, if installed)
  3. The default Northwestern wordmark SVG from the Northwestern CDN

If your application uses northwestern-sysdev/northwestern-laravel-ui, the northwestern-theme.lockup config value is already published for you. The Filament theme plugin reads it automatically.

Environment Indicator

The theme includes a built-in environment indicator that displays a gold badge in the topbar and a colored top-border on non-production environments. This is enabled by default.

The indicator automatically hides in production and on small screens.

Disabling the Indicator

Custom Visibility

To control when the indicator appears (e.g., only for admins):

Custom Label

By default, the badge reads "Environment: Local" (or whatever APP_ENV is set to). To customize:

[!NOTE]

If you are using pxlrbt/filament-environment-indicator, you can remove that package. Remove EnvironmentIndicatorPlugin::make() from your panel provider and the theme handles the rest.

Impersonation Banner

The theme includes a built-in impersonation banner that renders a red bar above the topbar when a user is being impersonated. It is registered by default and shows automatically when lab404/laravel-impersonate is installed and an impersonation session is active. Without lab404, the banner will not appear unless you provide a custom visible closure.

Custom Visibility

If you are not using lab404/laravel-impersonate, or want to override the default detection, provide your own visibility logic:

Custom Label

Custom Leave URL

Custom Leave Label

Custom Leave Method

The leave form defaults to POST. If your leave endpoint expects a different HTTP method:

Disabling the Banner

[!NOTE]

If your application has a custom impersonation banner registered, remove it when enabling the built-in banner to avoid duplicates. A warning is logged in local environments when both are detected.

Footer

The footer is disabled by default. Your application may have multiple Filament panels, some internal where a footer would just be noise, others end-user-facing where institutional branding matters. You opt in per panel by chaining ->footer():

This renders Northwestern branding, legal links, office contact info, and social media links.

Office Information

Office contact details displayed in the footer are resolved in the following order:

  1. Values passed directly to ->footer() (see below)
  2. config('northwestern-theme.office.*') values (from northwestern-sysdev/northwestern-laravel-ui, if installed)
  3. Hardcoded IT defaults (Information Technology, 1800 Sherman Ave, etc.)

If your application already has northwestern-sysdev/northwestern-laravel-ui installed, the footer will pick up office.name, office.addr, office.city, office.phone, and office.email automatically.

To override specific fields:

Disabling the Footer

Pass enabled: false or a closure that returns a boolean:

Customizing Views

To modify the environment indicator, impersonation banner, or footer markup, publish the views:

This publishes the following templates to resources/views/vendor/northwestern-filament-theme/:

External CDN Dependency

This theme loads fonts, icons, the favicon, and the default brand logo from Northwestern's CDN (common.northwestern.edu). Your application needs network access to this CDN at runtime. If your environment restricts outbound requests or enforces a strict CSP, allowlist https://common.northwestern.edu.

Upgrading

See UPGRADING.md for migration guides between major versions.

License

The MIT License (MIT). Please see LICENSE for more information.


All versions of northwestern-filament-theme with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^4.0||^5.0
illuminate/contracts Version ^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
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 northwestern-sysdev/northwestern-filament-theme contains the following files

Loading the files please wait ...