Teach the M3 window size classes in the skill and the README
Plan steps 15-17. Every breakpoint the skill named is now a window size class: the wrapper idiom (`max-medium:hidden`), `<x-app-shell>`'s section gets a table of the four classes with their navigation and margin, `<x-drawer pane>` is "from expanded" at 360dp, and `<x-section-nav>`, `<x-search>`, `<x-datepicker>`, `<x-modal fullscreen>`, `<x-button fab|responsive>`, `<x-navigation-bar>`, `<x-navigation-rail mode="adaptive">`, `$store.rail` and the FAB and fab-menu margins follow. A new Tokens bullet states the rule once: `medium:` 600, `expanded:` 840, `large:` 1200, `extra-large:` 1600, Tailwind's screens cleared, scripts through resources/js/breakpoints.js, a container query (`@md:`) a different thing. The README gains the same warning where it tells an application how to import the package's CSS, since a leftover `sm:` from another project now compiles to nothing rather than to 640px. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
fd1e063d4c
commit
afc8e199ae
@@ -44,6 +44,8 @@ import '../../vendor/nonameweb/livewire-material/resources/js/material.js'
|
||||
|
||||
Do not install Alpine separately; Livewire provides it.
|
||||
|
||||
Importing the package's CSS replaces parts of Tailwind's theme with M3's, so some default utilities no longer compile. Breakpoints are the most visible: they are M3's window size classes and only those — `medium:` 600px, `expanded:` 840px, `large:` 1200px and `extra-large:` 1600px, with `max-medium:` and friends for "below", compact being everything under `medium`. Tailwind's `sm:`…`2xl:` are cleared, so an `sm:grid-cols-2` left over from another project compiles to nothing; rewrite it as `medium:grid-cols-2`. The same goes for the default radius, shadow, text-size, weight, leading, tracking and easing scales, which the M3 sets (`rounded-corner-*`, `shadow-elevation-*`, `type-*`, `ease-spatial-*`) replace. Scripts that need a window size class import `from()` / `upTo()` from the package's `resources/js/breakpoints.js` rather than writing their own media query.
|
||||
|
||||
### Layout
|
||||
|
||||
The theme script goes in `<head>`, before `@vite`, so the page paints in the visitor's theme:
|
||||
|
||||
Reference in New Issue
Block a user