Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/lib/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const v7Navigation: NavSection[] = [
links: [
{ title: 'Overview', href: '/ui-foundation/overview' },
{ title: 'Tables and listings', href: '/ui-foundation/tables' },
{ title: 'Themes', href: '/ui-foundation/themes' },
],
},
{
Expand Down
78 changes: 78 additions & 0 deletions content/v7/ui-foundation/themes/page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
title: Themes
description: Switch a Laravolt app to the Workbench theme or ship your own Preline 5 theme, from one setting.
---

# Themes

Laravolt 8.4 ships the Preline 5 theme tokens and its own theme, **Workbench**: graphite surfaces and the brand indigo `#4f46e5`, in light and dark mode. Without a theme setting, apps keep the classic gray and blue look. {% .lead %}

## Turn on Workbench

Pick one:

- `.env`: `LARAVOLT_UI_THEME=workbench`
- `config/laravolt/ui.php`: `'theme' => 'workbench'`
- In the app: **Settings > Tema**, for users with `laravolt::manage-settings`

The layout then renders `<html data-theme="theme-workbench">`. Dark mode works as before, through the `dark` class and the theme switcher.

## What changes

Workbench repaints Tailwind's `gray-*` scale (to zinc) and `blue-*` scale (to indigo). Laravolt's own pages are written with those classes, and so are most application views, so both follow without markup changes. `neutral-*`, used in dark mode, is already graphite and stays as it is.

The accent behind `.btn-accent`, `.link-accent` and focus rings becomes indigo too. While a theme is on, the theme sets the accent and `laravolt.ui.color` is ignored. That setting still applies to the classic look.

## Preline 5 tokens

`main.min.css` carries the CSS variables of Preline 5's `theme.css`, for light and dark mode:

| Variable | Classic value | Use for |
|---|---|---|
| `--background-1` | `gray-50` / dark `neutral-900` | page background |
| `--layer` | white / dark `neutral-800` | cards, panels |
| `--foreground` | `gray-800` / dark `neutral-200` | body text |
| `--border-line-2` | `gray-200` / dark `neutral-700` | dividers |
| `--primary` | `blue-600` / dark `blue-500` | primary actions |

The matching utilities (`bg-layer`, `text-foreground`, `bg-primary`, ...) are generated only when a view uses them. In 8.4, Laravolt's views still use `gray-*` and `blue-*`. Later minor releases move them to the tokens one area at a time, and visual CI must show no difference for the classic look.

To use the tokens in your own views, give the app its own Tailwind build next to Laravolt's CSS (VoltProcure's `resources/css/app.css` is an example) and import the tokens there:

```css
@import "preline/theme.css";

/* theme.css sets border-color: var(--border) on every element; keep Laravolt's default. */
@layer base {
* { border-color: currentColor; }
}
```

Your build then generates `bg-layer`, `text-foreground` and the rest for your views, and the values follow the active theme.

## Your own theme

Any other value renders `data-theme="theme-{name}"`, so you can ship a Preline 5 theme in your own stylesheet:

```css
:root[data-theme="theme-acme"] {
--primary-50: var(--color-teal-50);
/* ... */
--primary-600: var(--color-teal-600);
--primary-700: var(--color-teal-700);
}

:root[data-theme="theme-acme"].dark {
--primary: var(--color-primary-400);
}
```

```dotenv
LARAVOLT_UI_THEME=acme
```

Preline's token reference lists every variable. Pages that still use `gray-*` and `blue-*` follow a token-only theme only once they are migrated. To recolour them today, override the scales as `resources/css/themes/workbench.css` in `laravolt/laravolt` does.

## Borders

Preline's `theme.css` gives every element `border-color: var(--border)`. Laravolt keeps Tailwind's default, `currentColor`, so a bare `border` class renders as it did before 8.4.
19 changes: 18 additions & 1 deletion content/v7/whats-new/page.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
---
title: What's New
description: Laravolt 8.0 to 8.3 — supported versions, Preline 5, Octane-safe menus, FilePond uploads, tighter access checks — and the Laravolt 7 overhaul
description: Laravolt 8.0 to 8.4 — supported versions, Preline 5 and the Workbench theme, Octane-safe menus, FilePond uploads, tighter access checks — and the Laravolt 7 overhaul
nextjs:
metadata:
title: What's New in Laravolt 8
description: Laravolt 8 requires PHP 8.3+ and Laravel 12.68+/13.29+, ships Preline 5 and Tailwind 4.3 in 8.1, and makes the sidebar safe for Octane and persistent caches.
---

## Laravolt 8.4

Released 24 November 2026. [Release notes](https://github.com/laravolt/laravolt/releases/tag/v8.4.0).

- **Workbench theme.** Graphite surfaces and the brand indigo, in light and dark mode. Turn it on with `LARAVOLT_UI_THEME=workbench` or **Settings > Tema**. Without that setting the look does not change: visual CI measured 0.00% difference on every classic page. See [Themes](/ui-foundation/themes).
- **Preline 5 theme tokens** (`--layer`, `--foreground`, `--primary`, ...) ship in `main.min.css`. Any other theme name renders `data-theme="theme-{name}"` for your own Preline 5 theme.
- CI also runs the test suite on PHP 8.6.

Upgrade with `composer require laravolt/laravolt:^8.4`. In a `local` environment that already has `public/laravolt`, run `php artisan laravolt:extract-assets` once to get the new CSS.

## Laravolt 8.3

- **8.3.5 closes access gaps. Upgrade, and urgently if `database-monitor` is enabled.** [Release notes](https://github.com/laravolt/laravolt/releases/tag/v8.3.5).
- Database backup routes require `laravolt::manage-database`. Before, the permission only hid the menu entry.
- File-manager download and delete links work only for the user who was shown them.
- Chunked uploads are kept per uploader. `chunked-upload.max_file_size` (default 100 MB) is enforced, and `validation.max_pending_uploads` (default 20) limits unfinished uploads per uploader.
- SVG brand logos are sanitized before they are inlined.
- `platform/dump` answers only when `APP_DEBUG` is on.
- **Upgrading to 8.3.5:** grant `laravolt::manage-database` to the roles that manage backups, and raise `max_file_size` in `config/chunked-upload.php` if you upload larger files in chunks.
- **8.3.3 tightens access checks. Upgrade, and read the steps below.** [Release notes](https://github.com/laravolt/laravolt/releases/tag/v8.3.3).
- The Settings pages require the `laravolt::manage-settings` permission, as the menu entry already did. Users holding `*` keep access.
- Workflow instance pages and `media::stream` require sign-in. The embedded form, the public tracker and the definition XML stay public.
Expand Down
2 changes: 1 addition & 1 deletion public/styles.css

Large diffs are not rendered by default.