Liquid Glass by Osama Mohammed Elnagar
CommunityA configurable liquid glass theme for Filament v5 panels featuring ambient art layers, floating sidebar and top-bar, dark and light modes, and no build step required.
Author:
Osama Mohammed Elnagar
Package health
Automated checks of this plugin's Composer package
15 checks
- Passed: GitHub Actions pinned to SHA
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Passed: Dependabot PR responsiveness — No open Dependabot PRs.
- Skipped: Renovate MR responsiveness
- Passed: Dependabot or Renovate configured
- Passed: Dependency update cooldown configured
- Passed: Provides a security policy
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Passed: Commit and release recency — Active: last commit 1 days ago; no release date available.
-
Passed:
composer.lock not committed by library
—
composer.lockis absent from the released dist archive. - Passed: Dist archive is lean
-
Passed:
Current Laravel version supported
— Package dependencies resolve together with current Laravel
13.0. -
Passed:
Current PHP version supported
— Constraint
^8.2supports current PHP8.5. - Skipped: Current Symfony version supported
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
- Install
- Screenshots
- What you get
- Configuration
- Responsive behaviournnBelow 1024px the floating chrome falls back to Filament's attached topbar and off-canvas drawer. Panel content is deliberately shrinkable for narrow and RTL viewports: section headers wrap their action area and custom grids use minmax(min(..., 100%), 1fr). For an RTL preview, use ?lang=ar (Arabic translations flip Filament to dir="rtl").
- Performance
- How it is wired (for maintainers)
- Publishing
- Local development
- Requirements
- Caveats
A deeply configurable liquid-glass theme for Filament v5 panels.
Ambient art behind the glass · floating sidebar · floating or sticky topbar · dark + light · zero build step.
By Osama Mohammed Elnagar · GitHub · Packagist
#Install
composer require osamaelnagar/filament-liquid-glass
php artisan filament:assets
// app/Providers/Filament/AdminPanelProvider.php
use Osama\FilamentLiquidGlass\LiquidGlassPlugin;
return $panel
->plugin(LiquidGlassPlugin::make())
// ...
That's the zero-config setup: the theme, ambient art, and glass surfaces are all wired automatically. filament:assets publishes the panel CSS to public/css/osamaelnagar/filament-liquid-glass/; re-run it after package updates.
Want to customize? Publish the config (or pass overrides inline — see Configuration):
php artisan vendor:publish --tag=filament-liquid-glass-config
Served as plain CSS — no Tailwind/npm build in your app. It's registered as a panel asset, so Filament only loads it on the panel that uses the plugin.
#Screenshots
Real panel surfaces, populated with orders, filters, charts, tables and a full component gallery — not just the empty dashboard.
Orders Overview — filters, KPIs and a populated glass table |
Lens Glass — dark material, stats and live table |
Analytics Studio — charts, donut and KPI surfaces |
UI Kit — buttons, badges, forms and inputs |
RTL — Arabic labels, mirrored chrome and localized dates |
Mobile tables — rows stack into labelled glass cards |
Showcase — six per-panel presets: aurora, photo, nebula, layered objects, lens and minimal
#What you get
- Glass surfaces for the whole panel: sidebar, topbar, pages, cards/sections, tables, stats, modals, dropdowns/popovers, form fields, badges, tabs, pagination, callouts, rich editor, file upload, lazy skeletons.
- Ambient art behind the glass, driven by config:
aurora— colour blobs (static by default; enableambient.aurora.motionto drift them),image— one or more artworks, with dark/light variants and per-mode overlays,video— a muted looping video layer,html/view— any custom objects (SVG shapes, rings, floating orbs, particles, a canvas…),layers— an ordered stack mixing all of the above.
- Liquid-glass material: clear light glass with a spectral rim, top-edge specular sheen and adaptive tint; smoky dark glass with a luminous edge. True optical refraction is approximated in CSS (see Performance).
- Floating / isolated sidebar with margin + radius, plus collapsible-on-desktop modes.
- Floating or attached topbar, sticky or scroll-away, with responsive fallbacks on mobile.
- Dark + light token sets, grain, reduced-motion/reduced-transparency/print fallbacks, and popover stacking fixes (the
backdrop-filtertraps). - Optional branding + Filament palette helpers.
#Configuration
Publish the config file:
php artisan vendor:publish --tag=filament-liquid-glass-config
…or pass overrides inline (merged deep over the package config; no publish needed):
->plugin(LiquidGlassPlugin::make([
'sidebar' => ['floating' => true, 'margin' => 12],
]))
#Minimal config
return [
'enabled' => true,
'theme' => [
'dark_mode' => true,
'default_mode' => 'dark', // dark | light | system
'switcher' => true,
],
'sidebar' => [
'floating' => true, // detached, margined, rounded (desktop)
'margin' => 14,
'radius' => 26,
'collapsible' => true, // Filament desktop collapse
'fully_collapsible' => false,
'width' => null, // e.g. '18rem'
'collapsed_width' => null, // e.g. '4.5rem'
],
'topbar' => [
'mode' => 'floating', // attached | floating
'margin' => 14,
'radius' => 20,
'sticky' => true, // false → scrolls away with the page
],
];
#1. Custom art: a single image with dark/light variants
'ambient' => [
'driver' => 'image',
'image' => [
'url_dark' => '/images/glass/art-night.jpg',
'url_light' => '/images/glass/art-day.jpg',
'opacity' => 0.7,
'blur' => 0,
'scale' => 1.02,
'fit' => 'cover',
'position' => 'center',
'overlay_dark' => 'linear-gradient(180deg, rgb(5 8 23 / .1), rgb(5 8 23 / .85))',
'overlay_light' => 'linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .4))',
],
'grain' => ['enabled' => true, 'opacity' => 0.05],
],
A single url is used for both modes. The image is rendered as position: fixed art behind the UI (not a CSS background), so it keeps aspect/cover behaviour and gets blurred only if you ask.
#2. Custom objects: your own HTML/SVG art layer
'ambient' => [
'driver' => 'layers',
'layers' => [
['type' => 'image', 'url' => '/images/glass/vignette.svg', 'opacity' => .8],
['type' => 'aurora', 'colors' => ['#5b4bff', '#14c9de', '#ff5fbf'], 'strength' => .3],
[
'type' => 'html',
'class' => 'my-art-layer',
'html' => <<<'HTML'
<div style="position:absolute;left:8%;top:20%;width:220px;height:220px;border-radius:9999px;
background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.35),transparent 65%);
filter:blur(18px);"></div>
HTML,
],
],
],
html is rendered raw (trusted config). Prefer a view layer for anything longer:
['type' => 'view', 'view' => 'glass.art', 'data' => ['rings' => 3]],
…and render whatever you want in resources/views/glass/art.blade.php (inline styles, SVG, <canvas> + a small script, etc.). Keep it pointer-events: none.
A full layer list is possible; each entry supports:
| type | options |
|---|---|
aurora |
colors, strength, blur |
image |
url, url_dark, url_light, opacity, blur, scale, fit, position, overlay |
video |
url, poster, opacity, blur |
html |
html, class |
view |
view, data |
#3. Replace the whole ambient layer
'ambient' => ['view' => 'glass.aurora-custom'],
#Glass profiles
profile => 'classic'(default): the v2 material — spectral rim, top sheen, adaptive light/dark tint.profile => 'lens': variable-alpha glass inspired by the Claude/Apple mockup — 28px blur, 180% saturation, dual specular inset rims, inner glow and dual outer shadows. Pair it withsurface_blur => trueand a high-contrast ambient image; it is intentionally heavier.
#4. Glass tuning
'glass' => [
'blur' => 24, // px
'saturation' => 180, // %
'brightness' => 1.12,
'dark_tint' => 0.055, // white alpha over dark art (lower = clearer glass)
'light_tint' => 0.42,
'radius' => 24,
'popover_opacity' => 0.975, // near-opaque popovers (required for legibility)
'surface_blur' => false, // true = frost cards/tables too (photo backgrounds; GPU cost)
'profile' => 'classic', // classic | lens (Claude-style variable-alpha specular glass)
],
The palette is not part of the glass config — the theme reads the panel's ->colors() so it always follows your brand. The package also exposes LiquidGlassPlugin::defaultPalette() as a convenience.
#5. Branding
'branding' => [
'brand_name' => 'Glass Atelier',
'logo' => '/images/logo.svg', // URL, or raw <svg>…</svg> string
'dark_logo' => null,
'logo_height' => '2rem',
],
#Responsive behaviournnBelow 1024px the floating chrome falls back to Filament's attached topbar and off-canvas drawer. Panel content is deliberately shrinkable for narrow and RTL viewports: section headers wrap their action area and custom grids use minmax(min(..., 100%), 1fr). For an RTL preview, use ?lang=ar (Arabic translations flip Filament to dir="rtl").
- Floating sidebar/topbar are desktop-only (
min-width: 1024px); on mobile Filament's standard full-bleed chrome is used (no wasted margins, no clipped drawers). - Glass blur is capped on
< 1024pxfor performance (--lg-glass-bluris reduced by the stylesheet). - Ambient motion is disabled by
prefers-reduced-motion; blur/transparency degrade gracefully withprefers-reduced-transparency,@supports not (backdrop-filter), and print. - Sidebar collapse state is handled by Filament; the floating margins/radius persist for both expanded and collapsed rails.
#Performance
-
This is a CSS approximation of Apple’s Liquid Glass: translucency, saturation/blur where it matters, specular sheen, spectral rim and adaptive tint. True real-time optical refraction/lensing (content bending at the edges) requires SVG displacement or WebGL; that is deliberately not enabled by default because it is expensive and not reliably supported.
-
Ambient motion is opt-in (
ambient.aurora.motion => true). Animating four large blurred, blended layers keeps Chrome's compositor busy every frame, even when the page is idle — very noticeable on Windows and low-power GPUs. Static art keeps the same look with zero idle compositing. -
Keep the ambient layer static unless you specifically want motion; if you enable it, test on your target hardware.
-
Blur is limited to chrome + overlays (sidebar, topbar, modals, dropdowns, the auth card). Cards, tables, stats and inputs use translucent tints + spectral rims instead — a blurred layer per card/table was the remaining GPU cost. Lower
glass.blur(e.g.16) if chrome/overlays still feel heavy on low-end machines. -
Avoid large full-screen videos; a single image artwork is cheaper than animated blobs.
#How it is wired (for maintainers)
src/LiquidGlassPlugin.php panel-injected: CSS asset, render hooks, panel options
src/LiquidGlassServiceProvider.php config + views + publish tags
resources/css/liquid-glass.css plain unlayered CSS, registered as a panel asset
resources/views/ambient.blade.php art layers: aurora/image/video/html/view/layers
resources/views/style.blade.php config → CSS variables + floating chrome rules (STYLES_AFTER)
config/filament-liquid-glass.php documented defaults
Order of loading: Filament's stock stylesheet (layered) → the package's panel CSS asset (unlayered, wins) → the STYLES_AFTER config style (wins over both). That is why overrides work without !important.
Accessibility / performance notes
- Keep
pointer-events: noneon custom art. - Don't put
backdrop-filteron.fi-body/.fi-layout(fixed sidebar/modals would re-anchor); the package only blurs leaf surfaces. - Large full-screen videos/images cost GPU; prefer compressed art and the default aurora for low-end devices.
- Popovers are intentionally near-opaque: a
backdrop-filterelement inside another cannot sample the page (nested backdrop roots).
#Publishing
- Config:
php artisan vendor:publish --tag=filament-liquid-glass-config - Views (to override ambient/style):
php artisan vendor:publish --tag=filament-liquid-glass-views - Panel CSS is published with
php artisan filament:assetsintopublic/css/osamaelnagar/filament-liquid-glass/; re-run it after package updates.
#Local development
composer install
composer check # PHPStan + Pint + PHPUnit
See CONTRIBUTING.md for the full contribution workflow.
#Requirements
- PHP
^8.2, Filament^5.0 - No npm/Tailwind build required in the host app
- The theme is a panel plugin, not a full app template; pages/resources remain yours.
MIT licensed.
#Caveats
- Filament panel assets are registered per panel: the plugin uses
$panel->assets()inregister(), so panels that don't install the plugin never load the theme. Runphp artisan filament:assetsafter install/update. - The package does not publish or override Filament vendor views.
- It does not force a palette; pass
->colors()on the panel (or setpalettein config) as usual. - Custom art config values are trusted server-side config (raw HTML/view layers are rendered as-is).
The author
From the same author
Featured Plugins
A selection of plugins curated by the Filament team
Sharp Theme
A theme that gives panels a precise, technical look with square corners, strong borders, and clear contrast.
Filament
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight like Command Palette to your Filament Panel.
Dennis Koch
Compact Theme
A theme that makes data-heavy panels easier to scan by fitting more useful information on each screen.
Filament