@birdycom/omniaui 0.12.6 → 0.14.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 (59) hide show
  1. package/bin/lib/copy-js.mjs +5 -1
  2. package/dist/components.css +1194 -45
  3. package/dist/components.min.css +1 -1
  4. package/dist/contact-form.d.ts +5 -0
  5. package/dist/contact-form.js +138 -0
  6. package/dist/fly.d.ts +4 -0
  7. package/dist/fly.js +80 -0
  8. package/dist/form-extras.d.ts +3 -1
  9. package/dist/form-extras.js +21 -3
  10. package/dist/oc-theme.css +3 -1
  11. package/dist/particles.d.ts +14 -0
  12. package/dist/particles.js +133 -0
  13. package/dist/parts/app-accordion-accent.css +18 -1
  14. package/dist/parts/app-callout.css +20 -0
  15. package/dist/parts/app-group.css +36 -0
  16. package/dist/parts/app-result.css +39 -0
  17. package/dist/parts/data-graph.css +132 -0
  18. package/dist/parts/data-meter-row.css +56 -3
  19. package/dist/parts/data-reading.css +26 -0
  20. package/dist/parts/forms-form.css +76 -0
  21. package/dist/parts/forms-language-select.css +18 -0
  22. package/dist/parts/media-lightbox.css +4 -0
  23. package/dist/parts/nav-menu-static.css +50 -0
  24. package/dist/parts/site-backgrounds.css +68 -0
  25. package/dist/parts/site-base.css +33 -0
  26. package/dist/parts/site-brand-mark.css +56 -0
  27. package/dist/parts/site-cards.css +184 -0
  28. package/dist/parts/site-fly.css +40 -0
  29. package/dist/parts/site-layout.css +69 -0
  30. package/dist/parts/site-neon.css +33 -0
  31. package/dist/parts/site-panel.css +29 -0
  32. package/dist/parts/site-prose.css +12 -0
  33. package/dist/parts/utility-hover.css +44 -0
  34. package/dist/showcase.css +83 -19
  35. package/manifest.json +136 -0
  36. package/package.json +5 -2
  37. package/snippets/accordion-accent.html +22 -0
  38. package/snippets/backgrounds.html +18 -0
  39. package/snippets/brand-mark.html +41 -0
  40. package/snippets/callout.html +17 -0
  41. package/snippets/feature-card.html +52 -0
  42. package/snippets/fly-in.html +30 -0
  43. package/snippets/graph.html +41 -0
  44. package/snippets/group.html +34 -0
  45. package/snippets/hover-effects.html +19 -0
  46. package/snippets/icon-list.html +28 -0
  47. package/snippets/language-select.html +11 -0
  48. package/snippets/lazy.html +7 -7
  49. package/snippets/menu-static.html +36 -0
  50. package/snippets/meter-row.html +22 -0
  51. package/snippets/name-card.html +4 -4
  52. package/snippets/neon.html +18 -0
  53. package/snippets/page-sections.html +50 -0
  54. package/snippets/panel.html +18 -0
  55. package/snippets/particle-field.html +14 -0
  56. package/snippets/reading.html +25 -0
  57. package/snippets/result.html +31 -0
  58. package/snippets/ribbon.html +8 -8
  59. package/snippets/shot-grid.html +27 -0
