# OzoneUI (`oz-*`) — AI-Native Quad-Domain UI Framework > Zero-dependency Web Standards framework (OKLCH Atmospheric CSS + Custom Elements). Works in plain HTML, PHP, React, Vue, Svelte, or streamed JSON via ``. ## Setup (Zero-Build) ```html ``` ## Global Attributes, Branding & Modes - `data-oz-preset="ozone | emerald | fintech | amethyst | ai | crimson | gaming | amber | luxury | ocean | saas | nordic | enterprise | daylight | quartz"` (zero-config global OR section-scoped `
` palettes) - `data-oz-brand="#RRGGBB"` + `data-oz-harmony="analogous | complementary | triadic | monochrome"` (auto-computes OKLCH palette from any HEX color) - `data-oz-density="compact | default | spacious"` (UI density & corner geometry) - `data-oz-brand-name="Client Name"` (global white-label company identity) - URL auto-branding: `?preset=fintech&brand=10b981&name=PayFlow` (shareable client demo links) - `data-oz-mode="atmospheric | precision"` (glass refraction vs crisp 1px enterprise) - `data-oz-theme="dark | light"` - `data-oz-privacy="true | false"` (blurs any `[mask]` PII/financial values) - `data-oz-sound="on | off"` (procedural Web Audio micro-FX) - `data-oz-icon-set="builtin | lucide | ph | tabler | solar | heroicons"` (global vector icon pack) - `mask="blur | secret"` on ``, ``, or table cells - `exportable` on `` (SVG), `` (CSV/JSON), `` - `src="url | mock://metrics | mock://users | mock://products"` + `poll="5s"` for zero-JS live data ## Hallucination-Proof Prop Aliasing All `` tags accept natural aliases automatically: - `variant` = `type` | `color` | `theme` | `kind` (`primary|glow|glass|ghost|danger|success`) - Text content works via innerHTML slot OR `label` | `text` | `title` | `content` - Icons: Always use `` or `icon="..."` props (never raw OS emojis) ## Quad-Domain Components ### 1. Core Foundation - `` - `` - `` - `` - `` - `` - `
...
` (or `tabs="Overview,Users,Billing"`) - `` - `` ### 2. Admin Backends & BI - `` - `` - `` - `` (auto-morphs raw JSON between 4 views) ### 3. High-End Landing Pages - `...actions...` - `` (drag-and-drop card reordering) - `` - `...items...` ### 4. Marketplaces & Social Networks - `` - `` - `` - `` ### 5. AI-Native & Spatial OS Layer - `` - `` (`Cmd/Ctrl+K` palette) - `` (`Alt+O` Theme DNA studio) ### 6. Layout, Navigation & Feedback - `` - `` - `` - `` - `` - `` - `` ### App shell & sidebar - `` children: one ``, any content, and `slot="actions"` buttons for the topbar. Add `fill` for a fixed-height app. - `` Optional: `side="right"`, `variant="glass|solid|floating"`, `collapsed`, `width="280px"`. Collapses to an icon rail, becomes a drawer under 900px. Events: `oz-navigate`, `oz-collapse`. Put `data-oz-sidebar-toggle` on any button to toggle it. ### Form controls (all accept label, hint, error, disabled; all emit `oz-change`) - `` (options may also be csv: `options="A,B,C"`) - `` (`indeterminate` supported) - `` (`inline` for a row) - `` - `` - `` - `` emits `oz-files` with `detail.files` - `` (`detail.values` array) ### Parallax, Motion & Modern Interactive (Pack F — 49 total components) - `` Multi-layer scroll + pointer parallax scene; put `[data-depth="-0.3"]`, `[data-depth="0.4"]` on child elements for independent depth motion. - `` Scroll-triggered `IntersectionObserver` reveal animation. - `` Cursor-tracking radial spotlight surface wrapper. - `` Slide-over drawer sheet with optional `slot="footer"`. Fires `oz-open`, `oz-close`. - `` Floating popover action menu with `oz-select`. - `Save` - `` Interactive wizard/pipeline stepper with `oz-step`. - `` Drag-and-drop Kanban board with quick task creation (`oz-kanban-move`, `oz-kanban-add`). ### Modern Calendar, Pickers & Inputs (Pack G — 53 total components) - `` Standalone interactive calendar grid (`range` supported via `start`/`end`). - `` Floating glass calendar popover with quick presets (`Today`, `+7 Days`), single or range date selection. - `` Single or dual-thumb range slider with optional ticks. - `` Dropzone with Browse Files pill button, image thumbnails, progress bars, and `files='[...]'` seed support. - `` Swatch + hex input + floating palette popover. - `` Numeric stepper (`−` / `+` + arrows). - `` Segmented code input emitting `oz-complete`. ### Zero-Config CDN (Works directly in Claude Artifacts / ChatGPT / Plain HTML) ```html ``` Or pin `https://ozoneui.nstudios.eu/dist/ozone.css` + `ozone.js`. All form controls with `name="..."` automatically work with `
` / `FormData`, and AI agents can read/populate forms via `Ozone.getFormData()` & `Ozone.fillForm({...})`. ### 12-Col Grid, Mobile App Primitives, AI Chat & Dev UI (Pack H — 65 total components) - `` / `` Responsive 12-column grid (or ``, plus `.oz-grid-12` + `.oz-col-1..12` utility classes). - `` Mobile app / PWA bottom tab bar with safe-area padding. - `` Mobile Floating Action Button + speed-dial. - `` AI prompt + streaming chat widget emitting `oz-send`. - `` Syntax viewer with 1-click Copy button. - `
Left
Right
` Draggable resizable split container. - `` Collapsible folder/file tree emitting `oz-select`. - `@elena` Floating preview card on hover/focus. - `` Page navigation emitting `oz-page`. - `` Animated shimmer placeholder. - `` Empty-state callout card emitting `oz-action`. ## Runtime JS API (`window.Ozone`) - `Ozone.toast({ title, message, variant })` - `Ozone.icons.setDefaultSet('builtin'|'ph'|'tabler'|'solar'|'heroicons')` / `Ozone.icons.register(name, svg)` / `Ozone.icons.setResolver(fn)` - `Ozone.dna.presets` / `Ozone.dna.applyPreset('emerald')` / `Ozone.dna.fromHex('#6366f1', 'complementary')` / `Ozone.dna.fromLogoFile(file)` - `Ozone.dna.setDensity('compact'|'default'|'spacious')` / `Ozone.dna.setBrandName('Solaris AI')` - `Ozone.dna.getDeployHTML()` / `Ozone.dna.getShareURL()` / `Ozone.dna.getW3CTokens()` / `Ozone.dna.encode()` / `Ozone.dna.apply('...')` - `Ozone.agent.moveTo('#id', { label: 'AI', action: 'click' })` - `Ozone.morph(() => { /* DOM change */ })` - `Ozone.inspectUI()` / `Ozone.getSchemaManifest()` / `Ozone.getAIPrompt()` ### EU GDPR, Accessibility & Site Map (66 total components) - Planet49 GDPR banner + Ozone.gdpr + data-oz-gdpr='strict'. - URLs: https://ozoneui.nstudios.eu/ | /demo.html | /components.html | /ai.html | /wiki.html | /legal.html | /llms-full.txt