OS Light Theme
This theme makes your system look more like a web app.
Author:
Marcus Venghaus
Documentation
Are you looking for a theme that feels more like an app? Then the 'OS Light' theme is just right for you, especially when you run it as an webapp (browser without toolbar)! The lighter font enhances readability, less borders give you a smoother feeling. The colors in the theme are pre-defined, so you simply need to install it via composer, and you can start right away.
#Demo
#Screenshots
All screenshots of this GIF are also available here
#Requirements
You need Filament v3 and a valid license to use this theme.
#Installation
To install the package via composer you need to add the private repository to your composer.json.
"repositories": [
{
"type": "composer",
"url": "https://filament-theme-os-light.composer.sh"
}
]
Now you are ready to install the package:
composer require mvenghaus/filament-plugin-theme-os-light:"^3.0"
You will be asked for a username and password. Use your order email address as username and the license key you received as password.
#Stylesheets
If you want to use a different design in Filament, you'll need to create a theme first. If you're using the default Filament setup with everything included, you can follow this guide. For more information click here.
php artisan make:filament-theme
A file is created as follows:
resources/css/filament/admin/theme.css
You just need to edit the CSS file so that it uses the theme file.
- @import '/vendor/filament/filament/resources/css/theme.css';
+ @import '/vendor/mvenghaus/filament-theme-os-light/resources/css/index.css';
You have to ensure that Tailwind processes the file. You can achieve this by including the path in your vite.config.js.
- input: ['resources/css/app.css', 'resources/js/app.js'],
+ input: ['resources/css/app.css', 'resources/js/app.js', 'resources/css/filament/admin/theme.css'],
Finally, build the CSS file.
npm run build
#Configuration
The plugin needs to be registered and configured.
<?php
namespace App\Providers\Filament;
use Mvenghaus\FilamentThemeOs\FilamentThemeOsLight;
use Filament\Panel;
use Filament\PanelProvider;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->plugin(
FilamentThemeOsLight::make()
->withLogoInTopbar() // optional
)
->viteTheme('resources/css/filament/admin/theme.css');
}
}
#Options
#withLogoInTopbar
As you can see in the code above, there's an option to move the logo into the top bar. By doing so, you achieve a more compact view, making it even more app-like.
NOTE: If you choose this option, make sure not to use any additional elements in the sidebar navigation header, otherwise they will not be visible.
TIPP: To prevent the logo from flickering during page reload, you should enable livewire:navigate (read more).
$panel->spa()
To get the most out of the theme, here are some recommend settings:
- maxContentWidth to "Full" (read more)
- inline your fields (read more)
- use icon buttons in tables (read more)
- pin it to your system's dock like a native app
- Linux (read more)
- Mac (no idea)
- Windows (no idea)
Full featured
If you any questions or you find a bug, please contact me via email.
The author
From the same author
Translatable Inline
Addon for Spatie Translatable Plugin to edit translations directly below the field
Author:
Marcus Venghaus
Schedule Monitor
Display the data from spatie/laravel-schedule-monitor in your Filament panel.
Author:
Marcus Venghaus
AI Writer
Unchain the power of AI in your Filament Panel! With this plugin you can easily let AI write all your content.
Author:
Marcus Venghaus
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
Custom Fields
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Relaticle