@@ -0,0 +1,132 @@
1
+ /* File: packages/ui/src/parts/data-graph.css
2
+ Map: frame -> edges (moving dashes) -> nodes (halo, dot, mark, label) -> levels -> center node + pulse -> focus
3
+ (one node lit, the rest dimmed) -> tooltip -> reduced motion
4
+ Graph: the look of a small network graph in SVG, a center (a person, an account, a server) with linked nodes
5
+ around it. Draw it yourself (by hand, d3 or any code) with these classes, or let OmniaUI Pro's network graph
6
+ lay it out. Node colors follow the severity tokens: data-level="low|medium|high|critical" on .oc-graph__node.
7
+ <div class="oc-graph"><svg class="oc-graph__svg" viewBox="…">
8
+ <line class="oc-graph__edge" …/>
9
+ <g class="oc-graph__node" data-level="high" transform="translate(…)"><circle class="oc-graph__halo" r="21"/>
10
+ <circle class="oc-graph__dot" r="14"/><text class="oc-graph__mark">▲</text><text class="oc-graph__label" y="27">…</text></g>
11
+ </svg></div> */
12
+
13
+ .oc-graph {
14
+ --oc-graph-accent: var(--oc-accent-from, var(--oc-primary));
15
+ position: relative;
16
+ inline-size: 100%;
17
+ color: var(--oc-foreground);
18
+ }
19
+ .oc-graph__svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
20
+
21
+ /* Edges: thin dashed lines in the accent color that flow from the center outwards. */
22
+ .oc-graph__edge {
23
+ fill: none;
24
+ stroke: var(--oc-graph-accent);
25
+ stroke-opacity: 0.35;
26
+ stroke-width: 1.5;
27
+ stroke-dasharray: 6 4;
28
+ animation: oc-graph-flow 1.5s linear infinite;
29
+ transition: stroke-opacity 0.3s, stroke-width 0.3s;
30
+ }
31
+ @keyframes oc-graph-flow { to { stroke-dashoffset: -20; } }
32
+
33
+ /* Nodes: a soft halo, a dot in the level color, a mark inside and a label under it. */
34
+ .oc-graph__node {
35
+ --oc-graph-color: var(--oc-muted-foreground);
36
+ cursor: default;
37
+ outline: none;
38
+ transition: opacity 0.3s;
39
+ }
40
+ .oc-graph__node[role="button"] { cursor: pointer; }
41
+ .oc-graph__halo {
42
+ fill: none;
43
+ stroke: var(--oc-graph-color);
44
+ stroke-opacity: 0.25;
45
+ stroke-width: 9;
46
+ filter: blur(3px);
47
+ transition: stroke-opacity 0.3s, stroke-width 0.3s;
48
+ }
49
+ .oc-graph__dot {
50
+ fill: var(--oc-graph-color);
51
+ fill-opacity: 0.88;
52
+ transition: fill-opacity 0.3s, scale 0.3s;
53
+ transform-box: fill-box;
54
+ transform-origin: center;
55
+ }
56
+ .oc-graph__mark {
57
+ fill: var(--color-white-50);
58
+ font-size: 10px;
59
+ text-anchor: middle;
60
+ dominant-baseline: central;
61
+ pointer-events: none;
62
+ }
63
+ .oc-graph__label {
64
+ fill: var(--oc-muted-foreground);
65
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
66
+ font-size: 8.5px;
67
+ text-anchor: middle;
68
+ pointer-events: none;
69
+ }
70
+ .oc-graph__node:focus-visible .oc-graph__dot { stroke: var(--oc-ring); stroke-width: 2.5; }
71
+
72
+ /* Levels (the same tokens as the severity card); the tooltip takes the level of its node. */
73
+ .oc-graph__node[data-level="low"],
74
+ .oc-graph__tip[data-level="low"] { --oc-graph-color: var(--oc-success); }
75
+ .oc-graph__node[data-level="medium"],
76
+ .oc-graph__tip[data-level="medium"] { --oc-graph-color: var(--oc-warning); }
77
+ .oc-graph__node[data-level="high"],
78
+ .oc-graph__tip[data-level="high"] { --oc-graph-color: var(--oc-destructive); }
79
+ .oc-graph__node[data-level="critical"],
80
+ .oc-graph__tip[data-level="critical"] { --oc-graph-color: light-dark(var(--color-red-95), var(--color-red-30)); }
81
+
82
+ /* Center: the accent color, a thin white ring and a pulse that grows and fades. */
83
+ .oc-graph__node--center { --oc-graph-color: var(--oc-graph-accent); }
84
+ .oc-graph__node--center .oc-graph__dot { stroke: var(--color-white-50); stroke-opacity: 0.3; stroke-width: 1.5; }
85
+ .oc-graph__node--center .oc-graph__mark { font-size: 13px; }
86
+ .oc-graph__node--center .oc-graph__label { fill: var(--oc-graph-accent); }
87
+ .oc-graph__pulse {
88
+ fill: none;
89
+ stroke: var(--oc-graph-accent);
90
+ stroke-width: 2;
91
+ transform-box: fill-box;
92
+ transform-origin: center;
93
+ animation: oc-graph-pulse 2.2s ease-out infinite;
94
+ }
95
+ @keyframes oc-graph-pulse {
96
+ from { scale: 1; opacity: 0.6; }
97
+ to { scale: 2; opacity: 0; }
98
+ }
99
+
100
+ /* Focus: .is-focused on the graph and .is-active on one node light that node and its edge; the rest dims. */
101
+ .oc-graph.is-focused .oc-graph__node:not(.is-active, .oc-graph__node--center) { opacity: 0.15; }
102
+ .oc-graph.is-focused .oc-graph__edge { stroke-opacity: 0.08; stroke-width: 1; }
103
+ .oc-graph.is-focused .oc-graph__edge.is-active { stroke-opacity: 0.8; stroke-width: 3; }
104
+ .oc-graph__node.is-active .oc-graph__dot { fill-opacity: 1; scale: 1.55; }
105
+ .oc-graph__node.is-active .oc-graph__halo { stroke-opacity: 0.6; stroke-width: 14; }
106
+ .oc-graph__node.is-active .oc-graph__label { fill: var(--oc-graph-accent); }
107
+
108
+ /* Tooltip: level, title and meta lines of the node under the pointer. */
109
+ .oc-graph__tip {
110
+ position: absolute;
111
+ z-index: 5;
112
+ min-inline-size: 10rem;
113
+ max-inline-size: 14rem;
114
+ padding: 0.75rem;
115
+ pointer-events: none;
116
+ opacity: 0;
117
+ background: var(--oc-popover);
118
+ color: var(--oc-popover-foreground);
119
+ border: 1px solid var(--oc-border);
120
+ border-radius: 0.75rem;
121
+ box-shadow: 0 8px 24px oklch(from var(--color-black-60) l c h / 0.15);
122
+ transition: opacity 0.15s;
123
+ }
124
+ .oc-graph__tip.is-visible { opacity: 1; }
125
+ .oc-graph__tip-level { margin-block-end: 0.25rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oc-graph-color, var(--oc-muted-foreground)); }
126
+ .oc-graph__tip-title { margin-block-end: 0.375rem; font-size: 0.75rem; font-weight: 700; }
127
+ .oc-graph__tip-meta { font-size: 0.6875rem; line-height: 1.6; color: var(--oc-muted-foreground); }
128
+
129
+ @media (prefers-reduced-motion: reduce) {
130
+ .oc-graph__edge, .oc-graph__pulse { animation: none; }
131
+ .oc-graph__pulse { opacity: 0; }
132
+ }
@@ -1,6 +1,8 @@
1
- /* File: packages/ui/src/parts/data-meter-row.css | Map: row grid -> label and value -> bar and fill -> levels -> reset line -> list */
1
+ /* File: packages/ui/src/parts/data-meter-row.css | Map: row grid -> label and value -> bar and fill (or a fill element) -> levels -> reset line -> sub-line -> list (compact, dense) */
2
2
  /* Usage meter row: a label, the usage as text, a bar and when it resets. The fill comes from
3
- --oc-meter (0–100%); data-level="warn" or "critical" changes the color. */
3
+ --oc-meter (0–100%); data-level="warn" or "critical" changes the color.
4
+ A live meter can also carry its own fill element (<span class="oc-meter-row__fill" style="inline-size: 42%">):
5
+ patch its inline width in place; the bar then draws no fill of its own. */
4
6
 
