swehrley 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  SwehrleyCSS is an AI-native, zero-class CSS framework inspired by classic 90s workstation interfaces. Write pure semantic HTML5 and theme the entire UI with a single `--accent` CSS variable.
8
8
 
9
9
  ### Features
10
- * **Zero classes** — Styles raw HTML5 elements (`<article>`, `<nav>`, `<table>`, `<dialog>`, `<details>`, `<progress>`, `<meter>`, `<fieldset>`, `<figure>`) out of the box
10
+ * **Zero classes** — Styles raw HTML5 elements (`<article>`, `<nav>`, `<menu>`, `<search>`, `<hgroup>`, `<table>`, `<dialog>`, `<details>`, `<progress>`, `<meter>`, `<fieldset>`, `<figure>`) out of the box
11
11
  * **One color variable** — Override `--accent` (default `#1e548e`) to automatically derive surfaces, bevels, borders, links, and hover states
12
12
  * **Margin-free layout** — Predictable `padding` + `gap` spacing with responsive mobile and `@media print` support
13
13
  * **AI-ready** — Bundles [`ai-instructions.md`](ai-instructions.md) and a CLI initializer for coding agents
@@ -74,7 +74,7 @@ For issue submission please visit [GitHub](https://github.com/rjwehrle/swehrley/
74
74
  ## Roadmap
75
75
  * Optional automatic dark mode (`prefers-color-scheme: dark`) derived from `--accent`
76
76
  * Minified stylesheet distribution (`swehrley.min.css`)
77
- * Expanded semantic HTML5 component coverage (`popover`, `<search>`, `<datalist>`)
77
+ * Expanded semantic HTML5 component coverage (`popover`, `<datalist>`)
78
78
 
79
79
  ## Contributing
80
80
 
@@ -23,13 +23,26 @@ Good examples: `#1e548e` (Steel Blue), `#2c5947` (Hunter Green), `#0066cc` (Coba
23
23
  ## 3. Semantic Patterns That Unlock Built-In Components
24
24
  Use these exact HTML5 structures so `swehrley.css` applies the right workstation component automatically:
25
25
 
26
- - **Page Structure**: Use `<header>` (top-level title `<h1>`, subtitle `<p>`, optional hero terminal badge `<code>`, and `<nav>`), `<main>` containing `<section>` blocks separated by `<hr>` where appropriate, and `<footer>`.
27
- - **Navigation**: Place bare `<a>` tags directly inside `<nav>`—they automatically render as a recessed horizontal deck of 3D keycaps.
26
+ - **Page Layouts (Auto-Detected via Landmark Order)**:
27
+ - All 6 page shells below work both directly inside `<body>` (plain HTML5) **and** inside SPA root mount containers (e.g., React `<div id="root">`, Vue `<div id="app">`, Next.js `<div id="__next"><div>`, Angular `<app-root>` or nested layout wrappers) as well as custom-element routed page wrappers directly inside `<main>` (e.g., `<app-overview-page>`).
28
+ - **Angular note**: Add `router-outlet { display: none; }` in your app's global stylesheet so Angular's empty outlet marker does not create an extra flex/grid gap, and prefer attribute-on-tag selectors (`selector: 'aside[appSidebar]'`, `selector: 'article[appKpi]'`) when extracting landmarks or grid cards into components so the semantic tag remains a direct child of its shell or `<section>`.
29
+ - **Single-Column Document (default)**: `<body>` (or your SPA root) with `<header>`, `<main>`, and `<footer>` renders as a centered `820px` reading, marketing, or tool column.
30
+ - **Centered Focus Card (Auth / Onboarding Gate)**: Omit both `body > header` and `body > aside`, and place a single `<article>` or `<form>` inside `<main>` (`<body><main><article>...</article></main><footer>...</footer></body>`) to auto-center a `460px` sign-in or onboarding window.
31
+ - **Workstation / Dashboard / Settings Shell**: Place `<aside>` containing a `<nav>` or `<menu>` directly inside `<body>` *before* `<main>` (`<body><aside><nav>...</nav></aside><header>...</header><main>...</main><footer>...</footer></body>`). Automatically unlocks a full-viewport (`100svh`) 2-column shell with a flush vertical sidebar rail, compact horizontal topbar `<header>`, scrollable `<main>`, and optional bottom OS status bar `<footer>`. Standalone form sections inside `<main>` automatically cap at a readable `760px` measure.
32
+ - **Master-Detail Split Shell (Issue Tracker / Inbox)**: Place two adjacent direct `<aside>` elements before `<main>` (`<body><aside><nav>...</nav></aside><aside><nav>...</nav></aside><header>...</header><main>...</main><footer>...</footer></body>`) to unlock a 3-column triage shell (`210px` views rail, `310px` selectable queue list, fluid detail canvas).
33
+ - **3-Pane IDE / Inspector Shell**: Add a second direct `<aside>` *after* `<main>` (`<body><aside><nav>...</nav></aside><header>...</header><main>...</main><aside>...</aside><footer>...</footer></body>`) to unlock a 3-column workbench (left nav/explorer, center workspace, right inspector).
34
+ - **Two-Column Docs / Reading Shell (Right Rail)**: Place a direct `<aside>` *after* `<main>` with no left sidebar (`<body><header>...</header><main>...</main><aside>...</aside><footer>...</footer></body>`) for a centered wide two-column layout with a sticky right rail (e.g., table of contents or summary).
35
+ - **Multi-Column Grids Inside `<main>`**: Any `<section>` containing two or more `<article>` children automatically arranges them in a responsive multi-column grid (compact `200px` min-width for plain `<article>` KPI/feature/pricing cards; wider `340px` min-width for framed `<article><header>` OS windows), while headings, toolbars, and standalone tables span full width.
36
+ - **Custom Extensions (`@layer swehrley`)**: All framework rules live inside `@layer swehrley`, so if a project ever needs a custom asymmetric grid split, minimal unlayered CSS overrides cleanly without `!important`.
37
+ - **Navigation & Tabs**: Place bare `<a>` tags directly inside `<nav>` (or `[role="tab"]` inside `[role="tablist"]`)—they automatically render as a recessed horizontal deck of 3D keycaps (or a vertical rail inside a sidebar/right-rail `<aside>`). Use `aria-current="page"`, `aria-current="location"`, `aria-current="true"`, or `aria-selected="true"` for the active item (rendered in high-contrast `--accent` fill).
38
+ - **Command Toolbars & Vertical Action Menus (`<menu>`)**: Place `<button>`, `<a>`, `<output>`, `<small>`, or `<hr>` (rendered as a vertical etched divider in horizontal mode, or a horizontal etched groove in vertical mode)—bare or inside `<li>`—directly inside `<menu>`. Renders as a raised machined strip on open canvas and automatically drops its outer tray inside headers, footers, cards, dialogs, and sidebars. A leading or trailing `<output>`/`<small>` auto-splits to the opposite end of full-width horizontal toolbars. Automatically flips **vertical** inside landmark `body > aside` rails (and unlocks Workstation/IDE/Master-Detail shells just like `<nav>`), or anywhere using `<menu aria-orientation="vertical">`—with full-width left/right split items and `--accent` active styling via `aria-current="page"`.
39
+ - **Search & Filter Bars (`<search>`)**: Place `<input type="search">`, optional `<label>`, `<select>`, `<button>`, or `<form>` inside `<search>`. Renders as a recessed `--_plate` query bay on open canvas, strips outer chrome inside cards/dialogs/sidebars/topbars, locks controls to one baseline height, and stacks cleanly inside narrow `<aside>` rails.
40
+ - **Heading Lockups (`<hgroup>`)**: Wrap a heading (`<h1>`–`<h6>`) with an optional preceding eyebrow `<p>`/`<small>` and/or following subtitle `<p>`/`<small>`. Chrome-free tight vertical lockup that automatically inherits `section > hgroup:first-child`'s left accent bar, sidebar/card etched bottom grooves, and light `--_on-accent-muted` ink inside dark window titlebars.
28
41
  - **Cards vs. Framed Windows (`<article>`)**:
29
42
  - Plain `<article>` with `<h3>` + content renders as a recessed hardware panel card.
30
43
  - `<article>` with a direct `<header>` (e.g., `<h3>Title</h3>` + optional `<small>STATUS</small>`) and optional `<footer>` renders as a framed window with a flat `--accent` titlebar and recessed status bar.
31
44
  - **Tables (`<table>`)**: Use `<caption>` (flat `--accent` titlebar), `<thead>` (`<th>` column rail), `<tbody>` (use `<th>` for pinned left index columns and `<td>` for data cells), and `<tfoot>` (compact bold summary row).
32
- - **Modals (`<dialog>`)**: Structure native dialogs with `<header>` (title + `<form method="dialog"><button aria-label="Close">&times;</button></form>`), body `<p>`/content, and `<footer>` containing `<form method="dialog">` action buttons.
45
+ - **Modals (`<dialog>`)**: Structure native dialogs with `<header>` (title + `<form method="dialog"><button aria-label="Close">&times;</button></form>`), a single body element (`<form>`, `<section>`, or `<p>`), and `<footer>` containing `<form method="dialog">` or `form="..."` action buttons. `<header>` and `<footer>` stay pinned while only the middle body scrolls.
33
46
  - **Media Figures (`<figure>`)**: Place an `<img>` or `<svg>` with a `<figcaption>` inside `<figure>` for a stacked 2-tier frame.
34
47
  - **Forms & Buttons**:
35
48
  - Wrap related inputs in `<fieldset>` with a `<legend>` tab.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swehrley",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "An AI-native, zero-class, single-variable 90s workstation CSS framework built for semantic HTML5.",
5
5
  "main": "swehrley.css",
6
6
  "style": "swehrley.css",