@profullstack/css 0.0.0-stage → 0.2.1
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/AGENTS.md +51 -0
- package/CHANGELOG.md +31 -0
- package/LICENSE +21 -0
- package/README.md +124 -2
- package/css/manifest.json +223 -0
- package/css/platform.css +380 -0
- package/css/profullstack.css +487 -0
- package/css/tokens.css +98 -0
- package/docs/agent-guide.md +115 -0
- package/docs/index.html +169 -0
- package/docs/tokens.json +55 -0
- package/examples/index.html +47 -0
- package/examples/invite-form.html +72 -0
- package/examples/platform.html +110 -0
- package/examples/project-dashboard.html +72 -0
- package/package.json +48 -4
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
@layer pf.tokens, pf.reset, pf.base, pf.layout, pf.components, pf.platform, pf.utilities;
|
|
2
|
+
|
|
3
|
+
@import url("./tokens.css");
|
|
4
|
+
@import url("./platform.css");
|
|
5
|
+
|
|
6
|
+
@layer pf.reset {
|
|
7
|
+
*,
|
|
8
|
+
*::before,
|
|
9
|
+
*::after {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html {
|
|
14
|
+
min-width: 320px;
|
|
15
|
+
scroll-behavior: smooth;
|
|
16
|
+
text-size-adjust: 100%;
|
|
17
|
+
-webkit-text-size-adjust: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body,
|
|
21
|
+
h1,
|
|
22
|
+
h2,
|
|
23
|
+
h3,
|
|
24
|
+
h4,
|
|
25
|
+
p,
|
|
26
|
+
figure,
|
|
27
|
+
blockquote,
|
|
28
|
+
dl,
|
|
29
|
+
dd {
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
ul[role="list"],
|
|
34
|
+
ol[role="list"] {
|
|
35
|
+
list-style: none;
|
|
36
|
+
padding: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
img,
|
|
40
|
+
picture,
|
|
41
|
+
video,
|
|
42
|
+
canvas,
|
|
43
|
+
svg {
|
|
44
|
+
display: block;
|
|
45
|
+
max-width: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
input,
|
|
49
|
+
button,
|
|
50
|
+
textarea,
|
|
51
|
+
select {
|
|
52
|
+
font: inherit;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
button,
|
|
56
|
+
[role="button"] {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
button:disabled,
|
|
61
|
+
[aria-disabled="true"] {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
textarea:not([rows]) {
|
|
66
|
+
min-height: 8rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[hidden] {
|
|
70
|
+
display: none !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@layer pf.base {
|
|
75
|
+
:where(body) {
|
|
76
|
+
background: var(--pf-color-canvas);
|
|
77
|
+
color: var(--pf-color-ink);
|
|
78
|
+
font-family: var(--pf-font-sans);
|
|
79
|
+
font-size: clamp(0.96rem, 0.92rem + 0.16vw, var(--pf-text-md));
|
|
80
|
+
line-height: var(--pf-leading-normal);
|
|
81
|
+
min-height: 100vh;
|
|
82
|
+
accent-color: var(--pf-color-primary);
|
|
83
|
+
transition: background-color var(--pf-transition-normal), color var(--pf-transition-normal);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
87
|
+
color: var(--pf-color-ink);
|
|
88
|
+
font-weight: 680;
|
|
89
|
+
letter-spacing: -0.035em;
|
|
90
|
+
line-height: var(--pf-leading-tight);
|
|
91
|
+
text-wrap: balance;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where(h1) { font-size: var(--pf-text-display); }
|
|
95
|
+
:where(h2) { font-size: var(--pf-text-xl); }
|
|
96
|
+
:where(h3) { font-size: clamp(1.15rem, 1.08rem + 0.4vw, 1.45rem); }
|
|
97
|
+
:where(h4, h5, h6) { font-size: 1rem; }
|
|
98
|
+
|
|
99
|
+
:where(p, li, dd) {
|
|
100
|
+
text-wrap: pretty;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:where(a) {
|
|
104
|
+
color: var(--pf-color-primary);
|
|
105
|
+
text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
|
|
106
|
+
text-decoration-thickness: 0.08em;
|
|
107
|
+
text-underline-offset: 0.18em;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:where(a:hover) {
|
|
111
|
+
color: var(--pf-color-primary-hover);
|
|
112
|
+
text-decoration-color: currentColor;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:where(code, kbd, samp, pre) {
|
|
116
|
+
font-family: var(--pf-font-mono);
|
|
117
|
+
font-size: 0.92em;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:where(code, kbd) {
|
|
121
|
+
background: var(--pf-color-surface-raised);
|
|
122
|
+
border: 1px solid var(--pf-color-border);
|
|
123
|
+
border-radius: 0.35rem;
|
|
124
|
+
padding: 0.12em 0.35em;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:where(pre) {
|
|
128
|
+
background: var(--pf-color-surface-raised);
|
|
129
|
+
border: 1px solid var(--pf-color-border);
|
|
130
|
+
border-radius: var(--pf-radius-md);
|
|
131
|
+
color: var(--pf-color-ink);
|
|
132
|
+
max-width: 100%;
|
|
133
|
+
overflow: auto;
|
|
134
|
+
padding: var(--pf-space-5);
|
|
135
|
+
tab-size: 2;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:where(pre code) {
|
|
139
|
+
background: none;
|
|
140
|
+
border: 0;
|
|
141
|
+
padding: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:where(hr) {
|
|
145
|
+
border: 0;
|
|
146
|
+
border-top: 1px solid var(--pf-color-border);
|
|
147
|
+
margin-block: var(--pf-space-6);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:where(small, .muted) {
|
|
151
|
+
color: var(--pf-color-ink-muted);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:where(figure > figcaption) {
|
|
155
|
+
color: var(--pf-color-ink-muted);
|
|
156
|
+
font-size: var(--pf-text-sm);
|
|
157
|
+
margin-top: var(--pf-space-2);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:where(blockquote) {
|
|
161
|
+
border-inline-start: 3px solid var(--pf-color-primary);
|
|
162
|
+
color: var(--pf-color-ink-muted);
|
|
163
|
+
padding-inline-start: var(--pf-space-5);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
:where(:focus-visible) {
|
|
167
|
+
outline: 3px solid var(--pf-color-focus);
|
|
168
|
+
outline-offset: 3px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:where(::selection) {
|
|
172
|
+
background: color-mix(in srgb, var(--pf-color-primary) 28%, transparent);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
:where(:target) {
|
|
176
|
+
scroll-margin-block: 5rem;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@layer pf.layout {
|
|
181
|
+
.container {
|
|
182
|
+
margin-inline: auto;
|
|
183
|
+
max-width: var(--pf-content-width);
|
|
184
|
+
padding-inline: clamp(1rem, 4vw, 2rem);
|
|
185
|
+
width: 100%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.prose {
|
|
189
|
+
max-width: var(--pf-prose-width);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.stack {
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
gap: var(--pf-space-4);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.stack[data-space="sm"] { gap: var(--pf-space-2); }
|
|
199
|
+
.stack[data-space="lg"] { gap: var(--pf-space-6); }
|
|
200
|
+
|
|
201
|
+
.cluster {
|
|
202
|
+
align-items: center;
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-wrap: wrap;
|
|
205
|
+
gap: var(--pf-space-3) var(--pf-space-4);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.grid {
|
|
209
|
+
display: grid;
|
|
210
|
+
gap: var(--pf-space-5);
|
|
211
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
215
|
+
.grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
216
|
+
.grid[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
217
|
+
|
|
218
|
+
.split {
|
|
219
|
+
align-items: center;
|
|
220
|
+
display: grid;
|
|
221
|
+
gap: clamp(2rem, 6vw, 5rem);
|
|
222
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.section {
|
|
226
|
+
padding-block: clamp(3rem, 8vw, 7rem);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@media (max-width: 48rem) {
|
|
230
|
+
.grid[data-columns="2"],
|
|
231
|
+
.grid[data-columns="3"],
|
|
232
|
+
.grid[data-columns="4"],
|
|
233
|
+
.split {
|
|
234
|
+
grid-template-columns: minmax(0, 1fr);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@layer pf.components {
|
|
240
|
+
:where(button, input, select, textarea, fieldset) {
|
|
241
|
+
border-radius: var(--pf-radius-sm);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) {
|
|
245
|
+
background: var(--pf-color-surface);
|
|
246
|
+
border: 1px solid var(--pf-color-border);
|
|
247
|
+
color: var(--pf-color-ink);
|
|
248
|
+
min-height: var(--pf-control-height);
|
|
249
|
+
padding: 0.65rem 0.8rem;
|
|
250
|
+
width: 100%;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
:where(textarea) {
|
|
254
|
+
min-height: 8rem;
|
|
255
|
+
resize: vertical;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
:where(input::placeholder, textarea::placeholder) {
|
|
259
|
+
color: var(--pf-color-ink-muted);
|
|
260
|
+
opacity: 0.8;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:where(input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"]) {
|
|
264
|
+
border-color: var(--pf-color-danger);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
:where(label) {
|
|
268
|
+
color: var(--pf-color-ink);
|
|
269
|
+
display: block;
|
|
270
|
+
font-weight: 580;
|
|
271
|
+
margin-bottom: var(--pf-space-2);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
:where(fieldset) {
|
|
275
|
+
border: 1px solid var(--pf-color-border);
|
|
276
|
+
margin: 0;
|
|
277
|
+
padding: var(--pf-space-4);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
:where(legend) {
|
|
281
|
+
font-weight: 650;
|
|
282
|
+
padding-inline: var(--pf-space-2);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:where(input[type="checkbox"], input[type="radio"]) {
|
|
286
|
+
height: 1.1rem;
|
|
287
|
+
margin-inline-end: 0.4rem;
|
|
288
|
+
vertical-align: -0.15em;
|
|
289
|
+
width: 1.1rem;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
:where(input[type="range"]) { accent-color: var(--pf-color-primary); }
|
|
293
|
+
|
|
294
|
+
:where(button, input[type="submit"], input[type="button"], input[type="reset"], .button) {
|
|
295
|
+
align-items: center;
|
|
296
|
+
background: var(--pf-color-primary);
|
|
297
|
+
border: 1px solid transparent;
|
|
298
|
+
border-radius: var(--pf-radius-sm);
|
|
299
|
+
color: var(--pf-color-on-primary);
|
|
300
|
+
display: inline-flex;
|
|
301
|
+
font-weight: 650;
|
|
302
|
+
gap: var(--pf-space-2);
|
|
303
|
+
justify-content: center;
|
|
304
|
+
min-height: var(--pf-control-height);
|
|
305
|
+
padding: 0.65rem 1rem;
|
|
306
|
+
text-align: center;
|
|
307
|
+
text-decoration: none;
|
|
308
|
+
transition: background-color var(--pf-transition-fast), border-color var(--pf-transition-fast), color var(--pf-transition-fast), transform var(--pf-transition-fast);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
:where(button:hover, input[type="submit"]:hover, input[type="button"]:hover, .button:hover) {
|
|
312
|
+
background: var(--pf-color-primary-hover);
|
|
313
|
+
color: var(--pf-color-on-primary);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
:where(button:active, .button:active) { transform: translateY(1px); }
|
|
317
|
+
|
|
318
|
+
:where(button[data-variant="secondary"], .button[data-variant="secondary"]) {
|
|
319
|
+
background: var(--pf-color-surface);
|
|
320
|
+
border-color: var(--pf-color-border);
|
|
321
|
+
color: var(--pf-color-ink);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
:where(button[data-variant="secondary"]:hover, .button[data-variant="secondary"]:hover) {
|
|
325
|
+
background: var(--pf-color-surface-raised);
|
|
326
|
+
color: var(--pf-color-ink);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:where(button[data-variant="ghost"], .button[data-variant="ghost"]) {
|
|
330
|
+
background: transparent;
|
|
331
|
+
color: var(--pf-color-primary);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
:where(button[data-variant="danger"], .button[data-variant="danger"]) {
|
|
335
|
+
background: var(--pf-color-danger);
|
|
336
|
+
color: var(--pf-color-surface);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
:where(button:disabled, button[aria-disabled="true"], .button[aria-disabled="true"]) {
|
|
340
|
+
opacity: 0.56;
|
|
341
|
+
transform: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
:where(table) {
|
|
345
|
+
border-collapse: collapse;
|
|
346
|
+
width: 100%;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
:where(caption) {
|
|
350
|
+
color: var(--pf-color-ink-muted);
|
|
351
|
+
font-size: var(--pf-text-sm);
|
|
352
|
+
padding: 0.6rem;
|
|
353
|
+
text-align: start;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
:where(th, td) {
|
|
357
|
+
border-bottom: 1px solid var(--pf-color-border);
|
|
358
|
+
padding: 0.75rem 0.9rem;
|
|
359
|
+
text-align: start;
|
|
360
|
+
vertical-align: top;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
:where(th) {
|
|
364
|
+
font-size: var(--pf-text-sm);
|
|
365
|
+
font-weight: 680;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
:where(thead th) { background: var(--pf-color-surface-raised); }
|
|
369
|
+
|
|
370
|
+
:where(details) {
|
|
371
|
+
border-bottom: 1px solid var(--pf-color-border);
|
|
372
|
+
padding-block: var(--pf-space-3);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
:where(summary) {
|
|
376
|
+
cursor: pointer;
|
|
377
|
+
font-weight: 620;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
:where(details[open] summary) { margin-bottom: var(--pf-space-3); }
|
|
381
|
+
|
|
382
|
+
:where(progress, meter) {
|
|
383
|
+
accent-color: var(--pf-color-primary);
|
|
384
|
+
width: 100%;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
:where(dialog) {
|
|
388
|
+
background: var(--pf-color-surface);
|
|
389
|
+
border: 1px solid var(--pf-color-border);
|
|
390
|
+
border-radius: var(--pf-radius-lg);
|
|
391
|
+
box-shadow: var(--pf-shadow-md);
|
|
392
|
+
color: var(--pf-color-ink);
|
|
393
|
+
max-height: min(90vh, 50rem);
|
|
394
|
+
max-width: min(40rem, calc(100vw - 2rem));
|
|
395
|
+
padding: clamp(1.25rem, 4vw, 2rem);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
:where(dialog::backdrop) { background: rgb(7 18 19 / 62%); }
|
|
399
|
+
|
|
400
|
+
:where(mark) {
|
|
401
|
+
background: color-mix(in srgb, var(--pf-color-accent) 42%, transparent);
|
|
402
|
+
color: inherit;
|
|
403
|
+
padding-inline: 0.16em;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.card {
|
|
407
|
+
background: var(--pf-color-surface);
|
|
408
|
+
border: 1px solid var(--pf-color-border);
|
|
409
|
+
border-radius: var(--pf-radius-md);
|
|
410
|
+
box-shadow: var(--pf-shadow-sm);
|
|
411
|
+
padding: clamp(1rem, 2vw, 1.5rem);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.alert {
|
|
415
|
+
background: var(--pf-color-surface);
|
|
416
|
+
border: 1px solid var(--pf-color-border);
|
|
417
|
+
border-inline-start: 4px solid var(--pf-color-info);
|
|
418
|
+
border-radius: var(--pf-radius-sm);
|
|
419
|
+
padding: var(--pf-space-4);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.alert[data-tone="success"] { border-inline-start-color: var(--pf-color-success); }
|
|
423
|
+
.alert[data-tone="warning"] { border-inline-start-color: var(--pf-color-warning); }
|
|
424
|
+
.alert[data-tone="danger"] { border-inline-start-color: var(--pf-color-danger); }
|
|
425
|
+
|
|
426
|
+
.badge {
|
|
427
|
+
align-items: center;
|
|
428
|
+
background: var(--pf-color-surface-raised);
|
|
429
|
+
border: 1px solid var(--pf-color-border);
|
|
430
|
+
border-radius: var(--pf-radius-pill);
|
|
431
|
+
color: var(--pf-color-ink-muted);
|
|
432
|
+
display: inline-flex;
|
|
433
|
+
font-size: var(--pf-text-xs);
|
|
434
|
+
font-weight: 680;
|
|
435
|
+
gap: var(--pf-space-1);
|
|
436
|
+
line-height: 1.4;
|
|
437
|
+
padding: 0.25rem 0.6rem;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.stack > .badge { align-self: flex-start; }
|
|
441
|
+
|
|
442
|
+
.badge[data-tone="success"] { color: var(--pf-color-success); }
|
|
443
|
+
.badge[data-tone="warning"] { color: var(--pf-color-warning); }
|
|
444
|
+
.badge[data-tone="danger"] { color: var(--pf-color-danger); }
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
@layer pf.utilities {
|
|
448
|
+
.muted { color: var(--pf-color-ink-muted); }
|
|
449
|
+
.eyebrow {
|
|
450
|
+
color: var(--pf-color-primary);
|
|
451
|
+
font-size: var(--pf-text-xs);
|
|
452
|
+
font-weight: 750;
|
|
453
|
+
letter-spacing: 0.12em;
|
|
454
|
+
text-transform: uppercase;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.surface {
|
|
458
|
+
background: var(--pf-color-surface);
|
|
459
|
+
border: 1px solid var(--pf-color-border);
|
|
460
|
+
border-radius: var(--pf-radius-lg);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.text-center { text-align: center; }
|
|
464
|
+
.text-balance { text-wrap: balance; }
|
|
465
|
+
.nowrap { white-space: nowrap; }
|
|
466
|
+
.w-full { width: 100%; }
|
|
467
|
+
.sr-only {
|
|
468
|
+
clip: rect(0, 0, 0, 0);
|
|
469
|
+
clip-path: inset(50%);
|
|
470
|
+
height: 1px;
|
|
471
|
+
overflow: hidden;
|
|
472
|
+
position: absolute;
|
|
473
|
+
white-space: nowrap;
|
|
474
|
+
width: 1px;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
@media (prefers-reduced-motion: reduce) {
|
|
478
|
+
*,
|
|
479
|
+
*::before,
|
|
480
|
+
*::after {
|
|
481
|
+
animation-duration: 0.01ms !important;
|
|
482
|
+
animation-iteration-count: 1 !important;
|
|
483
|
+
scroll-behavior: auto !important;
|
|
484
|
+
transition-duration: 0.01ms !important;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
package/css/tokens.css
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
@layer pf.tokens {
|
|
2
|
+
:root {
|
|
3
|
+
color-scheme: light dark;
|
|
4
|
+
--pf-color-canvas: #f7f8fa;
|
|
5
|
+
--pf-color-surface: #ffffff;
|
|
6
|
+
--pf-color-surface-raised: #ffffff;
|
|
7
|
+
--pf-color-ink: #14212b;
|
|
8
|
+
--pf-color-ink-muted: #53616c;
|
|
9
|
+
--pf-color-border: #d9e0e6;
|
|
10
|
+
--pf-color-primary: #126b55;
|
|
11
|
+
--pf-color-primary-hover: #0d5846;
|
|
12
|
+
--pf-color-on-primary: #ffffff;
|
|
13
|
+
--pf-color-accent: #f0a54a;
|
|
14
|
+
--pf-color-danger: #b42332;
|
|
15
|
+
--pf-color-success: #176b45;
|
|
16
|
+
--pf-color-warning: #8a4b00;
|
|
17
|
+
--pf-color-info: #175f9b;
|
|
18
|
+
--pf-color-focus: #126b55;
|
|
19
|
+
--pf-shadow-sm: 0 1px 2px rgb(15 32 43 / 8%);
|
|
20
|
+
--pf-shadow-md: 0 14px 38px rgb(15 32 43 / 10%);
|
|
21
|
+
--pf-radius-sm: 0.5rem;
|
|
22
|
+
--pf-radius-md: 0.85rem;
|
|
23
|
+
--pf-radius-lg: 1.25rem;
|
|
24
|
+
--pf-radius-pill: 999px;
|
|
25
|
+
--pf-corner-shape: round;
|
|
26
|
+
--pf-carousel-item: 20rem;
|
|
27
|
+
--pf-space-1: 0.25rem;
|
|
28
|
+
--pf-space-2: 0.5rem;
|
|
29
|
+
--pf-space-3: 0.75rem;
|
|
30
|
+
--pf-space-4: 1rem;
|
|
31
|
+
--pf-space-5: 1.5rem;
|
|
32
|
+
--pf-space-6: 2rem;
|
|
33
|
+
--pf-space-7: 3rem;
|
|
34
|
+
--pf-space-8: 4rem;
|
|
35
|
+
--pf-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
36
|
+
--pf-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
|
|
37
|
+
--pf-text-xs: 0.78rem;
|
|
38
|
+
--pf-text-sm: 0.9rem;
|
|
39
|
+
--pf-text-md: 1rem;
|
|
40
|
+
--pf-text-lg: 1.2rem;
|
|
41
|
+
--pf-text-xl: clamp(1.6rem, 3vw, 2.4rem);
|
|
42
|
+
--pf-text-display: clamp(2.5rem, 6vw, 5.5rem);
|
|
43
|
+
--pf-leading-tight: 1.08;
|
|
44
|
+
--pf-leading-normal: 1.6;
|
|
45
|
+
--pf-content-width: 72rem;
|
|
46
|
+
--pf-prose-width: 68ch;
|
|
47
|
+
--pf-control-height: 2.8rem;
|
|
48
|
+
--pf-transition-fast: 140ms ease;
|
|
49
|
+
--pf-transition-normal: 220ms ease;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (prefers-color-scheme: dark) {
|
|
53
|
+
:root:not([data-theme="light"]) {
|
|
54
|
+
--pf-color-canvas: #101719;
|
|
55
|
+
--pf-color-surface: #172123;
|
|
56
|
+
--pf-color-surface-raised: #1d2a2c;
|
|
57
|
+
--pf-color-ink: #eaf2ef;
|
|
58
|
+
--pf-color-ink-muted: #afbfba;
|
|
59
|
+
--pf-color-border: #354648;
|
|
60
|
+
--pf-color-primary: #6fd0aa;
|
|
61
|
+
--pf-color-primary-hover: #89e2bb;
|
|
62
|
+
--pf-color-on-primary: #0d2920;
|
|
63
|
+
--pf-color-accent: #ffc36d;
|
|
64
|
+
--pf-color-danger: #ff8d98;
|
|
65
|
+
--pf-color-success: #79d6a7;
|
|
66
|
+
--pf-color-warning: #ffcb78;
|
|
67
|
+
--pf-color-info: #8fc8ff;
|
|
68
|
+
--pf-color-focus: #89e2bb;
|
|
69
|
+
--pf-shadow-sm: 0 1px 2px rgb(0 0 0 / 25%);
|
|
70
|
+
--pf-shadow-md: 0 14px 38px rgb(0 0 0 / 25%);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:root[data-theme="light"] {
|
|
75
|
+
color-scheme: light;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:root[data-theme="dark"] {
|
|
79
|
+
color-scheme: dark;
|
|
80
|
+
--pf-color-canvas: #101719;
|
|
81
|
+
--pf-color-surface: #172123;
|
|
82
|
+
--pf-color-surface-raised: #1d2a2c;
|
|
83
|
+
--pf-color-ink: #eaf2ef;
|
|
84
|
+
--pf-color-ink-muted: #afbfba;
|
|
85
|
+
--pf-color-border: #354648;
|
|
86
|
+
--pf-color-primary: #6fd0aa;
|
|
87
|
+
--pf-color-primary-hover: #89e2bb;
|
|
88
|
+
--pf-color-on-primary: #0d2920;
|
|
89
|
+
--pf-color-accent: #ffc36d;
|
|
90
|
+
--pf-color-danger: #ff8d98;
|
|
91
|
+
--pf-color-success: #79d6a7;
|
|
92
|
+
--pf-color-warning: #ffcb78;
|
|
93
|
+
--pf-color-info: #8fc8ff;
|
|
94
|
+
--pf-color-focus: #89e2bb;
|
|
95
|
+
--pf-shadow-sm: 0 1px 2px rgb(0 0 0 / 25%);
|
|
96
|
+
--pf-shadow-md: 0 14px 38px rgb(0 0 0 / 25%);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Build with Profullstack CSS
|
|
2
|
+
|
|
3
|
+
This framework treats HTML as the shared interface between the browser, the person reading the code, and the agent generating it. The markup carries meaning and behavior. CSS gives that markup a coherent, responsive visual system.
|
|
4
|
+
|
|
5
|
+
## The generation loop
|
|
6
|
+
|
|
7
|
+
1. Describe the page structure with landmarks and native elements.
|
|
8
|
+
2. Choose a documented layout primitive (`.container`, `.stack`, `.cluster`, `.grid`, `.split`, or `.section`).
|
|
9
|
+
3. Add a documented component (`.card`, `.button`, `.alert`, `.badge`) only where it adds a clear visual role.
|
|
10
|
+
4. Reuse `--pf-*` tokens for any page-specific styling.
|
|
11
|
+
5. Keep interaction logic in HTML or application code, then verify it with keyboard and assistive technology.
|
|
12
|
+
|
|
13
|
+
## Why the contract is small
|
|
14
|
+
|
|
15
|
+
Agents often generate class names that look plausible but do not exist. A bounded vocabulary makes generated markup more predictable: `css/manifest.json` enumerates every supported class and variant. Unknown patterns should be composed from native HTML and existing tokens instead of guessed framework APIs.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npm install @profullstack/css
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```css
|
|
24
|
+
@import "@profullstack/css";
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The package is plain CSS. Import it in the app's global stylesheet, before app-specific rules. No JavaScript setup or runtime dependency is required.
|
|
28
|
+
|
|
29
|
+
## Page skeleton
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<header class="container cluster">
|
|
33
|
+
<a href="/" aria-label="Acme home">Acme</a>
|
|
34
|
+
<nav aria-label="Main navigation">
|
|
35
|
+
<ul class="cluster" role="list">
|
|
36
|
+
<li><a href="/docs">Docs</a></li>
|
|
37
|
+
<li><a href="/pricing">Pricing</a></li>
|
|
38
|
+
</ul>
|
|
39
|
+
</nav>
|
|
40
|
+
</header>
|
|
41
|
+
|
|
42
|
+
<main class="container stack section">
|
|
43
|
+
<header class="stack" data-space="sm">
|
|
44
|
+
<p class="eyebrow">Workspace</p>
|
|
45
|
+
<h1>Good morning, Alex.</h1>
|
|
46
|
+
<p class="muted">A clear sentence explaining this page.</p>
|
|
47
|
+
</header>
|
|
48
|
+
|
|
49
|
+
<section class="grid" data-columns="3" aria-label="Workspace summary">
|
|
50
|
+
<article class="card stack" data-space="sm">
|
|
51
|
+
<h2>Projects</h2>
|
|
52
|
+
<p>12 active projects</p>
|
|
53
|
+
</article>
|
|
54
|
+
</section>
|
|
55
|
+
</main>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Forms
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<form class="stack">
|
|
62
|
+
<div>
|
|
63
|
+
<label for="email">Work email</label>
|
|
64
|
+
<input id="email" name="email" type="email" autocomplete="email"
|
|
65
|
+
aria-describedby="email-hint" required>
|
|
66
|
+
<small id="email-hint">We'll send your invite here.</small>
|
|
67
|
+
</div>
|
|
68
|
+
<button type="submit">Send invite</button>
|
|
69
|
+
</form>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Provide error text and connect it to its field. Do not use placeholder text as the only label.
|
|
73
|
+
|
|
74
|
+
## Platform features
|
|
75
|
+
|
|
76
|
+
The platform layer upgrades native markup in browsers that support it and leaves the baseline everywhere else. Use the markup below and nothing more.
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<!-- Anchored popover: placed under the button, flips when space runs out -->
|
|
80
|
+
<button type="button" popovertarget="help">What's included?</button>
|
|
81
|
+
<div id="help" popover data-anchor>Ten seats, SSO and audit logs.</div>
|
|
82
|
+
|
|
83
|
+
<!-- Modal dialog with no script: invoker command, light dismiss, animated -->
|
|
84
|
+
<button type="button" commandfor="confirm" command="show-modal">Archive</button>
|
|
85
|
+
<dialog id="confirm" closedby="any" aria-labelledby="confirm-title">
|
|
86
|
+
<form method="dialog" class="stack">
|
|
87
|
+
<h2 id="confirm-title">Archive this project?</h2>
|
|
88
|
+
<div class="cluster"><button value="yes" data-variant="danger">Archive</button><button value="no" data-variant="secondary">Cancel</button></div>
|
|
89
|
+
</form>
|
|
90
|
+
</dialog>
|
|
91
|
+
|
|
92
|
+
<!-- Carousel: scroll-snap everywhere, native buttons and markers where supported -->
|
|
93
|
+
<ul class="carousel" role="list" aria-label="Highlights">
|
|
94
|
+
<li class="card">One</li><li class="card">Two</li><li class="card">Three</li>
|
|
95
|
+
</ul>
|
|
96
|
+
|
|
97
|
+
<!-- Divider lines between grid cells, and a staggered scroll-in -->
|
|
98
|
+
<div class="grid" data-columns="3" data-rules>…</div>
|
|
99
|
+
<div class="grid" data-reveal>…</div>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Automatic upgrades need no markup: a single `<select>` gets a themed picker, a `<textarea>` without `rows` grows with its content, invalid fields turn red only after interaction, `<details>` animates its height, page scroll locks while a modal is open, and same-origin navigations cross-fade. Disable the cross-fade with `@view-transition { navigation: none; }` in the app stylesheet.
|
|
103
|
+
|
|
104
|
+
Corner shape is one token: `:root { --pf-corner-shape: squircle; }` reshapes cards, buttons, inputs, dialogs, and popovers.
|
|
105
|
+
|
|
106
|
+
## Theme control
|
|
107
|
+
|
|
108
|
+
The browser preference is the default. An app with a theme setting can write `data-theme="light"` or `data-theme="dark"` onto the root `<html>` element. The application owns persistence and the control; the stylesheet only provides the colors.
|
|
109
|
+
|
|
110
|
+
## Reference files
|
|
111
|
+
|
|
112
|
+
- `css/manifest.json`: stable machine-readable classes, variants, tokens, and rules.
|
|
113
|
+
- `docs/tokens.json`: token groups for tooling and design handoff.
|
|
114
|
+
- `css/tokens.css`: actual CSS custom property values and theme overrides.
|
|
115
|
+
- `examples/`: complete HTML pages using the package.
|