5
7
  .oc-meter-row {
6
8
  display: grid;
@@ -27,14 +29,65 @@
27
29
  border-radius: inherit;
28
30
  transition: inline-size 0.4s ease;
29
31
  }
32
+ .oc-meter-row__bar:has(> .oc-meter-row__fill)::before { content: none; }
33
+ .oc-meter-row__fill {
34
+ display: block;
35
+ max-inline-size: 100%;
36
+ block-size: 100%;
37
+ background: var(--oc-meter-color, var(--oc-success));
38
+ border-radius: inherit;
39
+ transition: inline-size 0.4s ease;
40
+ }
30
41
  .oc-meter-row[data-level="warn"] { --oc-meter-color: var(--oc-warning); }
31
42
  .oc-meter-row[data-level="critical"] { --oc-meter-color: var(--oc-destructive); }
32
43
  .oc-meter-row[data-level="critical"] .oc-meter-row__value strong { color: var(--oc-destructive); }
33
44
  .oc-meter-row__reset { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--oc-muted-foreground); }
45
+ /* Sub-line: a muted second reading under the bar ("VRAM 2.7 / 8.0 GB") with an optional thin bar of its own.
46
+ The thin bar takes --oc-meter on itself (or an .oc-meter-row__fill child) and its own data-level. */
47
+ .oc-meter-row__sub {
48
+ grid-column: 1 / -1;
49
+ display: flex;
50
+ align-items: center;
51
+ gap: 0.5rem;
52
+ font-size: 0.75rem;
53
+ font-variant-numeric: tabular-nums;
54
+ color: var(--oc-muted-foreground);
55
+ white-space: nowrap;
56
+ }
57
+ .oc-meter-row__subbar {
58
+ --oc-meter-color: var(--oc-muted-foreground);
59
+ flex: 1;
60
+ min-inline-size: 2rem;
61
+ block-size: 3px;
62
+ overflow: hidden;
63
+ background: var(--oc-muted);
64
+ border-radius: 999px;
65
+ }
66
+ .oc-meter-row__subbar::before {
67
+ content: "";
68
+ display: block;
69
+ inline-size: clamp(0%, var(--oc-meter, 0%), 100%);
70
+ block-size: 100%;
71
+ background: var(--oc-meter-color);
72
+ border-radius: inherit;
73
+ transition: inline-size 0.4s ease;
74
+ }
75
+ .oc-meter-row__subbar:has(> .oc-meter-row__fill)::before { content: none; }
76
+ .oc-meter-row__subbar[data-level="warn"] { --oc-meter-color: var(--oc-warning); }
77
+ .oc-meter-row__subbar[data-level="critical"] { --oc-meter-color: var(--oc-destructive); }
78
+
34
79
  .oc-meter-list { display: grid; gap: 1rem; }
