docs: update portal for WRNexusJS 0.8.6

This commit is contained in:
2026-08-09 02:13:42 +05:30
parent be24c6cad6
commit a153d351b0
99 changed files with 5153 additions and 1528 deletions
+4 -4
View File
@@ -10,11 +10,11 @@ page wrnexusstyles {
<header class="topbar">
<a class="brand" href="/"><span>W</span> WRNexusJS</a>
<nav aria-label="Primary"><a href="/getting-started">Get started</a><a href="/packages">Packages</a><a href="https://component.wrnexusjs.dev/">Components</a><a href="/language">Language</a><a href="/architecture">Architecture</a></nav>
<div class="topbar-actions"><a class="preview-pill" href="/access">Private preview · v0.8.5</a><button data-wire-theme-toggle class="theme-button" aria-label="Toggle color theme" title="Toggle color theme">◐</button></div>
<div class="topbar-actions"><a class="preview-pill" href="/access">Private preview · v0.8.6</a><button data-wire-theme-toggle class="theme-button" aria-label="Toggle color theme" title="Toggle color theme">◐</button></div>
</header>
<div class="mobile-doc-nav"><details><summary>Browse documentation</summary><nav><a href="/getting-started">Get started</a><a href="/packages">Packages</a><a href="https://component.wrnexusjs.dev/">Components</a><a href="/language">Language</a><a href="/architecture">Architecture</a><a href="/tutorial">Tutorial</a><a href="/guides/project-structure">Guides</a><a href="/examples">Examples</a><a href="/search">Search</a></nav></details></div>
<main class="portal-main docs-layout">
<article id="main" class="documentation prose standalone package-document"><nav class="breadcrumbs" aria-label="Breadcrumb"><a href="/">Home</a><span>/</span><a href="/packages">Packages</a><span>/</span><span aria-current="page">@wrnexus/styles</span></nav><section class="doc-intro"><span class="eyebrow">Frontend · Package reference</span><h1>@wrnexus/styles</h1><p>CSS pipeline, themes, fonts, profiles, and application config.</p><div class="doc-meta"><span>v0.8.5</span><span>Private registry</span><span>Frontend</span></div><section id="access" class="access-callout"><h2>Install the package</h2><p>After WorkRoot approves private registry access, install the release-aligned package:</p><pre><code>bun add @wrnexus/styles@0.8.5</code><button type="button" class="copy-button" aria-label="Copy installation command">Copy</button></pre><p><a href="/access">Request preview access</a>. Never put registry tokens in source control.</p></section></section><section id="guide"><h3 id="reusable-layers-and-presets">Reusable layers and presets</h3>
<article id="main" class="documentation prose standalone package-document"><nav class="breadcrumbs" aria-label="Breadcrumb"><a href="/">Home</a><span>/</span><a href="/packages">Packages</a><span>/</span><span aria-current="page">@wrnexus/styles</span></nav><section class="doc-intro"><span class="eyebrow">Frontend · Package reference</span><h1>@wrnexus/styles</h1><p>CSS pipeline, themes, fonts, profiles, and application config.</p><div class="doc-meta"><span>v0.8.6</span><span>Private registry</span><span>Frontend</span></div><section id="access" class="access-callout"><h2>Install the package</h2><p>After WorkRoot approves private registry access, install the release-aligned package:</p><pre><code>bun add @wrnexus/styles@0.8.6</code><button type="button" class="copy-button" aria-label="Copy installation command">Copy</button></pre><p><a href="/access">Request preview access</a>. Never put registry tokens in source control.</p></section></section><section id="guide"><h3 id="reusable-layers-and-presets">Reusable layers and presets</h3>
<p>Compose local or package foundations in order; later layers override earlier ones and the application has final base-config precedence:</p>
<pre data-language="ts"><code>export default defineConfig(&#123;
extends: [&quot;@workroot/wrnexus-enterprise&quot;, &quot;./layers/company&quot;],
@@ -199,7 +199,7 @@ import &#123; StorageConfig &#125; from '@wrnexus/uploader';
* emitted as the native CSS property instead of a custom property.
*/
type ThemeSemanticColor = &quot;primary&quot; | &quot;secondary&quot; | &quot;info&quot; | &quot;success&quot; | &quot;warning&quot; | &quot;danger&quot; | &quot;error&quot;;
type ThemeToken = &quot;color-scheme&quot; | &quot;color-bg&quot; | &quot;color-background&quot; | &quot;color-foreground&quot; | &quot;color-surface&quot; | &quot;color-surface-2&quot; | &quot;color-surface-raised&quot; | &quot;color-surface-muted&quot; | &quot;color-text&quot; | &quot;color-text-muted&quot; | &quot;color-text-subtle&quot; | &quot;color-muted&quot; | &quot;color-border&quot; | &quot;color-border-strong&quot; | &quot;color-code-background&quot; | &quot;color-code-surface&quot; | &quot;color-code-text&quot; | &quot;color-code-muted&quot; | &quot;color-code-border&quot; | `color-$&#123;ThemeSemanticColor&#125;` | `color-$&#123;ThemeSemanticColor&#125;-$&#123;&quot;hover&quot; | &quot;active&quot; | &quot;contrast&quot; | &quot;soft&quot; | &quot;muted&quot; | &quot;text&quot;&#125;` | `color-on-$&#123;&quot;primary&quot; | &quot;secondary&quot;&#125;` | &quot;radius&quot; | &quot;radius-sm&quot; | &quot;shadow-1&quot; | &quot;shadow-sm&quot; | &quot;shadow-md&quot; | &quot;shadow-lg&quot; | &quot;space-section&quot; | &quot;space-section-sm&quot; | &quot;container-max&quot; | &quot;font-sans&quot;;
type ThemeToken = &quot;color-scheme&quot; | &quot;color-bg&quot; | &quot;color-background&quot; | &quot;color-foreground&quot; | &quot;color-surface&quot; | &quot;color-surface-2&quot; | &quot;color-surface-raised&quot; | &quot;color-surface-muted&quot; | &quot;color-surface-soft&quot; | &quot;color-text&quot; | &quot;color-text-muted&quot; | &quot;color-text-subtle&quot; | &quot;color-muted&quot; | &quot;color-border&quot; | &quot;color-border-strong&quot; | &quot;color-code-background&quot; | &quot;color-code-surface&quot; | &quot;color-code-text&quot; | &quot;color-code-muted&quot; | &quot;color-code-border&quot; | `color-$&#123;ThemeSemanticColor&#125;` | `color-$&#123;ThemeSemanticColor&#125;-$&#123;&quot;hover&quot; | &quot;active&quot; | &quot;contrast&quot; | &quot;soft&quot; | &quot;muted&quot; | &quot;text&quot;&#125;` | `color-on-$&#123;&quot;primary&quot; | &quot;secondary&quot;&#125;` | &quot;radius&quot; | &quot;radius-sm&quot; | &quot;shadow-1&quot; | &quot;shadow-sm&quot; | &quot;shadow-md&quot; | &quot;shadow-lg&quot; | &quot;space-section&quot; | &quot;space-section-sm&quot; | &quot;container-max&quot; | &quot;font-sans&quot;;
/** Known tokens get autocomplete while applications may add namespaced custom tokens. */
type ThemeTokens = Partial&lt;Record&lt;ThemeToken, string&gt;&gt; &amp; Record&lt;string, string&gt;;
declare function defineThemeTokens&lt;T extends ThemeTokens&gt;(tokens: T): T;
@@ -885,7 +885,7 @@ const themeJs = renderThemeRuntime(theme); // served at THEME_JS_HREF</code></pr
&lt;button data-wire-theme-set=&quot;brand&quot;&gt;Brand theme&lt;/button&gt;</code></pre></article></div></section></article>
<aside class="on-this-page"><h2>On this page</h2><nav><a class="toc-level-2" href="#guide">Guide</a><a class="toc-level-3" href="#reusable-layers-and-presets">Reusable layers and presets</a><a class="toc-level-3" href="#overview">Overview</a><a class="toc-level-3" href="#api">API</a><a class="toc-level-4" href="#config-loading">Config loading</a><a class="toc-level-4" href="#appconfig">AppConfig</a><a class="toc-level-4" href="#styles-pipeline">Styles pipeline</a><a class="toc-level-4" href="#theme-system">Theme system</a><a class="toc-level-3" href="#usage">Usage</a><a class="toc-level-4" href="#wrnexus-config-ts">wrnexus.config.ts</a><a class="toc-level-4" href="#loading-config-producing-css">Loading config + producing CSS</a><a class="toc-level-4" href="#rendering-the-theme">Rendering the theme</a><a class="toc-level-3" href="#requirements-notes">Requirements / Notes</a><a class="toc-level-2" href="#api">Complete API</a><a class="toc-level-2" href="#examples">Examples</a></nav></aside>
</main>
<footer><div class="footer-brand"><span class="footer-mark" aria-hidden="true">W</span><p><strong>WRNexusJS 0.8.5</strong><span>Complete API documentation generated from installed package declarations.</span></p></div><nav aria-label="Footer"><a href="/packages">All packages</a><a href="/getting-started">Get started</a><a href="/security">Security</a><a href="/support">Support</a><a href="/llms.txt">AI guide</a></nav><p class="footer-meta">Private Developer Preview · Bun-native</p></footer>
<footer><div class="footer-brand"><span class="footer-mark" aria-hidden="true">W</span><p><strong>WRNexusJS 0.8.6</strong><span>Complete API documentation generated from installed package declarations.</span></p></div><nav aria-label="Footer"><a href="/packages">All packages</a><a href="/getting-started">Get started</a><a href="/security">Security</a><a href="/support">Support</a><a href="/llms.txt">AI guide</a></nav><p class="footer-meta">Private Developer Preview · Bun-native</p></footer>
</div>
}
}