@pepperui/css 2.0.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.
Files changed (64) hide show
  1. package/README.md +123 -0
  2. package/dist/pepper-ui.css +5024 -0
  3. package/package.json +38 -0
  4. package/src/base.css +96 -0
  5. package/src/components/alert-dialog.css +50 -0
  6. package/src/components/alert.css +75 -0
  7. package/src/components/avatar.css +47 -0
  8. package/src/components/badge.css +61 -0
  9. package/src/components/breadcrumb.css +40 -0
  10. package/src/components/bullet-list.css +58 -0
  11. package/src/components/button-group.css +51 -0
  12. package/src/components/button.css +165 -0
  13. package/src/components/calendar.css +118 -0
  14. package/src/components/card.css +114 -0
  15. package/src/components/chat.css +473 -0
  16. package/src/components/checkbox.css +105 -0
  17. package/src/components/collapsible.css +121 -0
  18. package/src/components/combobox.css +71 -0
  19. package/src/components/command.css +62 -0
  20. package/src/components/date-picker.css +45 -0
  21. package/src/components/dialog.css +105 -0
  22. package/src/components/dropdown-menu.css +93 -0
  23. package/src/components/empty.css +67 -0
  24. package/src/components/field.css +68 -0
  25. package/src/components/footer.css +122 -0
  26. package/src/components/heading-pair.css +57 -0
  27. package/src/components/icon-button.css +29 -0
  28. package/src/components/icon-list.css +65 -0
  29. package/src/components/input-group.css +92 -0
  30. package/src/components/input.css +84 -0
  31. package/src/components/insight-block.css +63 -0
  32. package/src/components/item.css +67 -0
  33. package/src/components/kbd.css +36 -0
  34. package/src/components/kpi-tile.css +104 -0
  35. package/src/components/label.css +22 -0
  36. package/src/components/layout-utilities.css +115 -0
  37. package/src/components/logo-grid.css +125 -0
  38. package/src/components/native-select.css +78 -0
  39. package/src/components/navigation-menu.css +123 -0
  40. package/src/components/pagination.css +35 -0
  41. package/src/components/popover.css +48 -0
  42. package/src/components/progress.css +42 -0
  43. package/src/components/questionnaire.css +51 -0
  44. package/src/components/radio.css +41 -0
  45. package/src/components/select.css +179 -0
  46. package/src/components/sheet.css +67 -0
  47. package/src/components/sidebar.css +108 -0
  48. package/src/components/skeleton.css +38 -0
  49. package/src/components/slider.css +117 -0
  50. package/src/components/spinner.css +32 -0
  51. package/src/components/states.css +54 -0
  52. package/src/components/stepper.css +76 -0
  53. package/src/components/switch.css +98 -0
  54. package/src/components/table.css +139 -0
  55. package/src/components/tabs.css +104 -0
  56. package/src/components/textarea.css +16 -0
  57. package/src/components/toast.css +78 -0
  58. package/src/components/toggle-group.css +22 -0
  59. package/src/components/toggle.css +86 -0
  60. package/src/components/tooltip.css +54 -0
  61. package/src/components/topbar.css +36 -0
  62. package/src/components/typography.css +83 -0
  63. package/src/ground.css +78 -0
  64. package/src/index.css +77 -0