35
80
  .oc-meter-list--compact { gap: 0.625rem; }
36
81
  .oc-meter-list--compact .oc-meter-row__bar { block-size: 0.375rem; }
82
+ /* Dense: for a small widget or tray window (5px bar, smaller label). */
83
+ .oc-meter-list--dense { gap: 0.5rem; }
84
+ .oc-meter-list--dense .oc-meter-row { gap: 0.25rem 0.625rem; }
85
+ .oc-meter-list--dense .oc-meter-row__label { font-size: 0.8rem; }
86
+ .oc-meter-list--dense .oc-meter-row__value { font-size: 0.75rem; }
87
+ .oc-meter-list--dense .oc-meter-row__bar { block-size: 5px; }
37
88
 
38
89
  @media (prefers-reduced-motion: reduce) {
39
- .oc-meter-row__bar::before { transition: none; }
90
+ .oc-meter-row__bar::before,
91
+ .oc-meter-row__subbar::before,
92
+ .oc-meter-row__fill { transition: none; }
40
93
  }
@@ -0,0 +1,26 @@
1
+ /* File: packages/ui/src/parts/data-reading.css | Map: reading -> levels (cool, warm, hot) -> inside a meter row */
2
+ /* Reading: a small measured value next to another value ("57 °C", "1.2 GHz"), in tabular numbers.
3
+ Levels: --cool (muted, the default look), --warm (warning) and --hot (destructive). The app picks the level,
4
+ for example warm from 70 °C and hot from 85 °C. */
5
+
6
+ .oc-reading {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ gap: 0.25rem;
10
+ padding: 0.0625rem 0.375rem;
11
+ font-size: 0.75rem;
12
+ font-weight: 600;
13
+ font-variant-numeric: tabular-nums;
14
+ line-height: 1.4;
15
+ color: var(--oc-reading-color, var(--oc-muted-foreground));
16
+ white-space: nowrap;
17
+ background: oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.1);
18
+ border: 1px solid oklch(from var(--oc-reading-color, var(--oc-muted-foreground)) l c h / 0.25);
19
+ border-radius: 999px;
20
+ }
21
+ .oc-reading--cool { --oc-reading-color: var(--oc-muted-foreground); }
22
+ .oc-reading--warm { --oc-reading-color: var(--oc-warning); }
23
+ .oc-reading--hot { --oc-reading-color: var(--oc-destructive); }
24
+
25
+ /* In the value of a meter row: a little room before it. */
26
+ .oc-meter-row__value .oc-reading { margin-inline-start: 0.375rem; }
@@ -0,0 +1,76 @@
1
+ /* File: packages/ui/src/parts/forms-form.css */
2
+ /* Map: form grid -> label hint -> actions + note -> busy -> filled variant */
3
+ /* A form as one grid of fields with one gap, an "(optional)" hint in a label, a row with the submit button and a short
4
+ note, the busy state while it sends (aria-busy on the form), and .oc-form--filled: fields with a fill and a stronger
5
+ border, for a form on a card, a photo or a dark band. All through the field tokens of .oc-input. */
6
+
7
+ .oc-form {
8
+ display: grid;
9
+ gap: var(--oc-form-gap, 1.1rem);
10
+ }
11
+ .oc-form .oc-field-group { gap: var(--oc-form-gap, 1.1rem); }
12
+ .oc-form .oc-field {
13
+ gap: 0.4rem;
14
+ margin-bottom: 0;
15
+ }
16
+
17
+ /* <label class="oc-field-label">Phone <span class="oc-field-label__hint">(optional)</span></label> */
18
+ .oc-field-label__hint {
19
+ color: var(--oc-muted-foreground);
20
+ font-weight: 400;
21
+ }
22
+
23
+ /* Submit button with a short note next to it (wraps under it on a narrow form). */
24
+ .oc-form-actions {
25
+ display: flex;
26
+ flex-wrap: wrap;
27
+ align-items: center;
28
+ gap: 1rem 1.5rem;
29
+ margin-block-start: 0.4rem;
30
+ }
31
+ .oc-form-note {
32
+ flex: 1 1 16rem;
33
+ margin: 0;
34
+ color: var(--oc-muted-foreground);
35
+ font-size: 0.85rem;
36
+ }
37
+ .oc-form-note a {
38
+ color: var(--oc-primary);
39
+ text-decoration: underline;
40
+ text-underline-offset: 3px;
41
+ }
42
+ .oc-form-note a:hover { color: var(--oc-foreground); }
43
+
44
+ /* While the form sends (form aria-busy="true"): the submit button dims and shows a progress cursor. */
45
+ .oc-form[aria-busy="true"] :is([type="submit"], button:not([type])) {
46
+ opacity: 0.7;
47
+ cursor: progress;
48
+ }
49
+
50
+ /* Filled fields: a fill (dark in dark mode), the strong border, more room and a wider focus ring. */
51
+ .oc-form--filled {
52
+ --oc-input-bg: light-dark(oklch(from var(--oc-foreground) l c h / 0.03), oklch(0 0 0 / 0.25));
53
+ --oc-input-border: var(--oc-border-strong);
54
+ --oc-input-padding: 0.75rem 0.9rem;
55
+ --oc-input-radius: var(--oc-radius-md, 0.75rem);
56
+ --oc-input-size: 1rem;
57
+ --oc-ring-width: 3px;
58
+ --oc-textarea-min: 9rem;
59
+ }
60
+ .oc-form--filled .oc-field-label {
61
+ font-size: 0.9rem;
62
+ font-weight: 600;
63
+ line-height: 1.4;
64
+ }
65
+ .oc-form--filled .oc-field-error { font-size: 0.85rem; }
66
+ .oc-form--filled .oc-select option { background: var(--oc-card); }
67
+
68
+ /* Honeypot: a field for bots, off screen for people. Not display:none (some bots skip hidden fields). Give the wrapper
69
+ aria-hidden="true" and the input tabindex="-1" autocomplete="off"; the server ignores a form where it is filled. */
70
+ .oc-honeypot {
71
+ position: absolute;
72
+ inset-inline-start: -10000px;
73
+ inline-size: 1px;
74
+ block-size: 1px;
75
+ overflow: hidden;
76
+ }
@@ -87,3 +87,21 @@ button.oc-language-select {
87
87
  outline: none;
88
88
  }
