@profullstack/css 0.0.0-stage → 0.2.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.
@@ -0,0 +1,169 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="description" content="Install and use Profullstack CSS: semantic defaults, layout patterns, components, tokens, and the agent contract.">
7
+ <title>Documentation — @profullstack/css</title>
8
+ <link rel="stylesheet" href="../css/profullstack.css">
9
+ <style>
10
+ .docs-top { border-bottom: 1px solid var(--pf-color-border); }
11
+ .docs-top-inner { align-items: center; display: flex; justify-content: space-between; min-height: 4.5rem; }
12
+ .docs-top a { text-decoration: none; }
13
+ .docs-layout { align-items: start; display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 12rem minmax(0, 1fr); padding-block: clamp(2rem, 6vw, 5rem); }
14
+ .docs-sidebar { position: sticky; top: 1rem; }
15
+ .docs-sidebar ul { border-inline-start: 1px solid var(--pf-color-border); list-style: none; margin: 0; padding: 0; }
16
+ .docs-sidebar a { color: var(--pf-color-ink-muted); display: block; font-size: var(--pf-text-sm); padding: 0.45rem 0 0.45rem 0.8rem; text-decoration: none; }
17
+ .docs-sidebar a:hover { color: var(--pf-color-primary); }
18
+ .docs-content { max-width: 54rem; min-width: 0; }
19
+ .docs-content > header { margin-bottom: 3rem; }
20
+ .docs-content > header h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
21
+ .docs-content > header p:last-child { font-size: 1.1rem; max-width: 42rem; }
22
+ .docs-section { border-top: 1px solid var(--pf-color-border); margin-top: 3rem; padding-top: 2rem; scroll-margin-top: 1.5rem; }
23
+ .docs-section > h2 { margin-bottom: 1rem; }
24
+ .docs-section > p { max-width: 68ch; }
25
+ .code-sample { margin-block: 1rem; }
26
+ .code-sample code { font-size: 0.82rem; }
27
+ .command { background: var(--pf-color-surface-raised); border: 1px solid var(--pf-color-border); border-radius: var(--pf-radius-sm); display: block; overflow-x: auto; padding: 1rem; }
28
+ .layout-list { display: grid; gap: 0.65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
29
+ .layout-list > div { border: 1px solid var(--pf-color-border); border-radius: var(--pf-radius-sm); padding: 0.8rem; }
30
+ .layout-list code { display: inline-block; margin-bottom: 0.3rem; }
31
+ .layout-list p { color: var(--pf-color-ink-muted); font-size: var(--pf-text-sm); }
32
+ .component-list { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
33
+ .component-list .card { box-shadow: none; }
34
+ .component-list h3 { margin-bottom: 0.5rem; }
35
+ .token-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
36
+ .token-grid code { overflow-wrap: anywhere; }
37
+ .docs-footer { border-top: 1px solid var(--pf-color-border); padding-block: 1.5rem; }
38
+ .docs-footer .container { align-items: center; display: flex; justify-content: space-between; }
39
+ @media (max-width: 50rem) {
40
+ .docs-layout { grid-template-columns: 1fr; }
41
+ .docs-sidebar { overflow-x: auto; position: static; }
42
+ .docs-sidebar ul { border-inline-start: 0; border-bottom: 1px solid var(--pf-color-border); display: flex; gap: 1rem; min-width: max-content; }
43
+ .docs-sidebar a { padding: 0.5rem 0 0.7rem; }
44
+ }
45
+ @media (max-width: 35rem) {
46
+ .layout-list, .component-list, .token-grid { grid-template-columns: 1fr; }
47
+ .docs-footer .container { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
48
+ }
49
+ </style>
50
+ </head>
51
+ <body>
52
+ <a class="sr-only" href="#content">Skip to documentation</a>
53
+ <header class="docs-top">
54
+ <div class="container docs-top-inner">
55
+ <a href="../index.html"><strong>@profullstack/css</strong></a>
56
+ <nav aria-label="Top navigation" class="cluster"><a href="../examples/">Examples</a><a href="https://github.com/profullstack/css">Source</a></nav>
57
+ </div>
58
+ </header>
59
+ <main class="container docs-layout" id="content">
60
+ <nav class="docs-sidebar" aria-label="Documentation sections">
61
+ <ul>
62
+ <li><a href="#install">Install</a></li>
63
+ <li><a href="#start">Quick start</a></li>
64
+ <li><a href="#layout">Layout</a></li>
65
+ <li><a href="#components">Components</a></li>
66
+ <li><a href="#themes">Themes</a></li>
67
+ <li><a href="#customize">Customize</a></li>
68
+ <li><a href="#agents">Agents</a></li>
69
+ </ul>
70
+ </nav>
71
+
72
+ <article class="docs-content">
73
+ <header class="stack" data-space="sm">
74
+ <p class="eyebrow">Documentation / 0.1.0</p>
75
+ <h1>Make the browser do more.</h1>
76
+ <p class="muted">A small stylesheet that starts with semantic HTML, gives it considered defaults, and makes its interface clear to the next person or agent who reads it.</p>
77
+ </header>
78
+
79
+ <section class="docs-section" id="install">
80
+ <h2>Install</h2>
81
+ <p>The source package is ready for its first public npm release. Until then, install from a local checkout:</p>
82
+ <pre class="command"><code>npm install /path/to/profullstack-css</code></pre>
83
+ <p>After publication, install the scoped package and import it from your global stylesheet:</p>
84
+ <pre class="command"><code>npm install @profullstack/css</code></pre>
85
+ <pre class="code-sample"><code>@import "@profullstack/css";</code></pre>
86
+ <p class="muted">The package is plain CSS: no runtime, JavaScript setup, or build step of its own.</p>
87
+ </section>
88
+
89
+ <section class="docs-section" id="start">
90
+ <h2>Quick start</h2>
91
+ <p>Use native elements first. Add layout classes only where structure needs a name.</p>
92
+ <pre class="code-sample"><code>&lt;main class="container stack section"&gt;
93
+ &lt;header class="stack" data-space="sm"&gt;
94
+ &lt;p class="eyebrow"&gt;Workspace&lt;/p&gt;
95
+ &lt;h1&gt;Good morning, Alex.&lt;/h1&gt;
96
+ &lt;p class="muted"&gt;Here’s what needs your attention.&lt;/p&gt;
97
+ &lt;/header&gt;
98
+
99
+ &lt;section class="grid" data-columns="2" aria-label="Summary"&gt;
100
+ &lt;article class="card stack" data-space="sm"&gt;
101
+ &lt;h2&gt;Projects&lt;/h2&gt;
102
+ &lt;p&gt;12 active projects&lt;/p&gt;
103
+ &lt;/article&gt;
104
+ &lt;/section&gt;
105
+ &lt;/main&gt;</code></pre>
106
+ </section>
107
+
108
+ <section class="docs-section" id="layout">
109
+ <h2>Layout vocabulary</h2>
110
+ <p>These are the framework’s complete layout primitives. Responsive behavior is built in; use attributes for the few intentional variations.</p>
111
+ <div class="layout-list">
112
+ <div><code>.container</code><p>Centered page width with responsive gutters.</p></div>
113
+ <div><code>.prose</code><p>Readable line length for long-form text.</p></div>
114
+ <div><code>.stack</code><p>Vertical flow. <code>data-space="sm|lg"</code> adjusts its gap.</p></div>
115
+ <div><code>.cluster</code><p>Wrapping row for controls, labels, and navigation.</p></div>
116
+ <div><code>.grid</code><p>Responsive grid. <code>data-columns="2|3|4"</code> sets desktop columns.</p></div>
117
+ <div><code>.split</code><p>Two-column composition that collapses on narrow screens.</p></div>
118
+ <div><code>.section</code><p>Responsive vertical page-section spacing.</p></div>
119
+ </div>
120
+ </section>
121
+
122
+ <section class="docs-section" id="components">
123
+ <h2>Components</h2>
124
+ <p>Native controls are styled automatically. Use the small component classes for visual roles that HTML does not express on its own.</p>
125
+ <div class="component-list">
126
+ <article class="card stack" data-space="sm"><h3>Buttons</h3><p>Native <code>&lt;button&gt;</code> is styled by default. Add <code>.button</code> to a link, then choose <code>data-variant="secondary|ghost|danger"</code> if needed.</p><button type="button" data-variant="secondary">Secondary action</button></article>
127
+ <article class="card stack" data-space="sm"><h3>Cards and status</h3><p>Use <code>.card</code>, <code>.alert</code>, and <code>.badge</code> when a bordered surface or status label clarifies the content.</p><div class="cluster"><span class="badge" data-tone="success">Ready</span><span class="badge" data-tone="warning">Review</span></div></article>
128
+ <article class="card stack" data-space="sm"><h3>Forms</h3><p>Label each control. Connect helper and error text with <code>aria-describedby</code>; mark invalid input with <code>aria-invalid="true"</code>.</p><label for="docs-email">Work email</label><input id="docs-email" type="email" placeholder="you@example.com"></article>
129
+ <article class="card stack" data-space="sm"><h3>Native patterns</h3><p>Tables, <code>details</code>, progress, meter, and <code>dialog</code> receive baseline styles. Native behavior remains with the browser or your application.</p><details><summary>Show details</summary><p>Disclosure requires no JavaScript.</p></details></article>
130
+ </div>
131
+ </section>
132
+
133
+ <section class="docs-section" id="themes">
134
+ <h2>Color themes</h2>
135
+ <p>Without an explicit choice, colors follow <code>prefers-color-scheme</code>. Set one attribute on the root element to choose a theme:</p>
136
+ <pre class="code-sample"><code>&lt;html lang="en" data-theme="dark"&gt;</code></pre>
137
+ <p>Supported values are <code>light</code> and <code>dark</code>. The application owns the setting control and persistence; CSS supplies the palette.</p>
138
+ </section>
139
+
140
+ <section class="docs-section" id="customize">
141
+ <h2>Customize with tokens</h2>
142
+ <p>Override the <code>--pf-*</code> variables after importing the framework. The actual values live in <code>css/tokens.css</code>; the JSON catalog lists theme values and token names for tools.</p>
143
+ <pre class="code-sample"><code>:root {
144
+ --pf-color-primary: #4a42c4;
145
+ --pf-color-primary-hover: #3932a5;
146
+ --pf-radius-md: 1rem;
147
+ --pf-content-width: 78rem;
148
+ }</code></pre>
149
+ <div class="token-grid">
150
+ <code>--pf-color-primary</code><code>--pf-space-4</code>
151
+ <code>--pf-font-sans</code><code>--pf-radius-md</code>
152
+ <code>--pf-content-width</code><code>--pf-control-height</code>
153
+ </div>
154
+ </section>
155
+
156
+ <section class="docs-section" id="agents">
157
+ <h2>Give agents the contract</h2>
158
+ <p>The package includes a short <code>AGENTS.md</code> and <code>css/manifest.json</code>. The first describes markup and accessibility rules; the second lists supported classes, variants, tokens, themes, and snippets in machine-readable form.</p>
159
+ <div class="cluster">
160
+ <a class="button" href="../css/manifest.json">Open manifest</a>
161
+ <a class="button" data-variant="secondary" href="agent-guide.md">Read agent guide</a>
162
+ </div>
163
+ <p class="muted">When a pattern is missing, compose native HTML and existing tokens instead of inventing an undocumented class.</p>
164
+ </section>
165
+ </article>
166
+ </main>
167
+ <footer class="docs-footer"><div class="container"><span class="muted">@profullstack/css · MIT licensed</span><a href="../index.html">Back to overview ↑</a></div></footer>
168
+ </body>
169
+ </html>
@@ -0,0 +1,55 @@
1
+ {
2
+ "format": "profullstack.token-catalog/v1",
3
+ "name": "Profullstack CSS tokens",
4
+ "source": "../css/tokens.css",
5
+ "prefix": "--pf-",
6
+ "themes": ["light", "dark"],
7
+ "tokens": {
8
+ "color.canvas": { "cssVariable": "--pf-color-canvas", "type": "color", "light": "#f7f8fa", "dark": "#101719" },
9
+ "color.surface": { "cssVariable": "--pf-color-surface", "type": "color", "light": "#ffffff", "dark": "#172123" },
10
+ "color.surface-raised": { "cssVariable": "--pf-color-surface-raised", "type": "color", "light": "#ffffff", "dark": "#1d2a2c" },
11
+ "color.ink": { "cssVariable": "--pf-color-ink", "type": "color", "light": "#14212b", "dark": "#eaf2ef" },
12
+ "color.ink-muted": { "cssVariable": "--pf-color-ink-muted", "type": "color", "light": "#53616c", "dark": "#afbfba" },
13
+ "color.border": { "cssVariable": "--pf-color-border", "type": "color", "light": "#d9e0e6", "dark": "#354648" },
14
+ "color.primary": { "cssVariable": "--pf-color-primary", "type": "color", "light": "#126b55", "dark": "#6fd0aa" },
15
+ "color.primary-hover": { "cssVariable": "--pf-color-primary-hover", "type": "color", "light": "#0d5846", "dark": "#89e2bb" },
16
+ "color.on-primary": { "cssVariable": "--pf-color-on-primary", "type": "color", "light": "#ffffff", "dark": "#0d2920" },
17
+ "color.accent": { "cssVariable": "--pf-color-accent", "type": "color", "light": "#f0a54a", "dark": "#ffc36d" },
18
+ "color.danger": { "cssVariable": "--pf-color-danger", "type": "color", "light": "#b42332", "dark": "#ff8d98" },
19
+ "color.success": { "cssVariable": "--pf-color-success", "type": "color", "light": "#176b45", "dark": "#79d6a7" },
20
+ "color.warning": { "cssVariable": "--pf-color-warning", "type": "color", "light": "#8a4b00", "dark": "#ffcb78" },
21
+ "color.info": { "cssVariable": "--pf-color-info", "type": "color", "light": "#175f9b", "dark": "#8fc8ff" },
22
+ "color.focus": { "cssVariable": "--pf-color-focus", "type": "color", "light": "#126b55", "dark": "#89e2bb" },
23
+ "shadow.sm": { "cssVariable": "--pf-shadow-sm", "type": "shadow", "light": "0 1px 2px rgb(15 32 43 / 8%)", "dark": "0 1px 2px rgb(0 0 0 / 25%)" },
24
+ "shadow.md": { "cssVariable": "--pf-shadow-md", "type": "shadow", "light": "0 14px 38px rgb(15 32 43 / 10%)", "dark": "0 14px 38px rgb(0 0 0 / 25%)" },
25
+ "radius.sm": { "cssVariable": "--pf-radius-sm", "type": "dimension", "value": "0.5rem" },
26
+ "radius.md": { "cssVariable": "--pf-radius-md", "type": "dimension", "value": "0.85rem" },
27
+ "radius.lg": { "cssVariable": "--pf-radius-lg", "type": "dimension", "value": "1.25rem" },
28
+ "radius.pill": { "cssVariable": "--pf-radius-pill", "type": "dimension", "value": "999px" },
29
+ "space.1": { "cssVariable": "--pf-space-1", "type": "dimension", "value": "0.25rem" },
30
+ "space.2": { "cssVariable": "--pf-space-2", "type": "dimension", "value": "0.5rem" },
31
+ "space.3": { "cssVariable": "--pf-space-3", "type": "dimension", "value": "0.75rem" },
32
+ "space.4": { "cssVariable": "--pf-space-4", "type": "dimension", "value": "1rem" },
33
+ "space.5": { "cssVariable": "--pf-space-5", "type": "dimension", "value": "1.5rem" },
34
+ "space.6": { "cssVariable": "--pf-space-6", "type": "dimension", "value": "2rem" },
35
+ "space.7": { "cssVariable": "--pf-space-7", "type": "dimension", "value": "3rem" },
36
+ "space.8": { "cssVariable": "--pf-space-8", "type": "dimension", "value": "4rem" },
37
+ "corner.shape": { "cssVariable": "--pf-corner-shape", "type": "keyword", "value": "round", "options": ["round", "squircle", "bevel", "scoop", "notch"] },
38
+ "carousel.item": { "cssVariable": "--pf-carousel-item", "type": "dimension", "value": "20rem" },
39
+ "font.sans": { "cssVariable": "--pf-font-sans", "type": "fontFamily", "value": "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" },
40
+ "font.mono": { "cssVariable": "--pf-font-mono", "type": "fontFamily", "value": "SFMono-Regular, Consolas, Liberation Mono, monospace" },
41
+ "text.xs": { "cssVariable": "--pf-text-xs", "type": "fontSize", "value": "0.78rem" },
42
+ "text.sm": { "cssVariable": "--pf-text-sm", "type": "fontSize", "value": "0.9rem" },
43
+ "text.md": { "cssVariable": "--pf-text-md", "type": "fontSize", "value": "1rem" },
44
+ "text.lg": { "cssVariable": "--pf-text-lg", "type": "fontSize", "value": "1.2rem" },
45
+ "text.xl": { "cssVariable": "--pf-text-xl", "type": "fontSize", "value": "clamp(1.6rem, 3vw, 2.4rem)" },
46
+ "text.display": { "cssVariable": "--pf-text-display", "type": "fontSize", "value": "clamp(2.5rem, 6vw, 5.5rem)" },
47
+ "leading.tight": { "cssVariable": "--pf-leading-tight", "type": "number", "value": 1.08 },
48
+ "leading.normal": { "cssVariable": "--pf-leading-normal", "type": "number", "value": 1.6 },
49
+ "content.width": { "cssVariable": "--pf-content-width", "type": "dimension", "value": "72rem" },
50
+ "content.prose-width": { "cssVariable": "--pf-prose-width", "type": "dimension", "value": "68ch" },
51
+ "control.height": { "cssVariable": "--pf-control-height", "type": "dimension", "value": "2.8rem" },
52
+ "transition.fast": { "cssVariable": "--pf-transition-fast", "type": "transition", "value": "140ms ease" },
53
+ "transition.normal": { "cssVariable": "--pf-transition-normal", "type": "transition", "value": "220ms ease" }
54
+ }
55
+ }
@@ -0,0 +1,47 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Examples — @profullstack/css</title>
7
+ <link rel="stylesheet" href="../css/profullstack.css">
8
+ <style>
9
+ .example-nav { border-bottom: 1px solid var(--pf-color-border); padding-block: 1rem; }
10
+ .example-nav .container { align-items: center; display: flex; justify-content: space-between; }
11
+ .example-nav a { text-decoration: none; }
12
+ .example-main { padding-block: clamp(3rem, 8vw, 6rem); }
13
+ .example-link { align-items: flex-start; text-decoration: none; }
14
+ .example-link h2 { color: var(--pf-color-primary); }
15
+ .example-link:hover { border-color: var(--pf-color-primary); transform: translateY(-2px); }
16
+ </style>
17
+ </head>
18
+ <body>
19
+ <header class="example-nav">
20
+ <div class="container"><a href="../index.html"><strong>@profullstack/css</strong></a><a href="../README.md">Read the guide →</a></div>
21
+ </header>
22
+ <main class="container stack example-main">
23
+ <header class="stack" data-space="sm">
24
+ <p class="eyebrow">Patterns you can use</p>
25
+ <h1>Examples, in plain HTML.</h1>
26
+ <p class="muted prose">Each page uses the framework's documented classes and semantic elements. No JavaScript is included.</p>
27
+ </header>
28
+ <section class="grid" data-columns="2" aria-label="Example pages">
29
+ <a class="card stack example-link" href="project-dashboard.html">
30
+ <span class="badge">LAYOUT + TABLE</span>
31
+ <h2>Project dashboard ↗</h2>
32
+ <p class="muted">A responsive dashboard with summary cards, a semantic table, and status badges.</p>
33
+ </a>
34
+ <a class="card stack example-link" href="invite-form.html">
35
+ <span class="badge">FORMS + STATES</span>
36
+ <h2>Invite a teammate ↗</h2>
37
+ <p class="muted">A labeled form with native controls, helper text, validation messaging, and button variants.</p>
38
+ </a>
39
+ <a class="card stack example-link" href="platform.html">
40
+ <span class="badge" data-tone="success">NEW IN 0.2</span>
41
+ <h2>Platform features ↗</h2>
42
+ <p class="muted">Themed select, anchored popovers, animated dialogs, a no-script carousel, gap rules, and scroll reveal.</p>
43
+ </a>
44
+ </section>
45
+ </main>
46
+ </body>
47
+ </html>
@@ -0,0 +1,72 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Invite a teammate — @profullstack/css example</title>
7
+ <link rel="stylesheet" href="../css/profullstack.css">
8
+ <style>
9
+ .form-page { min-height: 100vh; padding-block: 1.25rem 4rem; }
10
+ .form-top { align-items: center; display: flex; justify-content: space-between; }
11
+ .form-main { margin-inline: auto; max-width: 42rem; padding-top: clamp(3rem, 9vw, 7rem); }
12
+ .field { display: grid; gap: 0.35rem; }
13
+ .field label { margin-bottom: 0; }
14
+ .field small { color: var(--pf-color-ink-muted); }
15
+ .field-error { color: var(--pf-color-danger) !important; }
16
+ .form-actions { border-top: 1px solid var(--pf-color-border); margin-top: 0.5rem; padding-top: 1.25rem; }
17
+ </style>
18
+ </head>
19
+ <body>
20
+ <main class="container form-page">
21
+ <header class="form-top"><a href="index.html"><strong>Fieldnotes</strong></a><a href="project-dashboard.html">← Back to projects</a></header>
22
+ <div class="form-main stack">
23
+ <header class="stack" data-space="sm">
24
+ <p class="eyebrow">Workspace / Team</p>
25
+ <h1>Invite a teammate</h1>
26
+ <p class="muted">Give someone a seat at the table. You can change their access later.</p>
27
+ </header>
28
+
29
+ <p class="alert" role="status">Your workspace has 4 seats available.</p>
30
+
31
+ <form class="stack" action="/api/invitations" method="post">
32
+ <div class="field">
33
+ <label for="full-name">Full name</label>
34
+ <input id="full-name" name="name" autocomplete="name" placeholder="Sam Rivera" required>
35
+ </div>
36
+
37
+ <div class="field">
38
+ <label for="work-email">Work email</label>
39
+ <input id="work-email" name="email" type="email" autocomplete="email" placeholder="sam@company.com" aria-describedby="email-hint" required>
40
+ <small id="email-hint">We'll send their invitation to this address.</small>
41
+ </div>
42
+
43
+ <div class="field">
44
+ <label for="role">Role</label>
45
+ <select id="role" name="role" aria-describedby="role-hint">
46
+ <option value="member">Member — can work on projects</option>
47
+ <option value="admin">Admin — can manage the workspace</option>
48
+ <option value="viewer">Viewer — can read project updates</option>
49
+ </select>
50
+ <small id="role-hint">Choose the access that fits their work.</small>
51
+ </div>
52
+
53
+ <fieldset class="stack" data-space="sm">
54
+ <legend>Optional message</legend>
55
+ <label for="message">Personal note</label>
56
+ <textarea id="message" name="message" rows="4" placeholder="A sentence to make the invite feel personal."></textarea>
57
+ </fieldset>
58
+
59
+ <div class="cluster form-actions">
60
+ <button type="submit">Send invitation</button>
61
+ <a class="button" data-variant="secondary" href="project-dashboard.html">Cancel</a>
62
+ </div>
63
+ </form>
64
+
65
+ <details>
66
+ <summary>What happens next?</summary>
67
+ <p class="muted">Your teammate receives an email with a secure invitation link. This example form does not send data; connect it to your app's invite endpoint.</p>
68
+ </details>
69
+ </div>
70
+ </main>
71
+ </body>
72
+ </html>
@@ -0,0 +1,110 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Platform features — @profullstack/css</title>
7
+ <link rel="stylesheet" href="../css/profullstack.css">
8
+ </head>
9
+ <body>
10
+ <main class="container stack section" data-space="lg">
11
+ <header class="stack" data-space="sm">
12
+ <p class="eyebrow">Platform layer · 0.2</p>
13
+ <h1>The newest CSS, on plain HTML.</h1>
14
+ <p class="muted prose">Every pattern on this page is native markup plus the framework stylesheet. There is no JavaScript on this page. Browsers without a feature get the regular baseline.</p>
15
+ </header>
16
+
17
+ <section class="stack" aria-labelledby="forms-heading">
18
+ <h2 id="forms-heading">Forms</h2>
19
+ <form class="grid" data-columns="2">
20
+ <div>
21
+ <label for="plan">Plan</label>
22
+ <select id="plan" name="plan">
23
+ <option>Starter</option>
24
+ <option selected>Team</option>
25
+ <option>Enterprise</option>
26
+ </select>
27
+ <small>A themed picker where <code>appearance: base-select</code> exists.</small>
28
+ </div>
29
+ <div>
30
+ <label for="email">Work email</label>
31
+ <input id="email" name="email" type="email" required aria-describedby="email-hint">
32
+ <small id="email-hint">Turns red only after you type something invalid (<code>:user-invalid</code>).</small>
33
+ </div>
34
+ <div style="grid-column: 1 / -1">
35
+ <label for="notes">Notes</label>
36
+ <textarea id="notes" name="notes" aria-describedby="notes-hint">This textarea grows as you type, up to a limit (field-sizing: content).</textarea>
37
+ <small id="notes-hint">Leave out <code>rows</code> to get the auto-growing behaviour.</small>
38
+ </div>
39
+ <div class="cluster">
40
+ <button type="submit">Save plan</button>
41
+ <button type="button" data-variant="secondary" popovertarget="plan-help">What's included?</button>
42
+ </div>
43
+ </form>
44
+ <div id="plan-help" popover data-anchor>
45
+ <p><strong>Team</strong> includes 10 seats, SSO and audit logs.</p>
46
+ </div>
47
+ </section>
48
+
49
+ <section class="stack" aria-labelledby="disclosure-heading">
50
+ <h2 id="disclosure-heading">Disclosures and dialogs</h2>
51
+ <div>
52
+ <details>
53
+ <summary>How does the height animation work?</summary>
54
+ <p><code>interpolate-size: allow-keywords</code> lets <code>::details-content</code> transition between 0 and <code>auto</code>.</p>
55
+ </details>
56
+ <details>
57
+ <summary>Does it still work without support?</summary>
58
+ <p>Yes. The disclosure opens instantly, exactly as in 0.1.</p>
59
+ </details>
60
+ </div>
61
+ <div class="cluster">
62
+ <button type="button" commandfor="confirm" command="show-modal">Open dialog</button>
63
+ </div>
64
+ <dialog id="confirm" closedby="any" aria-labelledby="confirm-title">
65
+ <form method="dialog" class="stack">
66
+ <h2 id="confirm-title">Archive this project?</h2>
67
+ <p class="muted">It fades and scales in with <code>@starting-style</code>, and page scroll is locked while it is open.</p>
68
+ <div class="cluster">
69
+ <button value="archive" data-variant="danger">Archive</button>
70
+ <button value="cancel" data-variant="secondary">Cancel</button>
71
+ </div>
72
+ </form>
73
+ </dialog>
74
+ </section>
75
+
76
+ <section class="stack" aria-labelledby="carousel-heading">
77
+ <h2 id="carousel-heading">Carousel</h2>
78
+ <ul class="carousel" role="list" aria-label="Release highlights">
79
+ <li class="card stack" data-space="sm"><span class="badge" data-tone="success">New</span><h3>Customizable select</h3><p class="muted">Themed native picker.</p></li>
80
+ <li class="card stack" data-space="sm"><span class="badge">Motion</span><h3>Entry animations</h3><p class="muted">Dialogs and popovers ease in.</p></li>
81
+ <li class="card stack" data-space="sm"><span class="badge">Layout</span><h3>Gap rules</h3><p class="muted">Lines between grid cells.</p></li>
82
+ <li class="card stack" data-space="sm"><span class="badge">Shape</span><h3>Corner shapes</h3><p class="muted">One token, every surface.</p></li>
83
+ <li class="card stack" data-space="sm"><span class="badge" data-tone="warning">Scroll</span><h3>Scroll reveal</h3><p class="muted">Staggered with sibling-index().</p></li>
84
+ </ul>
85
+ </section>
86
+
87
+ <section class="stack" aria-labelledby="rules-heading">
88
+ <h2 id="rules-heading">Gap decorations</h2>
89
+ <div class="grid" data-columns="3" data-rules>
90
+ <article class="stack" data-space="sm"><h3>12</h3><p class="muted">Projects</p></article>
91
+ <article class="stack" data-space="sm"><h3>04</h3><p class="muted">Reviews</p></article>
92
+ <article class="stack" data-space="sm"><h3>96%</h3><p class="muted">Ship rate</p></article>
93
+ </div>
94
+ </section>
95
+
96
+ <section class="stack" aria-labelledby="reveal-heading" style="--pf-corner-shape: squircle">
97
+ <h2 id="reveal-heading">Scroll reveal and squircles</h2>
98
+ <p class="muted">This section sets <code>--pf-corner-shape: squircle</code>.</p>
99
+ <div class="grid" data-columns="3" data-reveal>
100
+ <article class="card"><h3>One</h3><p class="muted">Fades up first.</p></article>
101
+ <article class="card"><h3>Two</h3><p class="muted">Then this one.</p></article>
102
+ <article class="card"><h3>Three</h3><p class="muted">Then this.</p></article>
103
+ <article class="card"><h3>Four</h3><p class="muted">And so on.</p></article>
104
+ <article class="card"><h3>Five</h3><p class="muted">Capped at six steps.</p></article>
105
+ <article class="card"><h3>Six</h3><p class="muted">No script.</p></article>
106
+ </div>
107
+ </section>
108
+ </main>
109
+ </body>
110
+ </html>
@@ -0,0 +1,72 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Projects — @profullstack/css example</title>
7
+ <link rel="stylesheet" href="../css/profullstack.css">
8
+ <style>
9
+ .app-header { border-bottom: 1px solid var(--pf-color-border); }
10
+ .app-header .container { align-items: center; display: flex; justify-content: space-between; min-height: 4.5rem; }
11
+ .app-header a { text-decoration: none; }
12
+ .main-content { padding-block: clamp(2rem, 6vw, 4.5rem); }
13
+ .page-heading, .table-heading { align-items: end; justify-content: space-between; }
14
+ .metric { display: flex; flex-direction: column; gap: 0.35rem; }
15
+ .metric strong { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.06em; line-height: 1; }
16
+ .metric span { color: var(--pf-color-ink-muted); font-size: var(--pf-text-sm); }
17
+ .table-wrap { overflow-x: auto; }
18
+ .table-wrap table { min-width: 40rem; }
19
+ .project-name { font-weight: 650; }
20
+ </style>
21
+ </head>
22
+ <body>
23
+ <header class="app-header">
24
+ <div class="container">
25
+ <a href="index.html"><strong>Fieldnotes</strong></a>
26
+ <nav aria-label="Main navigation">
27
+ <ul class="cluster" role="list">
28
+ <li><a href="#projects" aria-current="page">Projects</a></li>
29
+ <li><a href="invite-form.html">Team</a></li>
30
+ </ul>
31
+ </nav>
32
+ <a class="button" href="invite-form.html">Invite teammate</a>
33
+ </div>
34
+ </header>
35
+ <main class="container stack main-content">
36
+ <header class="cluster page-heading">
37
+ <div class="stack" data-space="sm">
38
+ <p class="eyebrow">Workspace / Projects</p>
39
+ <h1>Project overview</h1>
40
+ <p class="muted">A clear view of what's moving and what needs you.</p>
41
+ </div>
42
+ <a class="button" href="invite-form.html">New project <span aria-hidden="true">+</span></a>
43
+ </header>
44
+
45
+ <section class="grid" data-columns="3" aria-label="Workspace metrics">
46
+ <article class="card metric"><span>Active projects</span><strong>12</strong><span>2 added this month</span></article>
47
+ <article class="card metric"><span>Awaiting review</span><strong>03</strong><span>Oldest request: 1 day</span></article>
48
+ <article class="card metric"><span>Completed this quarter</span><strong>28</strong><span>4 more than last quarter</span></article>
49
+ </section>
50
+
51
+ <section class="stack" id="projects">
52
+ <div class="cluster table-heading">
53
+ <h2>Recent projects</h2>
54
+ <a href="#projects">View all projects →</a>
55
+ </div>
56
+ <div class="card table-wrap">
57
+ <table>
58
+ <caption>Project status updated October 30, 2026</caption>
59
+ <thead><tr><th scope="col">Project</th><th scope="col">Owner</th><th scope="col">Status</th><th scope="col">Updated</th></tr></thead>
60
+ <tbody>
61
+ <tr><th scope="row" class="project-name">Customer portal</th><td>Alex Morgan</td><td><span class="badge" data-tone="success">On track</span></td><td>12 minutes ago</td></tr>
62
+ <tr><th scope="row" class="project-name">Mobile checkout</th><td>Riley Chen</td><td><span class="badge" data-tone="warning">Needs review</span></td><td>Yesterday</td></tr>
63
+ <tr><th scope="row" class="project-name">Usage insights</th><td>Jordan Lee</td><td><span class="badge">Planning</span></td><td>October 27</td></tr>
64
+ </tbody>
65
+ </table>
66
+ </div>
67
+ </section>
68
+
69
+ <p class="alert" role="status" data-tone="success">All project data is up to date.</p>
70
+ </main>
71
+ </body>
72
+ </html>
package/package.json CHANGED
@@ -1,6 +1,50 @@
1
1
  {
2
2
  "name": "@profullstack/css",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "A semantic, agent-friendly CSS foundation for real interfaces.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "style": "./css/profullstack.css",
8
+ "sideEffects": [
9
+ "*.css"
10
+ ],
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "homepage": "https://github.com/profullstack/css#readme",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/profullstack/css.git"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/profullstack/css/issues"
21
+ },
22
+ "files": [
23
+ "css/",
24
+ "docs/",
25
+ "examples/",
26
+ "AGENTS.md",
27
+ "README.md",
28
+ "CHANGELOG.md",
29
+ "LICENSE"
30
+ ],
31
+ "exports": {
32
+ ".": "./css/profullstack.css",
33
+ "./css": "./css/profullstack.css",
34
+ "./tokens": "./css/tokens.css",
35
+ "./manifest": "./css/manifest.json",
36
+ "./platform": "./css/platform.css"
37
+ },
38
+ "keywords": [
39
+ "css",
40
+ "css-framework",
41
+ "semantic-html",
42
+ "accessible",
43
+ "agent-friendly",
44
+ "design-system",
45
+ "modern-css",
46
+ "view-transitions",
47
+ "anchor-positioning",
48
+ "progressive-enhancement"
49
+ ]
50
+ }