@@ -0,0 +1,42 @@
1
+ /* progress.css — Progress (10_COMPONENTS.md § Feedback and status).
2
+ *
3
+ * How far a task has come. shadcn progress.tsx on Base UI (D17): an 8 px track, radius full, the indicator from the
4
+ * left — the track border/default and the indicator action/primary/bg, Slider's pair. Paggy's `.loadbar` (app.css:294)
5
+ * stays the deck generator's own hero loader; neither MAFO nor the Cabinet draws a progress bar. An optional row above: what is happening at
6
+ * the left, the number at the right, 12 px. No indeterminate state — that is Spinner. Figma 230:33.
7
+ * Contract: registry/progress/registry.json.
8
+ *
9
+ * <div class="pui-progress" role="progressbar" aria-label="Uploading" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="--pui-progress-value: 50%">
10
+ * <div class="pui-progress__row"><span class="pui-progress__caption">Uploading…</span><span class="pui-progress__label">50%</span></div>
11
+ * <div class="pui-progress__track"><div class="pui-progress__indicator"></div></div></div>
12
+ *
13
+ * Value --pui-progress-value on the block (a percentage); the indicator's width follows it
14
+ */
15
+
16
+ .pui-progress {
17
+ --pui-progress-value: 0%;
18
+ display: flex;
19
+ flex-direction: column;
20
+ gap: var(--pui-space-4);
21
+ width: 100%;
22
+ font-family: var(--pui-font-family);
23
+ font-size: var(--pui-font-size-12);
24
+ line-height: var(--pui-font-line-height-normal);
25
+ color: var(--pui-text-default);
26
+ }
27
+ .pui-progress__row { display: flex; justify-content: space-between; gap: var(--pui-space-8); }
28
+ .pui-progress__caption { color: var(--pui-text-muted); }
29
+ .pui-progress__label { font-weight: var(--pui-font-weight-500); }
30
+ .pui-progress__track {
31
+ height: var(--pui-space-8);
32
+ overflow: hidden;
33
+ border-radius: var(--pui-radius-full);
34
+ background: var(--pui-border-default);
35
+ }
36
+ .pui-progress__indicator {
37
+ width: var(--pui-progress-value);
38
+ height: 100%;
39
+ border-radius: var(--pui-radius-full);
40
+ background: var(--pui-action-primary-bg);
41
+ transition: width var(--pui-motion-move) var(--pui-motion-easing);
42
+ }
@@ -0,0 +1,51 @@
1
+ /* questionnaire.css — Questionnaire step (10_COMPONENTS.md § Forms).
2
+ *
3
+ * One question of a form taken in steps: the site's lead-form card with a step line, a title, one or two fields, an
4
+ * optional consent and Back / Next. Quoted from the site's 2026 forms: `.form-card` (echoai.css:939 — 444 wide,
5
+ * surface/card, a 2 px border/default, radius/16, padding 32, gap 24), `.ui-form__title` (global-2026.css:911 — 22
6
+ * Medium, line-height 1.3); the fields are Field, the consent Checkbox, the buttons Button. Figma 232:10.
7
+ * Contract: registry/questionnaire/registry.json.
8
+ *
9
+ * <form class="pui-questionnaire-step">
10
+ * <div class="pui-progress pui-progress--labelled">…</div>
11
+ * <div class="pui-questionnaire-step__heading"><h2 class="pui-questionnaire-step__title">About your company</h2>
12
+ * <p class="pui-questionnaire-step__description">…</p></div>
13
+ * <div class="pui-questionnaire-step__fields"> …pui-field… </div>
14
+ * <label class="pui-checkbox">…</label>
15
+ * <div class="pui-questionnaire-step__actions"><button class="pui-button pui-button--secondary">Back</button>
16
+ * <button class="pui-button">Next</button></div></form>
17
+ *
18
+ * Rules Back off on the first step; 'Submit' on the last, never 'Next'; the bar moves in equal steps.
19
+ */
20
+
21
+ .pui-questionnaire-step {
22
+ display: flex;
23
+ flex-direction: column;
24
+ gap: var(--pui-space-24);
25
+ box-sizing: border-box;
26
+ width: 100%;
27
+ max-width: 444px; /* the site's .form-card (echoai.css:939) */
28
+ margin: 0;
29
+ padding: var(--pui-space-32);
30
+ border: 2px solid var(--pui-border-default);
31
+ border-radius: var(--pui-radius-16);
32
+ background: var(--pui-surface-card);
33
+ color: var(--pui-text-default);
34
+ font-family: var(--pui-font-family);
35
+ }
36
+ .pui-questionnaire-step__heading { display: flex; flex-direction: column; gap: var(--pui-space-8); }
37
+ .pui-questionnaire-step__title {
38
+ margin: 0;
39
+ font-size: var(--pui-font-size-22);
40
+ font-weight: var(--pui-font-weight-500);
41
+ line-height: 1.3; /* the site's .ui-form__title (global-2026.css:911) */
42
+ }
43
+ .pui-questionnaire-step__description {
44
+ margin: 0;
45
+ color: var(--pui-text-muted);
46
+ font-size: var(--pui-font-size-14);
47
+ line-height: var(--pui-font-line-height-normal);
48
+ }
49
+ .pui-questionnaire-step__fields { display: flex; flex-direction: column; gap: var(--pui-space-24); }
50
+ .pui-questionnaire-step__actions { display: flex; justify-content: space-between; gap: var(--pui-space-8); }
51
+ .pui-questionnaire-step__actions > :only-child { margin-inline-start: auto; }
@@ -0,0 +1,41 @@
1
+ /* radio.css — Radio (10_COMPONENTS.md § Forms).
2
+ *
3
+ * Exactly one choice from a short set. From the site file's Radio master (2134:1372): a 16 px circle, 1 px
4
+ * border/default, white, an 8 px dot in the button black (action/primary/bg) when selected — shadcn's RadioGroupItem
5
+ * is the same circle and dot. Label 14 Regular, 8 px gap, as the checkbox; the shared rules live in checkbox.css
6
+ * (every `.pui-checkbox` selector is paired with `.pui-radio`). Figma 45:2: Checked × five states; error marks the
7
+ * border, the dot stays. Contract: registry/radio-group/registry.json.
8
+ *
9
+ * <fieldset class="pui-radio-group"><legend class="pui-label">Billing</legend>
10
+ * <label class="pui-radio"><input class="pui-radio__input pui-sr-only" type="radio" name="billing">
11
+ * <span class="pui-radio__box"></span><span class="pui-radio__label">Monthly</span></label> …</fieldset>
12
+ *
13
+ * Group .pui-radio-group — a fieldset with a legend, items stacked at shadcn's 12 (space/12)
14
+ */
15
+
16
+ .pui-radio__box { border-radius: var(--pui-radius-full); }
17
+ .pui-radio__box::after {
18
+ content: "";
19
+ position: absolute;
20
+ inset: 50% auto auto 50%;
21
+ width: var(--pui-space-8);
22
+ height: var(--pui-space-8);
23
+ border-radius: var(--pui-radius-full);
24
+ background: var(--pui-action-primary-bg);
25
+ transform: translate(-50%, -50%) scale(0);
26
+ transition: transform var(--pui-motion-state) var(--pui-motion-easing);
27
+ }
28
+ .pui-radio__input:checked + .pui-radio__box::after { transform: translate(-50%, -50%) scale(1); }
29
+ .pui-radio:hover .pui-radio__input:checked + .pui-radio__box::after { background: var(--pui-action-primary-bg-hover); }
30
+
31
+ .pui-radio-group {
32
+ display: flex;
33
+ flex-direction: column;
34
+ gap: var(--pui-space-12);
35
+ margin: 0;
36
+ padding: 0;
37
+ border: 0;
38
+ min-width: 0;
39
+ }
40
+ .pui-radio-group > legend { padding: 0; margin-bottom: var(--pui-space-4); }
41
+ .pui-radio-group--horizontal { flex-direction: row; flex-wrap: wrap; gap: var(--pui-space-16); }
@@ -0,0 +1,179 @@
1
+ /* select.css — Select · Select menu · Select item (10_COMPONENTS.md § Forms).
2
+ *
3
+ * One choice from a list that opens on demand. The trigger is the site file's Select & Combobox master (2334:683):
4
+ * Input's chrome — 36, radius 8, padding 8 / 12, 14 Regular, 1 px border, elevation/flat — with a 16 px Lucide
5
+ * chevron-down in text/muted at the right, an optional leading icon and an optional prefix ("Sort:"). shadcn's
6
+ * SelectTrigger is the same box (h-9, px-3 py-2, chevron size-4 muted). The menu is shadcn's SelectContent (D17):
7
+ * surface/page, border/default, radius 8, padding 4, elevation/floating, the trigger's width, opening 4 px below over
8
+ * motion/menu; a row is SelectItem — padding 8 (36 tall, the medium trigger's height), radius 4, 14 Regular, an
9
+ * optional 16 px icon, a check at the right when selected, hover surface/sunken, disabled .5. Figma: Select 50:2 ·
10
+ * Select item 51:33 · Select menu 52:2. Contracts: registry/select/registry.json.
11
+ *
12
+ * <button class="pui-select" type="button" aria-haspopup="listbox" aria-expanded="false">
13
+ * <span class="pui-select__prefix">Sort:</span>
14
+ * <span class="pui-select__value pui-select__placeholder">Choose…</span>
15
+ * <span class="pui-icon pui-select__chevron">…chevron-down…</span></button>
16
+ * <div class="pui-select-menu" role="listbox">
17
+ * <div class="pui-select-menu__label">Recent</div>
18
+ * <div class="pui-select-item" role="option" aria-selected="true">Newest first
19
+ * <span class="pui-icon pui-select-item__check">…check…</span></div>
20
+ * <div class="pui-select-menu__separator" role="separator"></div> …</div>
21
+ *
22
+ * Trigger Size --small 28 · (none) medium 36 · --large 44; states :hover · :focus-visible / [aria-expanded="true"]
23
+ * · error = [aria-invalid="true"], --error · :disabled; parts __icon (leading), __prefix, __value,
24
+ * __placeholder (the caption ink), __chevron
25
+ * Menu __label (12, text/subtle) · __separator (1 px border/default, 4 above and below) · items
26
+ * Item selected = [aria-selected="true"] shows __check · highlighted = :hover, :focus, [data-highlighted];
27
+ * keyboard focus adds the inset ring on top of the shared surface (3.5.2, as Menu item)
28
+ * (keyboard and pointer share the surface, as shadcn) · [aria-disabled="true"] .5; parts __icon, __check
29
+ * Placing the menu (4 px under the trigger, the trigger's width) is the code side's — this file styles the surfaces.
30
+ * Keyboard the trigger is the tab stop; the menu takes tabindex="-1" and so does every item (3.5.3). The script
31
+ * owes Up / Down, Home / End, Enter / Space to select, Escape to close, and typeahead. Combobox is the
32
+ * same list with the INPUT holding the tab stop and naming the active option with aria-activedescendant.
33
+ */
34
+
35
+ .pui-select,
36
+ .pui-combobox {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ gap: var(--pui-space-8);
40
+ box-sizing: border-box;
41
+ width: 100%;
42
+ min-height: var(--pui-size-control-medium);
43
+ margin: 0;
44
+ padding: calc(var(--pui-space-8) - 1px) calc(var(--pui-space-12) - 1px);
45
+ border: 1px solid var(--pui-border-default);
46
+ border-radius: var(--pui-radius-8);
47
+ background: var(--pui-surface-page);
48
+ box-shadow: var(--pui-elevation-flat);
49
+ color: var(--pui-text-default);
50
+ font-family: var(--pui-font-family);
51
+ font-size: var(--pui-font-size-14);
52
+ font-weight: var(--pui-font-weight-400);
53
+ line-height: var(--pui-font-line-height-normal);
54
+ letter-spacing: var(--pui-font-letter-spacing-normal);
55
+ text-align: start;
56
+ cursor: pointer;
57
+ outline: none;
58
+ -webkit-appearance: none;
59
+ appearance: none;
60
+ transition:
61
+ border-color var(--pui-motion-state) var(--pui-motion-easing),
62
+ box-shadow var(--pui-motion-state) var(--pui-motion-easing);
63
+ }
64
+ .pui-select:hover,
65
+ .pui-combobox:hover { border-color: var(--pui-border-strong); }
66
+ .pui-select:focus-visible,
67
+ .pui-select[aria-expanded="true"],
68
+ .pui-combobox:focus-visible,
69
+ .pui-combobox:focus-within,
70
+ .pui-combobox:has(> [aria-expanded="true"]) { border-color: var(--pui-border-focus); box-shadow: var(--pui-ring); }
71
+ .pui-select[aria-invalid="true"],
72
+ .pui-select--error,
73
+ .pui-combobox[aria-invalid="true"],
74
+ .pui-combobox--error { border-color: var(--pui-border-error); box-shadow: var(--pui-ring-error); }
75
+ .pui-select[aria-invalid="true"]:focus-visible,
76
+ .pui-select--error:focus-visible,
77
+ .pui-combobox[aria-invalid="true"]:focus-within,
78
+ .pui-combobox--error:focus-within { box-shadow: var(--pui-ring-error-focus); } /* 3.5.2 */
79
+ .pui-select:disabled,
80
+ .pui-select[aria-disabled="true"],
81
+ .pui-combobox:disabled,
82
+ .pui-combobox[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
83
+
84
+ .pui-select__value,
85
+ .pui-combobox__value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
86
+ .pui-select__placeholder,
87
+ .pui-combobox__placeholder { color: var(--pui-text-caption); }
88
+ .pui-select__prefix,
89
+ .pui-combobox__prefix { flex: none; color: var(--pui-text-caption); }
90
+ .pui-select__icon,
91
+ .pui-combobox__icon { flex: none; width: var(--pui-size-icon-16); height: var(--pui-size-icon-16); color: var(--pui-text-muted); }
92
+ .pui-select__chevron,
93
+ .pui-combobox__chevron { flex: none; width: var(--pui-size-icon-16); height: var(--pui-size-icon-16); margin-inline-start: auto; color: var(--pui-text-muted); }
94
+
95
+ .pui-select--small,
96
+ .pui-combobox--small {
97
+ min-height: var(--pui-size-control-small);
98
+ padding: calc(var(--pui-space-4) - 1px) calc(var(--pui-space-12) - 1px);
99
+ font-size: var(--pui-font-size-12);
100
+ }
101
+ .pui-select--large,
102
+ .pui-combobox--large {
103
+ min-height: var(--pui-size-control-large);
104
+ padding: calc(var(--pui-space-8) - 1px) calc(var(--pui-space-16) - 1px); /* the height is size/control/large (D41) */
105
+ font-size: var(--pui-font-size-16);
106
+ }
107
+
108
+ /* ── The menu ────────────────────────────────────────────────────────────────────────────────── */
109
+ .pui-select-menu,
110
+ .pui-combobox-menu,
111
+ .pui-dropdown-menu {
112
+ box-sizing: border-box;
113
+ min-width: 100%;
114
+ width: max-content;
115
+ max-width: 100vw;
116
+ padding: var(--pui-space-4);
117
+ border: 1px solid var(--pui-border-default);
118
+ border-radius: var(--pui-radius-8);
119
+ background: var(--pui-surface-page);
120
+ box-shadow: var(--pui-elevation-floating);
121
+ color: var(--pui-text-default);
122
+ font-family: var(--pui-font-family);
123
+ font-size: var(--pui-font-size-14);
124
+ line-height: var(--pui-font-line-height-normal);
125
+ }
126
+ .pui-select-menu[hidden],
127
+ .pui-combobox-menu[hidden],
128
+ .pui-dropdown-menu[hidden] { display: none; }
129
+ .pui-select-menu__label,
130
+ .pui-dropdown-menu__group-label {
131
+ padding: var(--pui-space-4) var(--pui-space-8);
132
+ color: var(--pui-text-caption);
133
+ font-size: var(--pui-font-size-12);
134
+ font-weight: var(--pui-font-weight-400);
135
+ }
136
+ .pui-select-menu__separator,
137
+ .pui-dropdown-menu__separator {
138
+ height: 1px;
139
+ margin: var(--pui-space-4) 0;
140
+ background: var(--pui-border-default);
141
+ }
142
+
143
+ /* ── One row ─────────────────────────────────────────────────────────────────────────────────── */
144
+ .pui-select-item {
145
+ display: flex;
146
+ align-items: center;
147
+ gap: var(--pui-space-8);
148
+ box-sizing: border-box;
149
+ width: 100%;
150
+ margin: 0;
151
+ padding: var(--pui-space-8);
152
+ border: 0;
153
+ border-radius: var(--pui-radius-4);
154
+ background: transparent;
155
+ color: var(--pui-text-default);
156
+ font: inherit;
157
+ text-align: start;
158
+ cursor: pointer;
159
+ outline: none;
160
+ user-select: none;
161
+ }
162
+ .pui-select-item:hover,
163
+ .pui-select-item:focus,
164
+ .pui-select-item:focus-visible,
165
+ .pui-select-item[data-highlighted] { background: var(--pui-surface-sunken); }
166
+ .pui-select-item:focus-visible { box-shadow: var(--pui-ring-inset); } /* 3.5.2, as Menu item */
167
+ .pui-select-item[aria-disabled="true"],
168
+ .pui-select-item:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
169
+ .pui-select-item__icon { flex: none; width: var(--pui-size-icon-16); height: var(--pui-size-icon-16); color: var(--pui-text-muted); }
170
+ .pui-select-item__label { flex: 1 1 auto; min-width: 0; }
171
+ .pui-select-item__check {
172
+ flex: none;
173
+ width: var(--pui-size-icon-16);
174
+ height: var(--pui-size-icon-16);
175
+ margin-inline-start: auto;
176
+ visibility: hidden;
177
+ }
178
+ .pui-select-item[aria-selected="true"] .pui-select-item__check,
179
+ .pui-select-item[data-state="checked"] .pui-select-item__check { visibility: visible; }
@@ -0,0 +1,67 @@
1
+ /* sheet.css — Sheet · Drawer (10_COMPONENTS.md § Navigation and overlay).
2
+ *
3
+ * Sheet: a panel that slides in from the side and keeps the page behind it — shadcn's sheet.tsx on Base UI Dialog
4
+ * (D17; Paggy's docked right panel app.css:435 .side is the house shape at the edge: a left border, padding 16; no MAFO or Cabinet
5
+ * screen draws a side panel today — MAFO's filters sit inline above its tables): 384 wide (max-w-sm), the viewport's height, surface/page, a 1 px border/default
6
+ * on the page side, elevation/modal, padding 16, gap 16; the header (title 18 Medium, description 14 text/muted, a
7
+ * ghost close), the content, a right-aligned footer. Drawer: the bottom sheet on a phone — shadcn's drawer.tsx on vaul:
8
+ * 390 wide, the top corners radius/16, a 100 × 8 handle in border/default, padding 8 / 16 / 16, the header without its
9
+ * close, the content, a footer of two full-width Buttons stacked at space/8. Both share the header parts in
10
+ * dialog.css. Figma: Sheet 251:2131 · Drawer 251:2136. Contracts: registry/sheet/registry.json, registry/drawer/registry.json.
11
+ *
12
+ * <div class="pui-scrim"><div class="pui-sheet" role="dialog" aria-modal="true" aria-labelledby="t"> …__header (h2#t), __content, __footer… </div></div>
13
+ * <div class="pui-scrim"><div class="pui-drawer" role="dialog" aria-labelledby="t"><div class="pui-drawer__handle"></div> …__header, __content, __footer… </div></div>
14
+ *
15
+ * Sheet side (none) right · --left
16
+ * Keyboard as Dialog: focus in on open, held while open, Escape closes and returns it to the opener (3.5.3).
17
+ */
18
+
19
+ .pui-scrim:has(> .pui-sheet) { align-items: stretch; justify-content: flex-end; padding: 0; }
20
+ .pui-scrim:has(> .pui-sheet--left) { justify-content: flex-start; }
21
+ .pui-scrim:has(> .pui-drawer) { align-items: flex-end; justify-content: center; padding: 0; }
22
+
23
+ .pui-sheet {
24
+ width: 384px;
25
+ max-width: 100%;
26
+ height: 100%;
27
+ padding: var(--pui-space-16);
28
+ border-left: 1px solid var(--pui-border-default);
29
+ background: var(--pui-surface-page);
30
+ box-shadow: var(--pui-elevation-modal);
31
+ animation: pui-sheet-in-right var(--pui-motion-menu) var(--pui-motion-easing-enter);
32
+ }
33
+ .pui-sheet--left {
34
+ border-left: 0;
35
+ border-right: 1px solid var(--pui-border-default);
36
+ animation-name: pui-sheet-in-left;
37
+ }
38
+ .pui-sheet__content,
39
+ .pui-drawer__content { flex: 1 1 auto; min-height: 0; overflow: auto; }
40
+
41
+ .pui-drawer {
42
+ width: 390px;
43
+ max-width: 100%;
44
+ max-height: calc(100vh - var(--pui-space-48));
45
+ align-items: stretch;
46
+ padding: var(--pui-space-8) var(--pui-space-16) var(--pui-space-16);
47
+ border-radius: var(--pui-radius-16) var(--pui-radius-16) 0 0;
48
+ background: var(--pui-surface-page);
49
+ box-shadow: var(--pui-elevation-modal);
50
+ animation: pui-drawer-in var(--pui-motion-menu) var(--pui-motion-easing-enter);
51
+ }
52
+ .pui-drawer__handle {
53
+ align-self: center;
54
+ width: 100px;
55
+ height: var(--pui-space-8);
56
+ border-radius: var(--pui-radius-full);
57
+ background: var(--pui-border-default);
58
+ }
59
+ .pui-drawer__footer { display: flex; flex-direction: column; gap: var(--pui-space-8); }
60
+ .pui-drawer__footer > .pui-button { display: flex; width: 100%; }
61
+
62
+ @keyframes pui-sheet-in-right { from { transform: translateX(100%); } }
63
+ @keyframes pui-sheet-in-left { from { transform: translateX(-100%); } }
64
+ @keyframes pui-drawer-in { from { transform: translateY(100%); } }
65
+ @media (prefers-reduced-motion: reduce) {
66
+ .pui-sheet, .pui-drawer { animation: none; }
67
+ }
@@ -0,0 +1,108 @@
1
+ /* sidebar.css — Sidebar · Nav item · Nav section (10_COMPONENTS.md § Shells and patterns).
2
+ *
3
+ * The product's rail — a floating dark panel, not a full-height strip ('full height looks like it came from a
4
+ * constructor; make it a panel in the space' — Fedor, Aug 2026): 240 wide with 24 above and below, right corners 16,
5
+ * on nav/bg (neutral/800 — the concept's 1000 and Paggy's #171717 stated); padding 24 / 16, gap 24; a 36 logo block,
6
+ * groups of links at space/4 and space/16 apart, a spacer, the signed-in person on the hover wash. A Nav item is
7
+ * Paggy's .anav-item and the concepts' Nav_item: nav/item/fg at rest, white on the 8 % wash on hover, white on the
8
+ * 16 % wash when active — a red or accent active pill 'exists nowhere in the design system'; padding space/8 ×
9
+ * space/12, gap space/8, radius/8, body/x-small Regular; a 16 glyph, a count (a yellow Badge), a chevron on
10
+ * nav/section/fg. Nav section: label/medium uppercase at the concept's +8 % tracking (the role's own is +10 % — stated), nav/section/fg. Figma: 178:27 · 177:78 · 177:79.
11
+ * Contracts: registry/sidebar, registry/nav-item.
12
+ *
13
+ * <aside class="pui-sidebar"><div class="pui-sidebar__logo"><img src="…" alt=""><span class="pui-sidebar__product">MAFO</span></div>
14
+ * <nav class="pui-sidebar__nav"><div class="pui-sidebar__group"><div class="pui-nav-section">Workspace</div>
15
+ * <a class="pui-nav-item" href="…" aria-current="page"><span class="pui-icon pui-nav-item__icon">…</span>Dashboard</a>
16
+ * <a class="pui-nav-item" href="…">Optimisations<span class="pui-badge pui-badge--yellow pui-badge--small pui-nav-item__count">3</span>
17
+ * <span class="pui-icon pui-nav-item__chevron">…</span></a></div></nav>
18
+ * <div class="pui-sidebar__spacer"></div>
19
+ * <div class="pui-sidebar__user"><span class="pui-avatar pui-avatar--blue">FK</span><div class="pui-sidebar__user-texts">…</div></div></aside>
20
+ *
21
+ * Nav item :hover · active = [aria-current] or --active · :focus-visible · [aria-disabled="true"] · --nested (a group's child, 2.7.6)
22
+ */
23
+
24
+ .pui-sidebar {
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: var(--pui-space-24);
28
+ box-sizing: border-box;
29
+ width: 240px;
30
+ min-height: 100%;
31
+ padding: var(--pui-space-24) var(--pui-space-16);
32
+ border-radius: 0 var(--pui-radius-16) var(--pui-radius-16) 0;
33
+ background: var(--pui-nav-bg);
34
+ color: var(--pui-nav-item-fg);
35
+ font-family: var(--pui-font-family);
36
+ }
37
+ .pui-sidebar__logo {
38
+ display: flex;
39
+ align-items: center;
40
+ gap: var(--pui-space-12);
41
+ height: var(--pui-size-control-medium);
42
+ padding: 0 var(--pui-space-12);
43
+ }
44
+ .pui-sidebar__logo > img,
45
+ .pui-sidebar__logo > svg { display: block; height: var(--pui-size-control-medium); width: auto; }
46
+ .pui-sidebar__product { color: var(--pui-nav-item-fg-active); font-size: var(--pui-font-size-14); font-weight: var(--pui-font-weight-500); }
47
+ .pui-sidebar__nav { display: flex; flex-direction: column; gap: var(--pui-space-16); }
48
+ .pui-sidebar__group { display: flex; flex-direction: column; gap: var(--pui-space-4); }
49
+ .pui-sidebar__spacer { flex: 1 1 auto; }
50
+ .pui-sidebar__user {
51
+ display: flex;
52
+ align-items: center;
53
+ gap: var(--pui-space-12);
54
+ padding: var(--pui-space-12);
55
+ border-radius: var(--pui-radius-8);
56
+ background: var(--pui-nav-item-bg-hover);
57
+ }
58
+ .pui-sidebar__user-texts { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--pui-space-2); }
59
+ .pui-sidebar__user-name { margin: 0; color: var(--pui-nav-item-fg-active); font-size: var(--pui-font-size-14); font-weight: var(--pui-font-weight-500); line-height: var(--pui-font-line-height-normal); }
60
+ .pui-sidebar__user-role { margin: 0; color: var(--pui-nav-section-fg); font-size: var(--pui-font-size-12); line-height: var(--pui-font-line-height-normal); }
61
+
62
+ .pui-nav-item {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: var(--pui-space-8);
66
+ box-sizing: border-box;
67
+ width: 100%;
68
+ margin: 0;
69
+ padding: var(--pui-space-8) var(--pui-space-12);
70
+ border: 0;
71
+ border-radius: var(--pui-radius-8);
72
+ background: transparent;
73
+ color: var(--pui-nav-item-fg);
74
+ font-family: inherit;
75
+ font-size: var(--pui-font-size-14);
76
+ font-weight: var(--pui-font-weight-400);
77
+ line-height: var(--pui-font-line-height-normal);
78
+ text-align: start;
79
+ text-decoration: none;
80
+ cursor: pointer;
81
+ outline: none;
82
+ transition: background-color var(--pui-motion-state) var(--pui-motion-easing), color var(--pui-motion-state) var(--pui-motion-easing);
83
+ }
84
+ .pui-nav-item:hover { background: var(--pui-nav-item-bg-hover); color: var(--pui-nav-item-fg-active); }
85
+ .pui-nav-item:focus-visible { box-shadow: var(--pui-ring); }
86
+ .pui-nav-item[aria-current],
87
+ .pui-nav-item--active { background: var(--pui-nav-item-bg-active); color: var(--pui-nav-item-fg-active); }
88
+ .pui-nav-item[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
89
+ /* 2.7.6 — a group's child (MAFO's CNavGroup items): indented past the parent's glyph by an icon and a gap */
90
+ .pui-nav-item--nested { padding-inline-start: calc(var(--pui-space-12) + var(--pui-size-icon-16) + var(--pui-space-8)); }
91
+ .pui-nav-item__icon { flex: none; width: var(--pui-size-icon-16); height: var(--pui-size-icon-16); }
92
+ .pui-nav-item__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
93
+ .pui-nav-item__count { flex: none; margin-inline-start: auto; }
94
+ .pui-nav-item__chevron { flex: none; width: var(--pui-size-icon-16); height: var(--pui-size-icon-16); color: var(--pui-nav-section-fg); }
95
+ .pui-nav-item__count + .pui-nav-item__chevron { margin-inline-start: 0; }
96
+ .pui-nav-item__icon + .pui-nav-item__chevron:last-child,
97
+ .pui-nav-item > .pui-nav-item__chevron:last-child { margin-inline-start: auto; }
98
+ .pui-nav-item__count ~ .pui-nav-item__chevron { margin-inline-start: 0; }
99
+
100
+ .pui-nav-section {
101
+ padding: var(--pui-space-8) var(--pui-space-12);
102
+ color: var(--pui-nav-section-fg);
103
+ font-size: var(--pui-type-label-medium-font-size);
104
+ font-weight: var(--pui-font-weight-500);
105
+ line-height: var(--pui-font-line-height-normal);
106
+ letter-spacing: 0.08em; /* the concept's rule (design-rules §B) */
107
+ text-transform: uppercase;
108
+ }
@@ -0,0 +1,38 @@
1
+ /* skeleton.css — Skeleton (10_COMPONENTS.md § Feedback and status).
2
+ *
3
+ * The wait when the shape of what is coming is known. shadcn's skeleton.tsx (D17): surface/sunken with a radius per
4
+ * shape and a 2 s opacity pulse. It follows the ground (ground.css, D107): neutral/100 on white, neutral/200 on the bare
5
+ * product ground. On a tinted card it is white — the slot inversion (D44: surface/slot). In use a skeleton
6
+ * takes the exact size of what it stands in for, so the page does not jump. Figma 62:11: Shape × Size × On card.
7
+ * Contract: registry/skeleton/registry.json.
8
+ *
9
+ * <span class="pui-skeleton pui-skeleton--line" style="width: 280px"></span>
10
+ * <span class="pui-skeleton pui-skeleton--circle pui-skeleton--40"></span>
11
+ * <div class="pui-skeleton pui-skeleton--block" style="height: 120px"></div>
12
+ *
13
+ * Shape (none) line, radius 4, 1 em tall · --circle, radius full · --block, radius 8
14
+ * Size the consumer's — width and height of the thing it stands for; --24 / --40 / --64 for a circle
15
+ * On card --on-card, or automatically inside a tinted .pui-card (surface/slot). In a white card (--plain, --border) it
16
+ * is the grey of a white ground — until 2026-09-17 it was white there too, white on white
17
+ */
18
+
19
+ .pui-skeleton {
20
+ display: block;
21
+ box-sizing: border-box;
22
+ height: 1em;
23
+ border-radius: var(--pui-radius-4);
24
+ background: var(--pui-surface-sunken);
25
+ animation: pui-pulse 2s var(--pui-motion-easing) infinite;
26
+ }
27
+ .pui-skeleton--line { display: inline-block; width: 100%; vertical-align: middle; }
28
+ .pui-skeleton--circle { flex: none; width: var(--pui-space-40); height: var(--pui-space-40); border-radius: var(--pui-radius-full); }
29
+ .pui-skeleton--circle.pui-skeleton--24 { width: var(--pui-space-24); height: var(--pui-space-24); }
30
+ .pui-skeleton--circle.pui-skeleton--64 { width: var(--pui-space-64); height: var(--pui-space-64); }
31
+ .pui-skeleton--block { width: 100%; height: auto; min-height: var(--pui-space-64); border-radius: var(--pui-radius-8); }
32
+ .pui-skeleton--on-card,
33
+ .pui-card:not(.pui-card--plain, .pui-card--border) .pui-skeleton { background: var(--pui-surface-slot); }
34
+
35
+ @keyframes pui-pulse { 50% { opacity: 0.5; } }
36
+ @media (prefers-reduced-motion: reduce) {
37
+ .pui-skeleton { animation: none; }
38
+ }
@@ -0,0 +1,117 @@
1
+ /* slider.css — Slider (10_COMPONENTS.md § Forms).
2
+ *
3
+ * A value or a range on a track. shadcn slider.tsx on Base UI (D17 — Paggy's only slider is the browser's
4
+ * input[type=range] with accent-color blue, app.css:1204, which its own rule bans): a 6 px track in border/default,
5
+ * the filled range and the thumb's border in action/primary/bg, a 16 px white thumb on elevation/flat, elevation/card
6
+ * on hover, the ring on focus, .5 disabled; no error state. Figma 224:45: Type single / range × four states.
7
+ * Contract: registry/slider/registry.json.
8
+ *
9
+ * <input class="pui-slider" type="range" aria-label="Volume" min="0" max="100" value="50" style="--pui-slider-value: 50%">
10
+ *
11
+ * The native control carries Type single; the filled range is a gradient split at --pui-slider-value (the consumer
12
+ * or its script sets it — value / (max − min)). A two-thumb range is JavaScript's (2.7.5): it lays two inputs in a
13
+ * `.pui-slider-range` box, or draws the parts below (__track, __range, __thumb) itself.
14
+ * Rule the value is text beside the track (label 44 wide, the number in 600 at the right — Paggy's row), never
15
+ * on the thumb.
16
+ * Keyboard all of it is the browser's: input[type=range] takes the arrow keys by step, Home / End, and
17
+ * PageUp / PageDown by a larger step. A scripted range slider owes the same on its thumb (3.5.3).
18
+ */
19
+
20
+ .pui-slider {
21
+ --pui-slider-value: 50%;
22
+ display: block;
23
+ box-sizing: border-box;
24
+ width: 100%;
25
+ height: var(--pui-size-icon-16);
26
+ margin: 0;
27
+ padding: 0;
28
+ background: transparent;
29
+ cursor: pointer;
30
+ outline: none;
31
+ -webkit-appearance: none;
32
+ appearance: none;
33
+ }
34
+ .pui-slider::-webkit-slider-runnable-track {
35
+ height: 6px;
36
+ border-radius: var(--pui-radius-full);
37
+ background: linear-gradient(to right, var(--pui-action-primary-bg) var(--pui-slider-value), var(--pui-border-default) var(--pui-slider-value));
38
+ }
39
+ .pui-slider::-moz-range-track {
40
+ height: 6px;
41
+ border-radius: var(--pui-radius-full);
42
+ background: var(--pui-border-default);
43
+ }
44
+ .pui-slider::-moz-range-progress {
45
+ height: 6px;
46
+ border-radius: var(--pui-radius-full);
47
+ background: var(--pui-action-primary-bg);
48
+ }
49
+ .pui-slider::-webkit-slider-thumb {
50
+ -webkit-appearance: none;
51
+ appearance: none;
52
+ box-sizing: border-box;
53
+ width: var(--pui-size-icon-16);
54
+ height: var(--pui-size-icon-16);
55
+ margin-top: -5px;
56
+ border: 1px solid var(--pui-action-primary-bg);
57
+ border-radius: var(--pui-radius-full);
58
+ background: var(--pui-surface-page);
59
+ box-shadow: var(--pui-elevation-flat);
60
+ transition: box-shadow var(--pui-motion-state) var(--pui-motion-easing);
61
+ }
62
+ .pui-slider::-moz-range-thumb {
63
+ box-sizing: border-box;
64
+ width: var(--pui-size-icon-16);
65
+ height: var(--pui-size-icon-16);
66
+ border: 1px solid var(--pui-action-primary-bg);
67
+ border-radius: var(--pui-radius-full);
68
+ background: var(--pui-surface-page);
69
+ box-shadow: var(--pui-elevation-flat);
70
+ }
71
+ .pui-slider:hover::-webkit-slider-thumb { box-shadow: var(--pui-elevation-card); }
72
+ .pui-slider:hover::-moz-range-thumb { box-shadow: var(--pui-elevation-card); }
73
+ /* 3.5.2 — the input's own box is 16 px tall and the thumb fills it, so webkit clips an outset ring
74
+ to nothing and the focused thumb measured 1.31 against its surroundings. The inset half is drawn
75
+ inside the thumb and always shows; the outset half draws what the control's height allows. */
76
+ .pui-slider:focus-visible::-webkit-slider-thumb { box-shadow: var(--pui-ring-inset), var(--pui-ring); }
77
+ .pui-slider:focus-visible::-moz-range-thumb { box-shadow: var(--pui-ring-inset), var(--pui-ring); }
78
+ .pui-slider:disabled { opacity: 0.5; cursor: not-allowed; }
79
+
80
+ /* The drawn parts, for a scripted range slider. */
81
+ .pui-slider-range { position: relative; height: var(--pui-size-icon-16); }
82
+ .pui-slider-range__track {
83
+ position: absolute;
84
+ top: 50%;
85
+ left: 0;
86
+ right: 0;
87
+ height: 6px;
88
+ border-radius: var(--pui-radius-full);
89
+ background: var(--pui-border-default);
90
+ transform: translateY(-50%);
91
+ }
92
+ .pui-slider-range__range {
93
+ position: absolute;
94
+ top: 0;
95
+ bottom: 0;
96
+ border-radius: var(--pui-radius-full);
97
+ background: var(--pui-action-primary-bg);
98
+ }
99
+ .pui-slider-range__thumb {
100
+ position: absolute;
101
+ top: 50%;
102
+ box-sizing: border-box;
103
+ width: var(--pui-size-icon-16);
104
+ height: var(--pui-size-icon-16);
105
+ margin: 0;
106
+ padding: 0;
107
+ border: 1px solid var(--pui-action-primary-bg);
108
+ border-radius: var(--pui-radius-full);
109
+ background: var(--pui-surface-page);
110
+ box-shadow: var(--pui-elevation-flat);
111
+ transform: translate(-50%, -50%);
112
+ cursor: grab;
113
+ outline: none;
114
+ }
115
+ .pui-slider-range__thumb:hover { box-shadow: var(--pui-elevation-card); }
116
+ .pui-slider-range__thumb:focus-visible { box-shadow: var(--pui-ring); }
117
+ .pui-slider-range--disabled { opacity: 0.5; pointer-events: none; }