89
89
  button.oc-language-select:hover { background: var(--oc-surface); }
90
+
91
+ /* Code: closed it shows only the language code ("NL"), open it shows the native list with the full names.
92
+ 34 × 30px, for the actions of a title bar. The code comes from data-code on the wrapper; form-extras.js (and the
93
+ React, Vue and Blade components) keep it in step with the chosen option (its data-code, else its value). */
94
+ .oc-language-select--code {
95
+ justify-content: center;
96
+ inline-size: 34px;
97
+ block-size: 30px;
98
+ padding: 0;
99
+ border-radius: calc(var(--oc-radius) - 2px);
100
+ font-size: 0.75rem;
101
+ font-weight: 700;
102
+ letter-spacing: 0.04em;
103
+ }
104
+ .oc-language-select--code::before { content: attr(data-code); text-transform: uppercase; pointer-events: none; }
105
+ .oc-language-select--code::after,
106
+ .oc-language-select--code .oc-language-select-icon { display: none; }
107
+ .oc-language-select--code .oc-language-select-control { position: absolute; inset: 0; padding: 0; opacity: 0; }
@@ -97,6 +97,10 @@
97
97
  .oc-lightbox__nav { grid-row: 1; justify-self: center; }
98
98
  .oc-lightbox__nav--prev { grid-column: 1; }
