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.
Download northwestern-sysdev/northwestern-filament-theme
More information about northwestern-sysdev/northwestern-filament-theme
Files in northwestern-sysdev/northwestern-filament-theme
Package northwestern-filament-theme
Short Description Northwestern University branded theme for Filament panels
License MIT
Homepage https://github.com/NIT-Administrative-Systems/northwestern-filament-theme
Informations about the package northwestern-filament-theme
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:
- Create a panel theme CSS file if one doesn't exist
- Inject the Northwestern theme
@importafter the Filament base import - Optionally inject Tailwind v4 design tokens for color utilities
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
@themesyntax). 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:
- Panel-level
->brandLogo()(if set, the plugin does not override it) config('northwestern-theme.lockup')(fromnorthwestern-sysdev/northwestern-laravel-ui, if installed)- 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. RemoveEnvironmentIndicatorPlugin::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:
- Values passed directly to
->footer()(see below) config('northwestern-theme.office.*')values (fromnorthwestern-sysdev/northwestern-laravel-ui, if installed)- 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/:
environment-indicator.blade.php— the topbar badge and borderimpersonation-banner.blade.php— the impersonation session bannerfooter.blade.php— the institutional footer
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
filament/filament Version ^4.0||^5.0
illuminate/contracts Version ^12.0||^13.0
spatie/laravel-package-tools Version ^1.16