Install Livewire Material's Boost guideline and skill, and record rules

The scheme is regenerated, never hand-edited; the download page stays
free of anchored components; the theme key stays sealshare-theme.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
This commit is contained in:
Andreas Reinhold / reini
2026-09-13 11:02:03 +02:00
co-authored by Claude Opus 5
parent eb33bf77cc
commit a86f035add
7 changed files with 830 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
---
paths:
- config/livewire-material.php
---
# Config
## Theme storage key is sealshare-theme
The theme is stored in localStorage under `sealshare-theme` (default `system`). `mary-theme` stays in `theme.legacy_keys` so visitors from 1.x keep their choice once; don't rename the key or drop the legacy entry, or every returning visitor's theme resets.
+9
View File
@@ -0,0 +1,9 @@
---
paths:
- 'resources/css/material-scheme.*'
---
# Css
## Regenerate the colour scheme, never hand-edit it
material-scheme.css and material-scheme.json are generated together by `php artisan material:scheme "#4f46e5" --variant=vibrant` (Vibrant was chosen over Tonal Spot, which read washed out on the indigo seed). The JSON colours the Markdown mail theme and the fallback error pages, so a hand edit to the CSS alone leaves them out of step. Change the seed or variant and rerun the command instead.
+9
View File
@@ -0,0 +1,9 @@
# Project Rules Index
Before planning or editing, find the row whose globs match the file's path and read that rule file.
| Applies to | Rule file |
| --- | --- |
| config/livewire-material.php | .ai/rules/config.md |
| resources/css/material-scheme.* | .ai/rules/css.md |
| resources/views/livewire/share-download.blade.php | .ai/rules/livewire.md |
+9
View File
@@ -0,0 +1,9 @@
---
paths:
- resources/views/livewire/share-download.blade.php
---
# Livewire
## No anchored components on the download page
Recipients open share links on any phone, including iOS Safari below 18.4, where CSS anchor positioning is missing. Keep menus, tooltips, selects-as-menus, datepickers and other anchored/popover components off this page; use plain buttons with aria-label and native controls. tests/Browser/SealShareTest.php checks the page at 393px has no popovers.