99
99
  .oc-lightbox__nav--next { grid-column: 3; }
100
+ .oc-lightbox__close :is(svg, iconify-icon, .oc-icon) { inline-size: 1.1rem; block-size: 1.1rem; font-size: 1.1rem; }
101
+ /* A <picture> (animated WebP with a still image for "reduce motion") gets the frame; the image fits in it. */
102
+ .oc-lightbox__media > picture { display: grid; overflow: hidden; }
103
+ .oc-lightbox__media > picture > img { max-inline-size: 100%; max-block-size: calc(100dvh - 9rem); object-fit: contain; }
100
104
 
101
105
  /* ---- Caption with the "2 / 5" counter ---- */
102
106
  .oc-lightbox__caption {
@@ -0,0 +1,50 @@
1
+ /* File: packages/ui/src/parts/nav-menu-static.css | Map: static menu (no popover, fills its box) -> check column -> hint -> group title */
2
+ /* Static menu: the dropdown menu as a whole surface of its own, for a tray menu in its own small window or a menu
3
+ inside a panel. .oc-dropdown-menu--static drops the popover position and fills its container.
4
+ Items can carry a check column (.oc-dropdown-check, 20px, shows ✓ when the item has aria-checked="true") and a
5
+ muted hint on the right (.oc-dropdown-hint). Group titles: .oc-dropdown-label; red item: .oc-dropdown-item--destructive. */
6
+
7
+ .oc-dropdown-menu.oc-dropdown-menu--static,
8
+ .oc-dropdown-menu.oc-dropdown-menu--static[popover] {
9
+ position: static;
10
+ display: block;
11
+ inline-size: 100%;
12
+ min-inline-size: 0;
13
+ margin: 0;
14
+ animation: none;
15
+ }
16
+ /* In a transparent desktop window the window is the frame: --flat drops the border and shadow. */
17
+ .oc-dropdown-menu--static.oc-dropdown-menu--flat { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
18
+
19
+ .oc-dropdown-check {
20
+ display: inline-flex;
21
+ flex: none;
22
+ justify-content: center;
23
+ inline-size: 20px;
24
+ margin-inline-start: -4px;
25
+ color: var(--oc-primary);
26
+ }
27
+ .oc-dropdown-check::before {
28
+ content: "";
29
+ inline-size: 0.35rem;
30
+ block-size: 0.65rem;
31
+ border-inline-end: 2px solid currentColor;
32
+ border-block-end: 2px solid currentColor;
33
+ rotate: 45deg;
34
+ translate: 0 -10%;
35
+ opacity: 0;
36
+ }
37
+ .oc-dropdown-item[aria-checked="true"] > .oc-dropdown-check::before { opacity: 1; }
38
+ /* With its own check column, the role-based check mark is not drawn a second time. */
39
+ .oc-dropdown-item:has(> .oc-dropdown-check) { padding-inline-start: 10px; }
40
+ .oc-dropdown-item:has(> .oc-dropdown-check)::before { content: none; }
41
+
42
+ .oc-dropdown-hint {
43
+ margin-inline-start: auto;
44
+ padding-inline-start: 1rem;
45
+ font-size: 0.75rem;
46
+ font-variant-numeric: tabular-nums;
47
+ color: var(--oc-muted-foreground);
48
+ white-space: nowrap;
49
+ }
50
+ .oc-dropdown-menu--static .oc-dropdown-label { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
@@ -0,0 +1,68 @@
1
+ /* File: packages/ui/src/parts/site-backgrounds.css | Map: grid (--fixed, --fade) -> orb (--sm, --drift) -> scan lines -> particle canvas -> reduced motion */
2
+ /* Background pack: decorative layers behind (or over) a page or a section. All are aria-hidden, ignore the pointer and
3
+ follow the theme tokens; put them in a positioned parent (scan lines and the particle canvas cover the viewport unless --local).
4
+ <div class="oc-bg-grid" aria-hidden="true"></div> <div class="oc-orb" aria-hidden="true"></div>
5
+ <div class="oc-scanlines" aria-hidden="true"></div> <canvas class="oc-particles" aria-hidden="true"></canvas> (+ particles.js) */
6
+
7
+ /* Grid: thin lines in the primary color. --oc-bg-grid-size (60px) and --oc-bg-grid-line set the size and the color. */
8
+ .oc-bg-grid {
9
+ position: absolute;
10
+ inset: 0;
11
+ z-index: -1;
12
+ pointer-events: none;
13
+ background-image:
14
+ linear-gradient(var(--oc-bg-grid-line, oklch(from var(--oc-primary) l c h / 0.04)) 1px, transparent 1px),
15
+ linear-gradient(90deg, var(--oc-bg-grid-line, oklch(from var(--oc-primary) l c h / 0.04)) 1px, transparent 1px);
16
+ background-size: var(--oc-bg-grid-size, 60px) var(--oc-bg-grid-size, 60px);
17
+ }
18
+ .oc-bg-grid--fixed { position: fixed; --oc-bg-grid-size: 40px; }
19
+ /* Fade: the lines disappear towards the edges. */
20
+ .oc-bg-grid--fade { mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%); }
21
+
22
+ /* Orb: a soft round glow in the accent color (.oc-accent--violet for another color). Place it with inset-* or translate. */
23
+ .oc-orb {
24
+ position: absolute;
25
+ z-index: -1;
26
+ inline-size: var(--oc-orb-size, min(500px, 90vw));
27
+ aspect-ratio: 1;
28
+ pointer-events: none;
29
+ background: radial-gradient(circle, oklch(from var(--oc-accent-from) l c h / var(--oc-orb-strength, 0.15)) 0%, transparent 70%);
30
+ border-radius: 50%;
31
+ filter: blur(var(--oc-orb-blur, 50px));
32
+ }
33
+ .oc-orb--sm { --oc-orb-size: 18rem; --oc-orb-blur: 35px; }
34
+ .oc-orb--drift { animation: oc-orb-drift 18s ease-in-out infinite alternate; }
35
+ @keyframes oc-orb-drift { to { translate: 3rem 2rem; scale: 1.1; } }
36
+
37
+ /* Scan lines: a fine horizontal raster over the page (2% primary). --local keeps it inside a positioned parent. */
38
+ .oc-scanlines {
39
+ position: fixed;
40
+ inset: 0;
41
+ z-index: var(--oc-scanlines-z, 9999);
42
+ pointer-events: none;
43
+ background: repeating-linear-gradient(
44
+ 0deg,
45
+ transparent 0 2px,
46
+ var(--oc-scanlines-color, oklch(from var(--oc-primary) l c h / 0.02)) 2px 4px
47
+ );
48
+ }
49
+ .oc-scanlines--local { position: absolute; z-index: 1; }
50
+
51
+ /* Particle canvas: particles.js draws drifting points with thin lines between neighbours. It reads two colors from
52
+ this element: color (points and lines) and border-color (a second point color). --local fills a positioned parent. */
53
+ .oc-particles {
54
+ position: fixed;
55
+ inset: 0;
56
+ z-index: -1;
57
+ display: block;
58
+ inline-size: 100%;
59
+ block-size: 100%;
60
+ pointer-events: none;
61
+ color: var(--oc-accent-from);
62
+ border: 0 solid var(--oc-accent-to);
63
+ }
64
+ .oc-particles--local { position: absolute; }
65
+
66
+ @media (prefers-reduced-motion: reduce) {
67
+ .oc-orb--drift { animation: none; }
68
+ }
@@ -0,0 +1,33 @@
1
+ /* File: packages/ui/src/parts/site-base.css */
2
+ /* Map: skip link -> icon */
3
+ /* Two small site helpers: a skip link for keyboard users (hidden above the page until it gets the focus) and a basic
4
+ inline icon (svg or iconify-icon) that is as large as the text around it. */
5
+
6
+ /* <a class="oc-skip-link" href="#main">Skip to content</a> as the first element in <body>. */
7
+ .oc-skip-link {
8
+ position: absolute;
9
+ inset-inline-start: 1rem;
10
+ inset-block-start: 1rem;
11
+ /* Fully above the edge, whatever its height; drops in on focus. */
12
+ translate: 0 calc(-100% - 2rem);
13
+ z-index: 100;
14
+ padding: 0.6rem 1rem;
15
+ border-radius: var(--oc-radius-md, 0.75rem);
16
+ background: var(--oc-foreground);
17
+ color: var(--oc-background);
18
+ font-weight: 600;
19
+ text-decoration: none;
20
+ transition: translate var(--oc-transition-fast);
21
+ }
22
+ .oc-skip-link:focus { translate: none; }
23
+
24
+ /* Inline icon: 1.25em (1.1em in a button), never squeezed in a flex row. */
25
+ .oc-icon {
26
+ inline-size: 1.25em;
27
+ block-size: 1.25em;
28
+ flex-shrink: 0;
29
+ }
30
+ .oc-btn > .oc-icon {
31
+ inline-size: 1.1em;
32
+ block-size: 1.1em;
33
+ }
@@ -0,0 +1,56 @@
1
+ /* File: packages/ui/src/parts/site-brand-mark.css */
2
+ /* Map: brand mark (icon + text) -> word (accent part in the brand gradient) -> tagline -> sizes */
3
+ /* A logo built from an icon and text: the mark (svg or img) with a soft glow in the brand color, the word mark with one
4
+ part in the brand gradient, and a small tagline under it. Sizes --sm and --lg (a footer, a hero or a map). */
5
+
6
+ .oc-brand-mark {
7
+ --oc-brand-mark-icon: 2.25rem;
8
+ --oc-brand-mark-word: 1.35rem;
9
+ --oc-brand-mark-tagline: 0.6rem;
10
+ display: inline-flex;
11
+ align-items: center;
12
+ gap: 0.6rem;
13
+ color: var(--oc-foreground);
14
+ text-decoration: none;
15
+ }
16
+ .oc-brand-mark__icon {
17
+ flex: none;
18
+ inline-size: var(--oc-brand-mark-icon);
19
+ block-size: var(--oc-brand-mark-icon);
20
+ filter: drop-shadow(0 6px 14px oklch(from var(--oc-brand-1) l c h / 0.35));
21
+ }
22
+ .oc-brand-mark__text {
23
+ display: grid;
24
+ line-height: 1;
25
+ }
26
+ .oc-brand-mark__word {
27
+ font-family: var(--oc-font-display, inherit);
28
+ font-size: var(--oc-brand-mark-word);
29
+ font-weight: 800;
30
+ letter-spacing: -0.04em;
31
+ }
32
+ .oc-brand-mark__accent {
33
+ background: linear-gradient(90deg, var(--oc-brand-1), var(--oc-brand-2));
34
+ -webkit-background-clip: text;
35
+ background-clip: text;
36
+ color: transparent;
37
+ }
38
+ .oc-brand-mark__tagline {
39
+ margin-block-start: 0.3rem;
40
+ color: var(--oc-subtle-foreground, var(--oc-muted-foreground));
41
+ font-family: var(--oc-font-mono);
42
+ font-size: var(--oc-brand-mark-tagline);
43
+ font-weight: 600;
44
+ letter-spacing: 0.16em;
45
+ text-transform: uppercase;
46
+ }
47
+ .oc-brand-mark--sm {
48
+ --oc-brand-mark-icon: 1.75rem;
49
+ --oc-brand-mark-word: 1.1rem;
50
+ --oc-brand-mark-tagline: 0.55rem;
51
+ }
52
+ .oc-brand-mark--lg {
53
+ --oc-brand-mark-icon: 2.6rem;
54
+ --oc-brand-mark-word: 1.6rem;
55
+ --oc-brand-mark-tagline: 0.66rem;
56
+ }