@ox-content/theme-voltage 2.84.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 ubugeeei
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # @ox-content/theme-voltage
2
+
3
+ Voltage — Oversized display type with charged gradient edges and a live electric field — for [Ox Content](https://github.com/ubugeeei-prod/ox-content).
4
+
5
+ **Form only.** Geometry, texture, typography and motion, written entirely
6
+ against `--octc-*` custom properties. It names no colors, so it pairs with any
7
+ `@ox-content/theme-color-*` scheme. About 10.3 kB of CSS, zero JavaScript, zero
8
+ runtime dependencies.
9
+
10
+ ```bash
11
+ npm install @ox-content/theme-voltage @ox-content/theme-color-tokyo-night
12
+ ```
13
+
14
+ ```ts
15
+ // vite.config.ts
16
+ import { defineConfig } from "vite";
17
+ import { oxContent } from "@ox-content/vite-plugin";
18
+ import voltage from "@ox-content/theme-voltage";
19
+ import tokyoNight from "@ox-content/theme-color-tokyo-night";
20
+
21
+ export default defineConfig({
22
+ plugins: [
23
+ oxContent({
24
+ srcDir: "docs",
25
+ ssg: { siteName: "My Docs", theme: [voltage, tokyoNight] },
26
+ }),
27
+ ],
28
+ });
29
+ ```
30
+
31
+ Layers compose left to right, so anything you append wins:
32
+
33
+ ```ts
34
+ theme: [voltage, tokyoNight, { colors: { primary: "#ff5f56" } }];
35
+ ```
36
+
37
+ ## Motion
38
+
39
+ Transitions, scroll-driven reveals and cross-document page transitions are all
40
+ declarative CSS — no router, no observer, no client bundle. Everything sits
41
+ behind `@supports` and is switched off under `prefers-reduced-motion: reduce`.
42
+
43
+ Retune the choreography without touching the stylesheet:
44
+
45
+ ```ts
46
+ theme: [voltage, tokyoNight, { tokens: { "motion-base": "200ms", "motion-ease": "linear" } }];
47
+ ```
48
+
49
+ ## License
50
+
51
+ MIT
package/dist/index.cjs ADDED
@@ -0,0 +1,50 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ //#endregion
6
+ //#region src/index.ts
7
+ /**
8
+ * Voltage — Oversized display type with charged gradient edges and a live electric field.
9
+ *
10
+ * Form only: geometry, texture, typography and motion. It names no colors, so
11
+ * it composes with any `@ox-content/theme-color-*` package:
12
+ *
13
+ * ```ts
14
+ * theme: [voltage, tokyoNight]
15
+ * ```
16
+ */
17
+ const voltage = {
18
+ name: "voltage",
19
+ fonts: {
20
+ sans: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI Variable\", \"Segoe UI\", Roboto, \"Helvetica Neue\", sans-serif",
21
+ mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, \"Cascadia Mono\", Consolas, monospace"
22
+ },
23
+ layout: {
24
+ sidebarWidth: "262px",
25
+ headerHeight: "66px",
26
+ maxContentWidth: "960px"
27
+ },
28
+ entryPage: { mode: "default" },
29
+ tokens: {
30
+ "motion-fast": "180ms",
31
+ "motion-base": "360ms",
32
+ "motion-slow": "900ms",
33
+ "motion-ease": "cubic-bezier(0.2, 0.9, 0.2, 1)",
34
+ "motion-spring": "cubic-bezier(0.34, 1.5, 0.64, 1)",
35
+ "motion-rise": "0.7rem"
36
+ },
37
+ css: `@property --octc-sweep{syntax:"<percentage>";inherits:false;initial-value:0%}@property --octc-spin{syntax:"<angle>";inherits:false;initial-value:0deg}@view-transition{navigation:auto}.header{view-transition-name:octc-header}.sidebar{view-transition-name:octc-sidebar}.main{view-transition-name:octc-main}@media (prefers-reduced-motion:no-preference){::view-transition-old(octc-main){animation:octc-swap-out var(--octc-motion-base) var(--octc-motion-ease) both}::view-transition-new(octc-main){animation:octc-swap-in var(--octc-motion-base) var(--octc-motion-ease) both}}@keyframes octc-swap-out{to{opacity:0;transform:translateY(-0.5rem)}}@keyframes octc-swap-in{from{opacity:0;transform:translateY(0.75rem)}}@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){.content>h2,.feature-card{animation:octc-rise linear both;animation-timeline:view();animation-range:entry 0% entry 55%}.features-grid>:nth-child(2n){animation-range:entry 3% entry 58%}.features-grid>:nth-child(3n){animation-range:entry 6% entry 62%}.hero-name,.hero-text,.hero-tagline,.hero-actions{animation:octc-hero-in var(--octc-motion-slow) var(--octc-motion-spring) both}.hero-text{animation-delay:90ms}.hero-tagline{animation-delay:160ms}.hero-actions{animation-delay:240ms}}}@keyframes octc-rise{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem))}}@keyframes octc-hero-in{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem)) scale(0.994)}}.nav-link,.toc-link,.feature-card,.hero-action,.social-link,.search-button,.theme-toggle,.content a{transition:color var(--octc-motion-fast) var(--octc-motion-ease),background-color var(--octc-motion-fast) var(--octc-motion-ease),border-color var(--octc-motion-fast) var(--octc-motion-ease),box-shadow var(--octc-motion-base) var(--octc-motion-ease),transform var(--octc-motion-base) var(--octc-motion-spring)}.search-modal-overlay{transition:opacity var(--octc-motion-base) var(--octc-motion-ease),display var(--octc-motion-base) allow-discrete}@media (prefers-reduced-motion:no-preference){.search-modal{transition:transform var(--octc-motion-base) var(--octc-motion-spring)}@starting-style{.search-modal{transform:translateY(-0.75rem) scale(0.97)}}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:1ms !important;scroll-behavior:auto !important}}.entry-page .main{padding-inline:0}.entry-page .layout{padding-top:0}.entry-content{max-width:none;padding-inline:0}.entry-content>.content,.features{max-width:var(--octc-max-content-width);margin-inline:auto;padding-inline:clamp(1.25rem,4vw,2rem)}.hero{padding-inline:clamp(1.5rem,6vw,4rem);background-color:transparent;border-bottom:0;min-height:min(100vh,56rem);padding-block:calc(var(--octc-header-height) + clamp(3rem,11vh,7rem)) clamp(3.5rem,11vh,7rem)}.hero::after{content:"";position:absolute;inset:auto 0 0 0;height:clamp(6rem,22vh,14rem);z-index:0;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--octc-color-bg))}.hero-content,.hero-notice,.hero-image{position:relative;z-index:1}.features{border-top:0}.header{background:transparent;border-bottom:0;box-shadow:none}body:not(.entry-page) .header{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}@supports (animation-timeline:scroll()){.header{animation:var(--octc-header-scroll,octc-header-settle) linear both;animation-timeline:scroll(root block);animation-range:0 7rem}}@keyframes octc-header-settle{from{backdrop-filter:blur(0px) saturate(100%);-webkit-backdrop-filter:blur(0px) saturate(100%)}to{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}}.sidebar,.toc{top:0;padding-top:calc(var(--octc-header-height) + 1rem)}.header-actions .social-link,.header-actions .theme-toggle{opacity:0.62;transition:opacity var(--octc-motion-fast) var(--octc-motion-ease)}.header:hover .social-link,.header:hover .theme-toggle,.header-actions :focus-visible{opacity:1}.content h1,.content h2,.content h3,.hero-name,.hero-text,.feature-title{text-wrap:balance}.content p,.content li,.hero-tagline,.feature-details{text-wrap:pretty}.content{hanging-punctuation:first last}.content table{font-variant-numeric:tabular-nums}.content a{text-underline-offset:0.18em;text-decoration-skip-ink:auto}.content h1 a,.content h2 a,.content h3 a{text-decoration:none}::selection{background:color-mix(in srgb,var(--octc-color-primary) 28%,transparent);color:var(--octc-color-text)}.sidebar,.toc,.content pre,.search-results{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--octc-color-text) 22%,transparent) transparent}.content pre{scroll-padding-inline:1rem}.content img,.content video,.content iframe{max-width:100%;height:auto}[data-theme="dark"] body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--octc-vo-a:var(--octc-accent-warm,var(--octc-color-primary));--octc-vo-b:var(--octc-accent-b,var(--octc-color-primary));--octc-vo-c:var(--octc-accent-a,var(--octc-color-primary));--octc-vo-arc:linear-gradient(
38
+ 100deg,var(--octc-vo-a) 0%,var(--octc-vo-b) 46%,var(--octc-vo-c) 100%
39
+ );--octc-vo-ink:linear-gradient(
40
+ 100deg,var(--octc-accent-warm-ink,var(--octc-color-primary)) 0%,var(--octc-accent-b-ink,var(--octc-color-primary)) 46%,var(--octc-accent-a-ink,var(--octc-color-primary)) 100%
41
+ );--octc-vo-radius:16px}.header,.sidebar,.toc,.search-modal,.content pre,.content blockquote,.feature-card,.hero-action,.hero-notice,.social-link,.search-button,.theme-toggle,.content img,.content table{border-radius:var(--octc-vo-radius)}.header{border-radius:0;background:color-mix(in srgb,var(--octc-color-bg) 86%,transparent);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);border-bottom:1px solid color-mix(in srgb,var(--octc-color-border) 55%,transparent)}.header-title{font-weight:800;letter-spacing:-0.03em;font-size:1.1rem}.sidebar{border-radius:0;border-right:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent);--octc-skin-sidebar-bg:transparent;background:transparent}.toc{border-left:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent)}.nav-title,.toc-title{font-weight:700;text-transform:uppercase;letter-spacing:0.14em;font-size:0.66rem}.nav-link,.toc-link{border-radius:10px;font-weight:500}.nav-link:hover,.toc-link:hover{--octc-skin-nav-hover-bg:color-mix(in srgb,var(--octc-vo-b) 12%,transparent);background:color-mix(in srgb,var(--octc-vo-b) 12%,transparent)}.nav-link.active{background:color-mix(in srgb,var(--octc-vo-b) 13%,transparent);color:var(--octc-accent-b-ink,var(--octc-color-primary));font-weight:700}.hero-action,.feature-card,.search-button,.theme-toggle,.social-link{border:1px solid transparent;background:linear-gradient(var(--octc-color-bg),var(--octc-color-bg)) padding-box,var(--octc-vo-arc) border-box}.search-button:hover,.theme-toggle:hover,.social-link:hover{transform:translateY(-1px);box-shadow:0 0 0 1px color-mix(in srgb,var(--octc-vo-b) 32%,transparent)}.content h1,.content h2,.content h3{font-weight:800;letter-spacing:-0.032em}.content h1{font-size:clamp(2.4rem,5.4vw,3.4rem);line-height:1.04}.content h2{border-bottom:0;padding-bottom:0.55rem;position:relative}.content h2::after{content:"";position:absolute;inset:auto 0 0 0;height:2px;border-radius:2px;background:var(--octc-vo-arc);opacity:0.75}.content a{font-weight:600;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--octc-vo-b) 60%,transparent)}.content a:hover{text-decoration-color:var(--octc-vo-b)}.content pre{border:1px solid transparent;background:linear-gradient(180deg,var(--octc-color-code-bg-top),var(--octc-color-code-bg)) padding-box,var(--octc-vo-arc) border-box !important}.content :not(pre)>code{border-radius:7px;background:color-mix(in srgb,var(--octc-vo-b) 13%,transparent);padding:0.12em 0.42em;font-weight:500}.content blockquote{border:0;border-left:3px solid transparent;border-image:var(--octc-vo-arc) 1;background:color-mix(in srgb,var(--octc-vo-b) 7%,var(--octc-color-bg-alt))}.content table{border:1px solid color-mix(in srgb,var(--octc-color-border) 62%,transparent)}.content th,.content td{border:1px solid color-mix(in srgb,var(--octc-color-border) 26%,transparent)}.content thead th{border-bottom:2px solid color-mix(in srgb,var(--octc-vo-b) 45%,transparent)}.content hr{border:0;height:2px;border-radius:2px;background:var(--octc-vo-arc)}.hero-name{font-weight:850;letter-spacing:-0.055em;line-height:0.88;font-size:clamp(3.4rem,12vw,8rem)}@supports (background-clip:text) or (-webkit-background-clip:text){.hero-name{background:var(--octc-vo-ink);-webkit-background-clip:text;background-clip:text;color:transparent}}.hero-text{font-weight:700;font-size:clamp(1.1rem,2.4vw,1.5rem);letter-spacing:-0.015em}.hero-tagline{max-width:54ch;margin-inline:auto}.hero-action{font-weight:700;letter-spacing:-0.01em;padding-inline:1.9rem}.hero-action-brand{--octc-brand-fill:var(--octc-vo-ink);--octc-brand-fill-hover:var(--octc-vo-ink);--octc-brand-edge:transparent;--octc-brand-edge-hover:transparent;--octc-brand-ink:var(--octc-color-bg)}.hero-action:hover{transform:translateY(-2px)}.features .feature-card{padding:1.4rem}.features .feature-card:hover{transform:translateY(-2px);box-shadow:0 0 0 1px color-mix(in srgb,var(--octc-vo-b) 26%,transparent)}.feature-title{font-weight:750;letter-spacing:-0.018em}:focus-visible{outline:2px solid var(--octc-vo-b);outline-offset:3px}.hero-action-brand,.hero-action-brand:hover,.hero-action-brand:focus-visible{background:var(--octc-brand-fill,var(--octc-color-primary));border-color:var(--octc-brand-edge,var(--octc-color-primary));color:var(--octc-brand-ink,var(--octc-color-bg))}.hero-action-brand:hover{background:var(--octc-brand-fill-hover,var(--octc-color-primary-hover));border-color:var(--octc-brand-edge-hover,var(--octc-color-primary-hover))}.hero-action-alt,.hero-action-alt:hover{color:var(--octc-color-text)}:root:root .sidebar{background:var(
42
+ --octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))
43
+ )}:root:root .nav-link:not(.active):hover{background:var(
44
+ --octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)
45
+ )}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`,
46
+ js: "(()=>{try{\n// Shared WebGL2 runtime for the skins that render a live hero backdrop.\n//\n// Liquid Glass deliberately has none. A caustic field behind the page makes the\n// *page* the glass, and the material belongs to the controls sitting on it —\n// the refraction there is geometric, done with an SVG displacement map on the\n// backdrop filter rather than painted underneath.\n//\n// The SSG concatenates a theme's `js` into one classic inline <script>, so this\n// cannot import anything — hence a hand-rolled runtime rather than a library.\n// It is strictly progressive enhancement: the CSS backdrop is the real design,\n// and the canvas only ever layers on top of it. Every bail-out path below\n// leaves the page exactly as it renders without JavaScript.\n\nfunction octcGL(fragmentSource, options) {\n const opts = options || {};\n const host = document.querySelector(opts.target || \".hero\");\n if (!host || typeof WebGL2RenderingContext === \"undefined\") return;\n if (matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n\n const canvas = document.createElement(\"canvas\");\n canvas.setAttribute(\"aria-hidden\", \"true\");\n canvas.style.cssText =\n \"position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;\" +\n \"opacity:0;transition:opacity 900ms ease\";\n const gl = canvas.getContext(\"webgl2\", {\n alpha: true,\n antialias: false,\n depth: false,\n stencil: false,\n powerPreference: \"low-power\",\n });\n if (!gl) return;\n\n // A fullscreen triangle from gl_VertexID needs no buffers at all.\n const VERT =\n \"#version 300 es\\nvoid main(){vec2 p=vec2(float((gl_VertexID<<1)&2),float(gl_VertexID&2));\" +\n \"gl_Position=vec4(p*2.0-1.0,0.0,1.0);}\";\n\n function compile(type, src) {\n const sh = gl.createShader(type);\n gl.shaderSource(sh, src);\n gl.compileShader(sh);\n if (!gl.getShaderParameter(sh, gl.COMPILE_STATUS)) {\n gl.deleteShader(sh);\n return null;\n }\n return sh;\n }\n\n const vs = compile(gl.VERTEX_SHADER, VERT);\n const fs = compile(gl.FRAGMENT_SHADER, fragmentSource);\n if (!vs || !fs) return;\n\n const program = gl.createProgram();\n gl.attachShader(program, vs);\n gl.attachShader(program, fs);\n gl.linkProgram(program);\n if (!gl.getProgramParameter(program, gl.LINK_STATUS)) return;\n gl.useProgram(program);\n\n const uRes = gl.getUniformLocation(program, \"u_res\");\n const uTime = gl.getUniformLocation(program, \"u_time\");\n const uColors = [0, 1, 2, 3].map((i) => gl.getUniformLocation(program, \"u_c\" + i));\n\n // Palette values are read through a probe element rather than parsed from the\n // custom property, because a scheme may define one as color-mix(), which only\n // resolves to concrete channels once it is used.\n const probe = document.createElement(\"span\");\n probe.style.cssText = \"position:absolute;width:0;height:0;opacity:0;pointer-events:none\";\n host.appendChild(probe);\n\n function readColor(name, fallback) {\n probe.style.color = fallback;\n probe.style.color = \"var(\" + name + \",\" + fallback + \")\";\n const value = getComputedStyle(probe).color;\n const parts = value.match(/[\\d.]+/g);\n if (!parts) return [0, 0, 0];\n // `color-mix()` serialises as `color(srgb r g b)` with 0-1 channels.\n const scale = value.indexOf(\"color(\") === 0 ? 1 : 255;\n return [parts[0] / scale, parts[1] / scale, parts[2] / scale];\n }\n\n const SLOTS = opts.colors || [\n \"--octc-accent-a\",\n \"--octc-accent-b\",\n \"--octc-accent-c\",\n \"--octc-color-bg\",\n ];\n\n function pushColors() {\n for (let i = 0; i < uColors.length; i++) {\n if (!uColors[i]) continue;\n const c = readColor(SLOTS[i], \"#888888\");\n gl.uniform3f(uColors[i], c[0], c[1], c[2]);\n }\n }\n\n // Resolution is capped rather than tied to devicePixelRatio: this is a soft,\n // out-of-focus backdrop, so a retina-sharp buffer costs fill rate for nothing.\n let width = 0;\n let height = 0;\n function resize() {\n const dpr = Math.min(devicePixelRatio || 1, 1.5);\n const w = Math.max(1, Math.round(host.clientWidth * dpr));\n const h = Math.max(1, Math.round(host.clientHeight * dpr));\n if (w === width && h === height) return;\n width = canvas.width = w;\n height = canvas.height = h;\n gl.viewport(0, 0, w, h);\n gl.uniform2f(uRes, w, h);\n }\n\n let running = false;\n let visible = false;\n let frame = 0;\n const start = performance.now();\n\n function tick(now) {\n if (!running) return;\n resize();\n gl.uniform1f(uTime, (now - start) / 1000);\n gl.drawArrays(gl.TRIANGLES, 0, 3);\n frame = requestAnimationFrame(tick);\n }\n\n function setRunning(next) {\n if (next === running) return;\n running = next;\n if (running) frame = requestAnimationFrame(tick);\n else cancelAnimationFrame(frame);\n }\n\n // Scrolled past or backgrounded means no work: an ambient effect must never\n // keep a tab busy once it is off screen.\n new IntersectionObserver((entries) => {\n visible = entries[0].isIntersecting;\n setRunning(visible && !document.hidden);\n }).observe(host);\n document.addEventListener(\"visibilitychange\", () => {\n setRunning(visible && !document.hidden);\n });\n addEventListener(\"resize\", resize, { passive: true });\n\n // The scheme changes under us whenever the reader flips the theme toggle.\n new MutationObserver(pushColors).observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"data-theme\"],\n });\n\n host.insertBefore(canvas, host.firstChild);\n pushColors();\n resize();\n // Set directly rather than from a frame callback: anything that throws\n // between mount and that callback leaves the canvas permanently invisible,\n // which is indistinguishable from the effect simply not existing.\n canvas.style.opacity = opts.opacity == null ? \"1\" : String(opts.opacity);\n}\n\n// Voltage — a charged field rather than literal lightning bolts. Ridged noise\n// gives filaments their characteristic sharp crease (a bolt is a crease in a\n// field, not a line), and the ridges drift on two different time bases so the\n// pattern never visibly repeats.\noctcGL(\n `#version 300 es\nprecision highp float;\nuniform vec2 u_res; uniform float u_time;\nuniform vec3 u_c0, u_c1, u_c2, u_c3;\nout vec4 outColor;\n\nfloat hash(vec2 p){ return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }\n\nfloat noise(vec2 p){\n vec2 i = floor(p), f = fract(p);\n vec2 u = f * f * (3.0 - 2.0 * f);\n return mix(mix(hash(i), hash(i + vec2(1, 0)), u.x),\n mix(hash(i + vec2(0, 1)), hash(i + vec2(1, 1)), u.x), u.y);\n}\n\n// Ridged noise: folding the field about its midpoint turns smooth hills into\n// sharp creases, which is what reads as a filament.\nfloat ridge(vec2 p){\n float v = 0.0, a = 0.5;\n for (int i = 0; i < 5; i++){\n v += a * (1.0 - abs(noise(p) * 2.0 - 1.0));\n p *= 2.05; a *= 0.5;\n }\n return v;\n}\n\nvoid main(){\n vec2 uv = gl_FragCoord.xy / u_res;\n vec2 p = uv * vec2(u_res.x / u_res.y, 1.0);\n float t = u_time * 0.04;\n\n float f = ridge(p * 2.3 + vec2(t, -t * 0.7));\n float g = ridge(p * 3.7 - vec2(t * 0.6, t * 1.1) + 5.3);\n\n // Only the top of the ridge lights up, so filaments stay thin.\n float arc = pow(smoothstep(0.72, 1.0, f), 3.0);\n float haze = pow(smoothstep(0.5, 1.0, g), 2.0) * 0.35;\n\n vec3 col = u_c3;\n col = mix(col, u_c0, haze);\n col = mix(col, u_c1, arc * 0.75);\n col += u_c2 * arc * 0.25;\n\n float edge = smoothstep(0.0, 0.3, uv.y) * smoothstep(1.0, 0.66, uv.y);\n outColor = vec4(col, edge * 0.7);\n}`,\n { opacity: 0.75 },\n);\n\n}catch(e){console.warn(\"[ox-content] theme backdrop disabled:\",e)}})();"
47
+ };
48
+ //#endregion
49
+ exports.default = voltage;
50
+ exports.voltage = voltage;
@@ -0,0 +1,16 @@
1
+ import { ThemeConfig } from "@ox-content/vite-plugin";
2
+ //#region src/index.d.ts
3
+ /**
4
+ * Voltage — Oversized display type with charged gradient edges and a live electric field.
5
+ *
6
+ * Form only: geometry, texture, typography and motion. It names no colors, so
7
+ * it composes with any `@ox-content/theme-color-*` package:
8
+ *
9
+ * ```ts
10
+ * theme: [voltage, tokyoNight]
11
+ * ```
12
+ */
13
+ declare const voltage: ThemeConfig;
14
+ //#endregion
15
+ export { voltage as default, voltage };
16
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;cAea,SAAS"}
@@ -0,0 +1,16 @@
1
+ import { ThemeConfig } from "@ox-content/vite-plugin";
2
+ //#region src/index.d.ts
3
+ /**
4
+ * Voltage — Oversized display type with charged gradient edges and a live electric field.
5
+ *
6
+ * Form only: geometry, texture, typography and motion. It names no colors, so
7
+ * it composes with any `@ox-content/theme-color-*` package:
8
+ *
9
+ * ```ts
10
+ * theme: [voltage, tokyoNight]
11
+ * ```
12
+ */
13
+ declare const voltage: ThemeConfig;
14
+ //#endregion
15
+ export { voltage as default, voltage };
16
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;cAea,SAAS"}
package/dist/index.mjs ADDED
@@ -0,0 +1,47 @@
1
+ //#endregion
2
+ //#region src/index.ts
3
+ /**
4
+ * Voltage — Oversized display type with charged gradient edges and a live electric field.
5
+ *
6
+ * Form only: geometry, texture, typography and motion. It names no colors, so
7
+ * it composes with any `@ox-content/theme-color-*` package:
8
+ *
9
+ * ```ts
10
+ * theme: [voltage, tokyoNight]
11
+ * ```
12
+ */
13
+ const voltage = {
14
+ name: "voltage",
15
+ fonts: {
16
+ sans: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI Variable\", \"Segoe UI\", Roboto, \"Helvetica Neue\", sans-serif",
17
+ mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, \"Cascadia Mono\", Consolas, monospace"
18
+ },
19
+ layout: {
20
+ sidebarWidth: "262px",
21
+ headerHeight: "66px",
22
+ maxContentWidth: "960px"
23
+ },
24
+ entryPage: { mode: "default" },
25
+ tokens: {
26
+ "motion-fast": "180ms",
27
+ "motion-base": "360ms",
28
+ "motion-slow": "900ms",
29
+ "motion-ease": "cubic-bezier(0.2, 0.9, 0.2, 1)",
30
+ "motion-spring": "cubic-bezier(0.34, 1.5, 0.64, 1)",
31
+ "motion-rise": "0.7rem"
32
+ },
33
+ css: `@property --octc-sweep{syntax:"<percentage>";inherits:false;initial-value:0%}@property --octc-spin{syntax:"<angle>";inherits:false;initial-value:0deg}@view-transition{navigation:auto}.header{view-transition-name:octc-header}.sidebar{view-transition-name:octc-sidebar}.main{view-transition-name:octc-main}@media (prefers-reduced-motion:no-preference){::view-transition-old(octc-main){animation:octc-swap-out var(--octc-motion-base) var(--octc-motion-ease) both}::view-transition-new(octc-main){animation:octc-swap-in var(--octc-motion-base) var(--octc-motion-ease) both}}@keyframes octc-swap-out{to{opacity:0;transform:translateY(-0.5rem)}}@keyframes octc-swap-in{from{opacity:0;transform:translateY(0.75rem)}}@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){.content>h2,.feature-card{animation:octc-rise linear both;animation-timeline:view();animation-range:entry 0% entry 55%}.features-grid>:nth-child(2n){animation-range:entry 3% entry 58%}.features-grid>:nth-child(3n){animation-range:entry 6% entry 62%}.hero-name,.hero-text,.hero-tagline,.hero-actions{animation:octc-hero-in var(--octc-motion-slow) var(--octc-motion-spring) both}.hero-text{animation-delay:90ms}.hero-tagline{animation-delay:160ms}.hero-actions{animation-delay:240ms}}}@keyframes octc-rise{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem))}}@keyframes octc-hero-in{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem)) scale(0.994)}}.nav-link,.toc-link,.feature-card,.hero-action,.social-link,.search-button,.theme-toggle,.content a{transition:color var(--octc-motion-fast) var(--octc-motion-ease),background-color var(--octc-motion-fast) var(--octc-motion-ease),border-color var(--octc-motion-fast) var(--octc-motion-ease),box-shadow var(--octc-motion-base) var(--octc-motion-ease),transform var(--octc-motion-base) var(--octc-motion-spring)}.search-modal-overlay{transition:opacity var(--octc-motion-base) var(--octc-motion-ease),display var(--octc-motion-base) allow-discrete}@media (prefers-reduced-motion:no-preference){.search-modal{transition:transform var(--octc-motion-base) var(--octc-motion-spring)}@starting-style{.search-modal{transform:translateY(-0.75rem) scale(0.97)}}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:1ms !important;scroll-behavior:auto !important}}.entry-page .main{padding-inline:0}.entry-page .layout{padding-top:0}.entry-content{max-width:none;padding-inline:0}.entry-content>.content,.features{max-width:var(--octc-max-content-width);margin-inline:auto;padding-inline:clamp(1.25rem,4vw,2rem)}.hero{padding-inline:clamp(1.5rem,6vw,4rem);background-color:transparent;border-bottom:0;min-height:min(100vh,56rem);padding-block:calc(var(--octc-header-height) + clamp(3rem,11vh,7rem)) clamp(3.5rem,11vh,7rem)}.hero::after{content:"";position:absolute;inset:auto 0 0 0;height:clamp(6rem,22vh,14rem);z-index:0;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--octc-color-bg))}.hero-content,.hero-notice,.hero-image{position:relative;z-index:1}.features{border-top:0}.header{background:transparent;border-bottom:0;box-shadow:none}body:not(.entry-page) .header{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}@supports (animation-timeline:scroll()){.header{animation:var(--octc-header-scroll,octc-header-settle) linear both;animation-timeline:scroll(root block);animation-range:0 7rem}}@keyframes octc-header-settle{from{backdrop-filter:blur(0px) saturate(100%);-webkit-backdrop-filter:blur(0px) saturate(100%)}to{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}}.sidebar,.toc{top:0;padding-top:calc(var(--octc-header-height) + 1rem)}.header-actions .social-link,.header-actions .theme-toggle{opacity:0.62;transition:opacity var(--octc-motion-fast) var(--octc-motion-ease)}.header:hover .social-link,.header:hover .theme-toggle,.header-actions :focus-visible{opacity:1}.content h1,.content h2,.content h3,.hero-name,.hero-text,.feature-title{text-wrap:balance}.content p,.content li,.hero-tagline,.feature-details{text-wrap:pretty}.content{hanging-punctuation:first last}.content table{font-variant-numeric:tabular-nums}.content a{text-underline-offset:0.18em;text-decoration-skip-ink:auto}.content h1 a,.content h2 a,.content h3 a{text-decoration:none}::selection{background:color-mix(in srgb,var(--octc-color-primary) 28%,transparent);color:var(--octc-color-text)}.sidebar,.toc,.content pre,.search-results{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--octc-color-text) 22%,transparent) transparent}.content pre{scroll-padding-inline:1rem}.content img,.content video,.content iframe{max-width:100%;height:auto}[data-theme="dark"] body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--octc-vo-a:var(--octc-accent-warm,var(--octc-color-primary));--octc-vo-b:var(--octc-accent-b,var(--octc-color-primary));--octc-vo-c:var(--octc-accent-a,var(--octc-color-primary));--octc-vo-arc:linear-gradient(
34
+ 100deg,var(--octc-vo-a) 0%,var(--octc-vo-b) 46%,var(--octc-vo-c) 100%
35
+ );--octc-vo-ink:linear-gradient(
36
+ 100deg,var(--octc-accent-warm-ink,var(--octc-color-primary)) 0%,var(--octc-accent-b-ink,var(--octc-color-primary)) 46%,var(--octc-accent-a-ink,var(--octc-color-primary)) 100%
37
+ );--octc-vo-radius:16px}.header,.sidebar,.toc,.search-modal,.content pre,.content blockquote,.feature-card,.hero-action,.hero-notice,.social-link,.search-button,.theme-toggle,.content img,.content table{border-radius:var(--octc-vo-radius)}.header{border-radius:0;background:color-mix(in srgb,var(--octc-color-bg) 86%,transparent);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);border-bottom:1px solid color-mix(in srgb,var(--octc-color-border) 55%,transparent)}.header-title{font-weight:800;letter-spacing:-0.03em;font-size:1.1rem}.sidebar{border-radius:0;border-right:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent);--octc-skin-sidebar-bg:transparent;background:transparent}.toc{border-left:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent)}.nav-title,.toc-title{font-weight:700;text-transform:uppercase;letter-spacing:0.14em;font-size:0.66rem}.nav-link,.toc-link{border-radius:10px;font-weight:500}.nav-link:hover,.toc-link:hover{--octc-skin-nav-hover-bg:color-mix(in srgb,var(--octc-vo-b) 12%,transparent);background:color-mix(in srgb,var(--octc-vo-b) 12%,transparent)}.nav-link.active{background:color-mix(in srgb,var(--octc-vo-b) 13%,transparent);color:var(--octc-accent-b-ink,var(--octc-color-primary));font-weight:700}.hero-action,.feature-card,.search-button,.theme-toggle,.social-link{border:1px solid transparent;background:linear-gradient(var(--octc-color-bg),var(--octc-color-bg)) padding-box,var(--octc-vo-arc) border-box}.search-button:hover,.theme-toggle:hover,.social-link:hover{transform:translateY(-1px);box-shadow:0 0 0 1px color-mix(in srgb,var(--octc-vo-b) 32%,transparent)}.content h1,.content h2,.content h3{font-weight:800;letter-spacing:-0.032em}.content h1{font-size:clamp(2.4rem,5.4vw,3.4rem);line-height:1.04}.content h2{border-bottom:0;padding-bottom:0.55rem;position:relative}.content h2::after{content:"";position:absolute;inset:auto 0 0 0;height:2px;border-radius:2px;background:var(--octc-vo-arc);opacity:0.75}.content a{font-weight:600;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--octc-vo-b) 60%,transparent)}.content a:hover{text-decoration-color:var(--octc-vo-b)}.content pre{border:1px solid transparent;background:linear-gradient(180deg,var(--octc-color-code-bg-top),var(--octc-color-code-bg)) padding-box,var(--octc-vo-arc) border-box !important}.content :not(pre)>code{border-radius:7px;background:color-mix(in srgb,var(--octc-vo-b) 13%,transparent);padding:0.12em 0.42em;font-weight:500}.content blockquote{border:0;border-left:3px solid transparent;border-image:var(--octc-vo-arc) 1;background:color-mix(in srgb,var(--octc-vo-b) 7%,var(--octc-color-bg-alt))}.content table{border:1px solid color-mix(in srgb,var(--octc-color-border) 62%,transparent)}.content th,.content td{border:1px solid color-mix(in srgb,var(--octc-color-border) 26%,transparent)}.content thead th{border-bottom:2px solid color-mix(in srgb,var(--octc-vo-b) 45%,transparent)}.content hr{border:0;height:2px;border-radius:2px;background:var(--octc-vo-arc)}.hero-name{font-weight:850;letter-spacing:-0.055em;line-height:0.88;font-size:clamp(3.4rem,12vw,8rem)}@supports (background-clip:text) or (-webkit-background-clip:text){.hero-name{background:var(--octc-vo-ink);-webkit-background-clip:text;background-clip:text;color:transparent}}.hero-text{font-weight:700;font-size:clamp(1.1rem,2.4vw,1.5rem);letter-spacing:-0.015em}.hero-tagline{max-width:54ch;margin-inline:auto}.hero-action{font-weight:700;letter-spacing:-0.01em;padding-inline:1.9rem}.hero-action-brand{--octc-brand-fill:var(--octc-vo-ink);--octc-brand-fill-hover:var(--octc-vo-ink);--octc-brand-edge:transparent;--octc-brand-edge-hover:transparent;--octc-brand-ink:var(--octc-color-bg)}.hero-action:hover{transform:translateY(-2px)}.features .feature-card{padding:1.4rem}.features .feature-card:hover{transform:translateY(-2px);box-shadow:0 0 0 1px color-mix(in srgb,var(--octc-vo-b) 26%,transparent)}.feature-title{font-weight:750;letter-spacing:-0.018em}:focus-visible{outline:2px solid var(--octc-vo-b);outline-offset:3px}.hero-action-brand,.hero-action-brand:hover,.hero-action-brand:focus-visible{background:var(--octc-brand-fill,var(--octc-color-primary));border-color:var(--octc-brand-edge,var(--octc-color-primary));color:var(--octc-brand-ink,var(--octc-color-bg))}.hero-action-brand:hover{background:var(--octc-brand-fill-hover,var(--octc-color-primary-hover));border-color:var(--octc-brand-edge-hover,var(--octc-color-primary-hover))}.hero-action-alt,.hero-action-alt:hover{color:var(--octc-color-text)}:root:root .sidebar{background:var(
38
+ --octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))
39
+ )}:root:root .nav-link:not(.active):hover{background:var(
40
+ --octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)
41
+ )}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`,
42
+ js: "(()=>{try{\n// Shared WebGL2 runtime for the skins that render a live hero backdrop.\n//\n// Liquid Glass deliberately has none. A caustic field behind the page makes the\n// *page* the glass, and the material belongs to the controls sitting on it —\n// the refraction there is geometric, done with an SVG displacement map on the\n// backdrop filter rather than painted underneath.\n//\n// The SSG concatenates a theme's `js` into one classic inline <script>, so this\n// cannot import anything — hence a hand-rolled runtime rather than a library.\n// It is strictly progressive enhancement: the CSS backdrop is the real design,\n// and the canvas only ever layers on top of it. Every bail-out path below\n// leaves the page exactly as it renders without JavaScript.\n\nfunction octcGL(fragmentSource, options) {\n const opts = options || {};\n const host = document.querySelector(opts.target || \".hero\");\n if (!host || typeof WebGL2RenderingContext === \"undefined\") return;\n if (matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n\n const canvas = document.createElement(\"canvas\");\n canvas.setAttribute(\"aria-hidden\", \"true\");\n canvas.style.cssText =\n \"position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;\" +\n \"opacity:0;transition:opacity 900ms ease\";\n const gl = canvas.getContext(\"webgl2\", {\n alpha: true,\n antialias: false,\n depth: false,\n stencil: false,\n powerPreference: \"low-power\",\n });\n if (!gl) return;\n\n // A fullscreen triangle from gl_VertexID needs no buffers at all.\n const VERT =\n \"#version 300 es\\nvoid main(){vec2 p=vec2(float((gl_VertexID<<1)&2),float(gl_VertexID&2));\" +\n \"gl_Position=vec4(p*2.0-1.0,0.0,1.0);}\";\n\n function compile(type, src) {\n const sh = gl.createShader(type);\n gl.shaderSource(sh, src);\n gl.compileShader(sh);\n if (!gl.getShaderParameter(sh, gl.COMPILE_STATUS)) {\n gl.deleteShader(sh);\n return null;\n }\n return sh;\n }\n\n const vs = compile(gl.VERTEX_SHADER, VERT);\n const fs = compile(gl.FRAGMENT_SHADER, fragmentSource);\n if (!vs || !fs) return;\n\n const program = gl.createProgram();\n gl.attachShader(program, vs);\n gl.attachShader(program, fs);\n gl.linkProgram(program);\n if (!gl.getProgramParameter(program, gl.LINK_STATUS)) return;\n gl.useProgram(program);\n\n const uRes = gl.getUniformLocation(program, \"u_res\");\n const uTime = gl.getUniformLocation(program, \"u_time\");\n const uColors = [0, 1, 2, 3].map((i) => gl.getUniformLocation(program, \"u_c\" + i));\n\n // Palette values are read through a probe element rather than parsed from the\n // custom property, because a scheme may define one as color-mix(), which only\n // resolves to concrete channels once it is used.\n const probe = document.createElement(\"span\");\n probe.style.cssText = \"position:absolute;width:0;height:0;opacity:0;pointer-events:none\";\n host.appendChild(probe);\n\n function readColor(name, fallback) {\n probe.style.color = fallback;\n probe.style.color = \"var(\" + name + \",\" + fallback + \")\";\n const value = getComputedStyle(probe).color;\n const parts = value.match(/[\\d.]+/g);\n if (!parts) return [0, 0, 0];\n // `color-mix()` serialises as `color(srgb r g b)` with 0-1 channels.\n const scale = value.indexOf(\"color(\") === 0 ? 1 : 255;\n return [parts[0] / scale, parts[1] / scale, parts[2] / scale];\n }\n\n const SLOTS = opts.colors || [\n \"--octc-accent-a\",\n \"--octc-accent-b\",\n \"--octc-accent-c\",\n \"--octc-color-bg\",\n ];\n\n function pushColors() {\n for (let i = 0; i < uColors.length; i++) {\n if (!uColors[i]) continue;\n const c = readColor(SLOTS[i], \"#888888\");\n gl.uniform3f(uColors[i], c[0], c[1], c[2]);\n }\n }\n\n // Resolution is capped rather than tied to devicePixelRatio: this is a soft,\n // out-of-focus backdrop, so a retina-sharp buffer costs fill rate for nothing.\n let width = 0;\n let height = 0;\n function resize() {\n const dpr = Math.min(devicePixelRatio || 1, 1.5);\n const w = Math.max(1, Math.round(host.clientWidth * dpr));\n const h = Math.max(1, Math.round(host.clientHeight * dpr));\n if (w === width && h === height) return;\n width = canvas.width = w;\n height = canvas.height = h;\n gl.viewport(0, 0, w, h);\n gl.uniform2f(uRes, w, h);\n }\n\n let running = false;\n let visible = false;\n let frame = 0;\n const start = performance.now();\n\n function tick(now) {\n if (!running) return;\n resize();\n gl.uniform1f(uTime, (now - start) / 1000);\n gl.drawArrays(gl.TRIANGLES, 0, 3);\n frame = requestAnimationFrame(tick);\n }\n\n function setRunning(next) {\n if (next === running) return;\n running = next;\n if (running) frame = requestAnimationFrame(tick);\n else cancelAnimationFrame(frame);\n }\n\n // Scrolled past or backgrounded means no work: an ambient effect must never\n // keep a tab busy once it is off screen.\n new IntersectionObserver((entries) => {\n visible = entries[0].isIntersecting;\n setRunning(visible && !document.hidden);\n }).observe(host);\n document.addEventListener(\"visibilitychange\", () => {\n setRunning(visible && !document.hidden);\n });\n addEventListener(\"resize\", resize, { passive: true });\n\n // The scheme changes under us whenever the reader flips the theme toggle.\n new MutationObserver(pushColors).observe(document.documentElement, {\n attributes: true,\n attributeFilter: [\"data-theme\"],\n });\n\n host.insertBefore(canvas, host.firstChild);\n pushColors();\n resize();\n // Set directly rather than from a frame callback: anything that throws\n // between mount and that callback leaves the canvas permanently invisible,\n // which is indistinguishable from the effect simply not existing.\n canvas.style.opacity = opts.opacity == null ? \"1\" : String(opts.opacity);\n}\n\n// Voltage — a charged field rather than literal lightning bolts. Ridged noise\n// gives filaments their characteristic sharp crease (a bolt is a crease in a\n// field, not a line), and the ridges drift on two different time bases so the\n// pattern never visibly repeats.\noctcGL(\n `#version 300 es\nprecision highp float;\nuniform vec2 u_res; uniform float u_time;\nuniform vec3 u_c0, u_c1, u_c2, u_c3;\nout vec4 outColor;\n\nfloat hash(vec2 p){ return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }\n\nfloat noise(vec2 p){\n vec2 i = floor(p), f = fract(p);\n vec2 u = f * f * (3.0 - 2.0 * f);\n return mix(mix(hash(i), hash(i + vec2(1, 0)), u.x),\n mix(hash(i + vec2(0, 1)), hash(i + vec2(1, 1)), u.x), u.y);\n}\n\n// Ridged noise: folding the field about its midpoint turns smooth hills into\n// sharp creases, which is what reads as a filament.\nfloat ridge(vec2 p){\n float v = 0.0, a = 0.5;\n for (int i = 0; i < 5; i++){\n v += a * (1.0 - abs(noise(p) * 2.0 - 1.0));\n p *= 2.05; a *= 0.5;\n }\n return v;\n}\n\nvoid main(){\n vec2 uv = gl_FragCoord.xy / u_res;\n vec2 p = uv * vec2(u_res.x / u_res.y, 1.0);\n float t = u_time * 0.04;\n\n float f = ridge(p * 2.3 + vec2(t, -t * 0.7));\n float g = ridge(p * 3.7 - vec2(t * 0.6, t * 1.1) + 5.3);\n\n // Only the top of the ridge lights up, so filaments stay thin.\n float arc = pow(smoothstep(0.72, 1.0, f), 3.0);\n float haze = pow(smoothstep(0.5, 1.0, g), 2.0) * 0.35;\n\n vec3 col = u_c3;\n col = mix(col, u_c0, haze);\n col = mix(col, u_c1, arc * 0.75);\n col += u_c2 * arc * 0.25;\n\n float edge = smoothstep(0.0, 0.3, uv.y) * smoothstep(1.0, 0.66, uv.y);\n outColor = vec4(col, edge * 0.7);\n}`,\n { opacity: 0.75 },\n);\n\n}catch(e){console.warn(\"[ox-content] theme backdrop disabled:\",e)}})();"
43
+ };
44
+ //#endregion
45
+ export { voltage as default, voltage };
46
+
47
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/skin.ts","../src/gl.ts","../src/index.ts"],"sourcesContent":["/**\n * Voltage skin stylesheet.\n *\n * Oversized display type with charged gradient edges and a live electric field.\n *\n * Written entirely against `--octc-*` custom properties and `color-mix()`, plus\n * neutral black/white alpha for depth — no hue is ever named, which is what lets\n * any `@ox-content/theme-color-*` package drive it.\n *\n * Generated from `scripts/theme-skins/skins/voltage.css`; edit that file and\n * run `node scripts/theme-skins/generate.mjs` rather than editing this by hand.\n */\nexport const css = `@property --octc-sweep{syntax:\"<percentage>\";inherits:false;initial-value:0%}@property --octc-spin{syntax:\"<angle>\";inherits:false;initial-value:0deg}@view-transition{navigation:auto}.header{view-transition-name:octc-header}.sidebar{view-transition-name:octc-sidebar}.main{view-transition-name:octc-main}@media (prefers-reduced-motion:no-preference){::view-transition-old(octc-main){animation:octc-swap-out var(--octc-motion-base) var(--octc-motion-ease) both}::view-transition-new(octc-main){animation:octc-swap-in var(--octc-motion-base) var(--octc-motion-ease) both}}@keyframes octc-swap-out{to{opacity:0;transform:translateY(-0.5rem)}}@keyframes octc-swap-in{from{opacity:0;transform:translateY(0.75rem)}}@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){.content>h2,.feature-card{animation:octc-rise linear both;animation-timeline:view();animation-range:entry 0% entry 55%}.features-grid>:nth-child(2n){animation-range:entry 3% entry 58%}.features-grid>:nth-child(3n){animation-range:entry 6% entry 62%}.hero-name,.hero-text,.hero-tagline,.hero-actions{animation:octc-hero-in var(--octc-motion-slow) var(--octc-motion-spring) both}.hero-text{animation-delay:90ms}.hero-tagline{animation-delay:160ms}.hero-actions{animation-delay:240ms}}}@keyframes octc-rise{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem))}}@keyframes octc-hero-in{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem)) scale(0.994)}}.nav-link,.toc-link,.feature-card,.hero-action,.social-link,.search-button,.theme-toggle,.content a{transition:color var(--octc-motion-fast) var(--octc-motion-ease),background-color var(--octc-motion-fast) var(--octc-motion-ease),border-color var(--octc-motion-fast) var(--octc-motion-ease),box-shadow var(--octc-motion-base) var(--octc-motion-ease),transform var(--octc-motion-base) var(--octc-motion-spring)}.search-modal-overlay{transition:opacity var(--octc-motion-base) var(--octc-motion-ease),display var(--octc-motion-base) allow-discrete}@media (prefers-reduced-motion:no-preference){.search-modal{transition:transform var(--octc-motion-base) var(--octc-motion-spring)}@starting-style{.search-modal{transform:translateY(-0.75rem) scale(0.97)}}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:1ms !important;scroll-behavior:auto !important}}.entry-page .main{padding-inline:0}.entry-page .layout{padding-top:0}.entry-content{max-width:none;padding-inline:0}.entry-content>.content,.features{max-width:var(--octc-max-content-width);margin-inline:auto;padding-inline:clamp(1.25rem,4vw,2rem)}.hero{padding-inline:clamp(1.5rem,6vw,4rem);background-color:transparent;border-bottom:0;min-height:min(100vh,56rem);padding-block:calc(var(--octc-header-height) + clamp(3rem,11vh,7rem)) clamp(3.5rem,11vh,7rem)}.hero::after{content:\"\";position:absolute;inset:auto 0 0 0;height:clamp(6rem,22vh,14rem);z-index:0;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--octc-color-bg))}.hero-content,.hero-notice,.hero-image{position:relative;z-index:1}.features{border-top:0}.header{background:transparent;border-bottom:0;box-shadow:none}body:not(.entry-page) .header{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}@supports (animation-timeline:scroll()){.header{animation:var(--octc-header-scroll,octc-header-settle) linear both;animation-timeline:scroll(root block);animation-range:0 7rem}}@keyframes octc-header-settle{from{backdrop-filter:blur(0px) saturate(100%);-webkit-backdrop-filter:blur(0px) saturate(100%)}to{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}}.sidebar,.toc{top:0;padding-top:calc(var(--octc-header-height) + 1rem)}.header-actions .social-link,.header-actions .theme-toggle{opacity:0.62;transition:opacity var(--octc-motion-fast) var(--octc-motion-ease)}.header:hover .social-link,.header:hover .theme-toggle,.header-actions :focus-visible{opacity:1}.content h1,.content h2,.content h3,.hero-name,.hero-text,.feature-title{text-wrap:balance}.content p,.content li,.hero-tagline,.feature-details{text-wrap:pretty}.content{hanging-punctuation:first last}.content table{font-variant-numeric:tabular-nums}.content a{text-underline-offset:0.18em;text-decoration-skip-ink:auto}.content h1 a,.content h2 a,.content h3 a{text-decoration:none}::selection{background:color-mix(in srgb,var(--octc-color-primary) 28%,transparent);color:var(--octc-color-text)}.sidebar,.toc,.content pre,.search-results{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--octc-color-text) 22%,transparent) transparent}.content pre{scroll-padding-inline:1rem}.content img,.content video,.content iframe{max-width:100%;height:auto}[data-theme=\"dark\"] body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root:not([data-theme=\"light\"]) body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--octc-vo-a:var(--octc-accent-warm,var(--octc-color-primary));--octc-vo-b:var(--octc-accent-b,var(--octc-color-primary));--octc-vo-c:var(--octc-accent-a,var(--octc-color-primary));--octc-vo-arc:linear-gradient(\n100deg,var(--octc-vo-a) 0%,var(--octc-vo-b) 46%,var(--octc-vo-c) 100%\n);--octc-vo-ink:linear-gradient(\n100deg,var(--octc-accent-warm-ink,var(--octc-color-primary)) 0%,var(--octc-accent-b-ink,var(--octc-color-primary)) 46%,var(--octc-accent-a-ink,var(--octc-color-primary)) 100%\n);--octc-vo-radius:16px}.header,.sidebar,.toc,.search-modal,.content pre,.content blockquote,.feature-card,.hero-action,.hero-notice,.social-link,.search-button,.theme-toggle,.content img,.content table{border-radius:var(--octc-vo-radius)}.header{border-radius:0;background:color-mix(in srgb,var(--octc-color-bg) 86%,transparent);backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);border-bottom:1px solid color-mix(in srgb,var(--octc-color-border) 55%,transparent)}.header-title{font-weight:800;letter-spacing:-0.03em;font-size:1.1rem}.sidebar{border-radius:0;border-right:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent);--octc-skin-sidebar-bg:transparent;background:transparent}.toc{border-left:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent)}.nav-title,.toc-title{font-weight:700;text-transform:uppercase;letter-spacing:0.14em;font-size:0.66rem}.nav-link,.toc-link{border-radius:10px;font-weight:500}.nav-link:hover,.toc-link:hover{--octc-skin-nav-hover-bg:color-mix(in srgb,var(--octc-vo-b) 12%,transparent);background:color-mix(in srgb,var(--octc-vo-b) 12%,transparent)}.nav-link.active{background:color-mix(in srgb,var(--octc-vo-b) 13%,transparent);color:var(--octc-accent-b-ink,var(--octc-color-primary));font-weight:700}.hero-action,.feature-card,.search-button,.theme-toggle,.social-link{border:1px solid transparent;background:linear-gradient(var(--octc-color-bg),var(--octc-color-bg)) padding-box,var(--octc-vo-arc) border-box}.search-button:hover,.theme-toggle:hover,.social-link:hover{transform:translateY(-1px);box-shadow:0 0 0 1px color-mix(in srgb,var(--octc-vo-b) 32%,transparent)}.content h1,.content h2,.content h3{font-weight:800;letter-spacing:-0.032em}.content h1{font-size:clamp(2.4rem,5.4vw,3.4rem);line-height:1.04}.content h2{border-bottom:0;padding-bottom:0.55rem;position:relative}.content h2::after{content:\"\";position:absolute;inset:auto 0 0 0;height:2px;border-radius:2px;background:var(--octc-vo-arc);opacity:0.75}.content a{font-weight:600;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--octc-vo-b) 60%,transparent)}.content a:hover{text-decoration-color:var(--octc-vo-b)}.content pre{border:1px solid transparent;background:linear-gradient(180deg,var(--octc-color-code-bg-top),var(--octc-color-code-bg)) padding-box,var(--octc-vo-arc) border-box !important}.content :not(pre)>code{border-radius:7px;background:color-mix(in srgb,var(--octc-vo-b) 13%,transparent);padding:0.12em 0.42em;font-weight:500}.content blockquote{border:0;border-left:3px solid transparent;border-image:var(--octc-vo-arc) 1;background:color-mix(in srgb,var(--octc-vo-b) 7%,var(--octc-color-bg-alt))}.content table{border:1px solid color-mix(in srgb,var(--octc-color-border) 62%,transparent)}.content th,.content td{border:1px solid color-mix(in srgb,var(--octc-color-border) 26%,transparent)}.content thead th{border-bottom:2px solid color-mix(in srgb,var(--octc-vo-b) 45%,transparent)}.content hr{border:0;height:2px;border-radius:2px;background:var(--octc-vo-arc)}.hero-name{font-weight:850;letter-spacing:-0.055em;line-height:0.88;font-size:clamp(3.4rem,12vw,8rem)}@supports (background-clip:text) or (-webkit-background-clip:text){.hero-name{background:var(--octc-vo-ink);-webkit-background-clip:text;background-clip:text;color:transparent}}.hero-text{font-weight:700;font-size:clamp(1.1rem,2.4vw,1.5rem);letter-spacing:-0.015em}.hero-tagline{max-width:54ch;margin-inline:auto}.hero-action{font-weight:700;letter-spacing:-0.01em;padding-inline:1.9rem}.hero-action-brand{--octc-brand-fill:var(--octc-vo-ink);--octc-brand-fill-hover:var(--octc-vo-ink);--octc-brand-edge:transparent;--octc-brand-edge-hover:transparent;--octc-brand-ink:var(--octc-color-bg)}.hero-action:hover{transform:translateY(-2px)}.features .feature-card{padding:1.4rem}.features .feature-card:hover{transform:translateY(-2px);box-shadow:0 0 0 1px color-mix(in srgb,var(--octc-vo-b) 26%,transparent)}.feature-title{font-weight:750;letter-spacing:-0.018em}:focus-visible{outline:2px solid var(--octc-vo-b);outline-offset:3px}.hero-action-brand,.hero-action-brand:hover,.hero-action-brand:focus-visible{background:var(--octc-brand-fill,var(--octc-color-primary));border-color:var(--octc-brand-edge,var(--octc-color-primary));color:var(--octc-brand-ink,var(--octc-color-bg))}.hero-action-brand:hover{background:var(--octc-brand-fill-hover,var(--octc-color-primary-hover));border-color:var(--octc-brand-edge-hover,var(--octc-color-primary-hover))}.hero-action-alt,.hero-action-alt:hover{color:var(--octc-color-text)}:root:root .sidebar{background:var(\n--octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))\n)}:root:root .nav-link:not(.active):hover{background:var(\n--octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)\n)}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`;\n","/**\n * Voltage WebGL2 hero backdrop.\n *\n * Progressive enhancement only: it bails out under prefers-reduced-motion,\n * on a missing WebGL2 context, and whenever the hero scrolls out of view.\n * The CSS backdrop underneath is the design; this layers on top of it.\n *\n * Generated from scripts/theme-skins/js/voltage.js; edit that file and\n * run node scripts/theme-skins/generate.mjs rather than editing this by hand.\n */\nexport const js =\n '(()=>{try{\\n// Shared WebGL2 runtime for the skins that render a live hero backdrop.\\n//\\n// Liquid Glass deliberately has none. A caustic field behind the page makes the\\n// *page* the glass, and the material belongs to the controls sitting on it —\\n// the refraction there is geometric, done with an SVG displacement map on the\\n// backdrop filter rather than painted underneath.\\n//\\n// The SSG concatenates a theme\\'s `js` into one classic inline <script>, so this\\n// cannot import anything — hence a hand-rolled runtime rather than a library.\\n// It is strictly progressive enhancement: the CSS backdrop is the real design,\\n// and the canvas only ever layers on top of it. Every bail-out path below\\n// leaves the page exactly as it renders without JavaScript.\\n\\nfunction octcGL(fragmentSource, options) {\\n const opts = options || {};\\n const host = document.querySelector(opts.target || \".hero\");\\n if (!host || typeof WebGL2RenderingContext === \"undefined\") return;\\n if (matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\\n\\n const canvas = document.createElement(\"canvas\");\\n canvas.setAttribute(\"aria-hidden\", \"true\");\\n canvas.style.cssText =\\n \"position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;\" +\\n \"opacity:0;transition:opacity 900ms ease\";\\n const gl = canvas.getContext(\"webgl2\", {\\n alpha: true,\\n antialias: false,\\n depth: false,\\n stencil: false,\\n powerPreference: \"low-power\",\\n });\\n if (!gl) return;\\n\\n // A fullscreen triangle from gl_VertexID needs no buffers at all.\\n const VERT =\\n \"#version 300 es\\\\nvoid main(){vec2 p=vec2(float((gl_VertexID<<1)&2),float(gl_VertexID&2));\" +\\n \"gl_Position=vec4(p*2.0-1.0,0.0,1.0);}\";\\n\\n function compile(type, src) {\\n const sh = gl.createShader(type);\\n gl.shaderSource(sh, src);\\n gl.compileShader(sh);\\n if (!gl.getShaderParameter(sh, gl.COMPILE_STATUS)) {\\n gl.deleteShader(sh);\\n return null;\\n }\\n return sh;\\n }\\n\\n const vs = compile(gl.VERTEX_SHADER, VERT);\\n const fs = compile(gl.FRAGMENT_SHADER, fragmentSource);\\n if (!vs || !fs) return;\\n\\n const program = gl.createProgram();\\n gl.attachShader(program, vs);\\n gl.attachShader(program, fs);\\n gl.linkProgram(program);\\n if (!gl.getProgramParameter(program, gl.LINK_STATUS)) return;\\n gl.useProgram(program);\\n\\n const uRes = gl.getUniformLocation(program, \"u_res\");\\n const uTime = gl.getUniformLocation(program, \"u_time\");\\n const uColors = [0, 1, 2, 3].map((i) => gl.getUniformLocation(program, \"u_c\" + i));\\n\\n // Palette values are read through a probe element rather than parsed from the\\n // custom property, because a scheme may define one as color-mix(), which only\\n // resolves to concrete channels once it is used.\\n const probe = document.createElement(\"span\");\\n probe.style.cssText = \"position:absolute;width:0;height:0;opacity:0;pointer-events:none\";\\n host.appendChild(probe);\\n\\n function readColor(name, fallback) {\\n probe.style.color = fallback;\\n probe.style.color = \"var(\" + name + \",\" + fallback + \")\";\\n const value = getComputedStyle(probe).color;\\n const parts = value.match(/[\\\\d.]+/g);\\n if (!parts) return [0, 0, 0];\\n // `color-mix()` serialises as `color(srgb r g b)` with 0-1 channels.\\n const scale = value.indexOf(\"color(\") === 0 ? 1 : 255;\\n return [parts[0] / scale, parts[1] / scale, parts[2] / scale];\\n }\\n\\n const SLOTS = opts.colors || [\\n \"--octc-accent-a\",\\n \"--octc-accent-b\",\\n \"--octc-accent-c\",\\n \"--octc-color-bg\",\\n ];\\n\\n function pushColors() {\\n for (let i = 0; i < uColors.length; i++) {\\n if (!uColors[i]) continue;\\n const c = readColor(SLOTS[i], \"#888888\");\\n gl.uniform3f(uColors[i], c[0], c[1], c[2]);\\n }\\n }\\n\\n // Resolution is capped rather than tied to devicePixelRatio: this is a soft,\\n // out-of-focus backdrop, so a retina-sharp buffer costs fill rate for nothing.\\n let width = 0;\\n let height = 0;\\n function resize() {\\n const dpr = Math.min(devicePixelRatio || 1, 1.5);\\n const w = Math.max(1, Math.round(host.clientWidth * dpr));\\n const h = Math.max(1, Math.round(host.clientHeight * dpr));\\n if (w === width && h === height) return;\\n width = canvas.width = w;\\n height = canvas.height = h;\\n gl.viewport(0, 0, w, h);\\n gl.uniform2f(uRes, w, h);\\n }\\n\\n let running = false;\\n let visible = false;\\n let frame = 0;\\n const start = performance.now();\\n\\n function tick(now) {\\n if (!running) return;\\n resize();\\n gl.uniform1f(uTime, (now - start) / 1000);\\n gl.drawArrays(gl.TRIANGLES, 0, 3);\\n frame = requestAnimationFrame(tick);\\n }\\n\\n function setRunning(next) {\\n if (next === running) return;\\n running = next;\\n if (running) frame = requestAnimationFrame(tick);\\n else cancelAnimationFrame(frame);\\n }\\n\\n // Scrolled past or backgrounded means no work: an ambient effect must never\\n // keep a tab busy once it is off screen.\\n new IntersectionObserver((entries) => {\\n visible = entries[0].isIntersecting;\\n setRunning(visible && !document.hidden);\\n }).observe(host);\\n document.addEventListener(\"visibilitychange\", () => {\\n setRunning(visible && !document.hidden);\\n });\\n addEventListener(\"resize\", resize, { passive: true });\\n\\n // The scheme changes under us whenever the reader flips the theme toggle.\\n new MutationObserver(pushColors).observe(document.documentElement, {\\n attributes: true,\\n attributeFilter: [\"data-theme\"],\\n });\\n\\n host.insertBefore(canvas, host.firstChild);\\n pushColors();\\n resize();\\n // Set directly rather than from a frame callback: anything that throws\\n // between mount and that callback leaves the canvas permanently invisible,\\n // which is indistinguishable from the effect simply not existing.\\n canvas.style.opacity = opts.opacity == null ? \"1\" : String(opts.opacity);\\n}\\n\\n// Voltage — a charged field rather than literal lightning bolts. Ridged noise\\n// gives filaments their characteristic sharp crease (a bolt is a crease in a\\n// field, not a line), and the ridges drift on two different time bases so the\\n// pattern never visibly repeats.\\noctcGL(\\n `#version 300 es\\nprecision highp float;\\nuniform vec2 u_res; uniform float u_time;\\nuniform vec3 u_c0, u_c1, u_c2, u_c3;\\nout vec4 outColor;\\n\\nfloat hash(vec2 p){ return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }\\n\\nfloat noise(vec2 p){\\n vec2 i = floor(p), f = fract(p);\\n vec2 u = f * f * (3.0 - 2.0 * f);\\n return mix(mix(hash(i), hash(i + vec2(1, 0)), u.x),\\n mix(hash(i + vec2(0, 1)), hash(i + vec2(1, 1)), u.x), u.y);\\n}\\n\\n// Ridged noise: folding the field about its midpoint turns smooth hills into\\n// sharp creases, which is what reads as a filament.\\nfloat ridge(vec2 p){\\n float v = 0.0, a = 0.5;\\n for (int i = 0; i < 5; i++){\\n v += a * (1.0 - abs(noise(p) * 2.0 - 1.0));\\n p *= 2.05; a *= 0.5;\\n }\\n return v;\\n}\\n\\nvoid main(){\\n vec2 uv = gl_FragCoord.xy / u_res;\\n vec2 p = uv * vec2(u_res.x / u_res.y, 1.0);\\n float t = u_time * 0.04;\\n\\n float f = ridge(p * 2.3 + vec2(t, -t * 0.7));\\n float g = ridge(p * 3.7 - vec2(t * 0.6, t * 1.1) + 5.3);\\n\\n // Only the top of the ridge lights up, so filaments stay thin.\\n float arc = pow(smoothstep(0.72, 1.0, f), 3.0);\\n float haze = pow(smoothstep(0.5, 1.0, g), 2.0) * 0.35;\\n\\n vec3 col = u_c3;\\n col = mix(col, u_c0, haze);\\n col = mix(col, u_c1, arc * 0.75);\\n col += u_c2 * arc * 0.25;\\n\\n float edge = smoothstep(0.0, 0.3, uv.y) * smoothstep(1.0, 0.66, uv.y);\\n outColor = vec4(col, edge * 0.7);\\n}`,\\n { opacity: 0.75 },\\n);\\n\\n}catch(e){console.warn(\"[ox-content] theme backdrop disabled:\",e)}})();';\n","import type { ThemeConfig } from \"@ox-content/vite-plugin\";\n\nimport { css } from \"./skin\";\nimport { js } from \"./gl\";\n\n/**\n * Voltage — Oversized display type with charged gradient edges and a live electric field.\n *\n * Form only: geometry, texture, typography and motion. It names no colors, so\n * it composes with any `@ox-content/theme-color-*` package:\n *\n * ```ts\n * theme: [voltage, tokyoNight]\n * ```\n */\nexport const voltage: ThemeConfig = {\n name: \"voltage\",\n fonts: {\n sans: 'ui-sans-serif, system-ui, -apple-system, \"Segoe UI Variable\", \"Segoe UI\", Roboto, \"Helvetica Neue\", sans-serif',\n mono: 'ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, \"Cascadia Mono\", Consolas, monospace',\n },\n layout: {\n sidebarWidth: \"262px\",\n headerHeight: \"66px\",\n maxContentWidth: \"960px\",\n },\n entryPage: { mode: \"default\" },\n tokens: {\n \"motion-fast\": \"180ms\",\n \"motion-base\": \"360ms\",\n \"motion-slow\": \"900ms\",\n \"motion-ease\": \"cubic-bezier(0.2, 0.9, 0.2, 1)\",\n \"motion-spring\": \"cubic-bezier(0.34, 1.5, 0.64, 1)\",\n \"motion-rise\": \"0.7rem\",\n },\n css,\n js,\n};\n\nexport default voltage;\n"],"mappings":";;;;;;;;;;;;AEeA,MAAa,UAAuB;CAClC,MAAM;CACN,OAAO;EACL,MAAM;EACN,MAAM;CACR;CACA,QAAQ;EACN,cAAc;EACd,cAAc;EACd,iBAAiB;CACnB;CACA,WAAW,EAAE,MAAM,UAAU;CAC7B,QAAQ;EACN,eAAe;EACf,eAAe;EACf,eAAe;EACf,eAAe;EACf,iBAAiB;EACjB,eAAe;CACjB;CACA;;;;;;;;;CACA;AACF"}
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@ox-content/theme-voltage",
3
+ "version": "2.84.0",
4
+ "description": "Oversized display type with charged gradient edges and a live electric field — an Ox Content skin that composes with any @ox-content/theme-color-* scheme",
5
+ "keywords": [
6
+ "bold",
7
+ "display",
8
+ "documentation",
9
+ "electric",
10
+ "energy",
11
+ "gradient",
12
+ "markdown",
13
+ "ox-content",
14
+ "skin",
15
+ "ssg",
16
+ "theme"
17
+ ],
18
+ "license": "MIT",
19
+ "author": "ubugeeei",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/ubugeeei-prod/ox-content.git",
23
+ "directory": "npm/theme/voltage"
24
+ },
25
+ "files": [
26
+ "dist"
27
+ ],
28
+ "type": "module",
29
+ "sideEffects": false,
30
+ "main": "./dist/index.cjs",
31
+ "types": "./dist/index.d.mts",
32
+ "exports": {
33
+ ".": {
34
+ "import": "./dist/index.mjs",
35
+ "require": "./dist/index.cjs",
36
+ "types": "./dist/index.d.mts"
37
+ }
38
+ },
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "provenance": true
42
+ },
43
+ "devDependencies": {
44
+ "@types/node": "^26.1.2",
45
+ "@typescript/native-preview": "^7.0.0-dev.20260707.2",
46
+ "typescript": "^7.0.2",
47
+ "vite-plus": "0.2.8",
48
+ "@ox-content/vite-plugin": "2.84.0"
49
+ },
50
+ "peerDependencies": {
51
+ "@ox-content/vite-plugin": ">=2.84.0"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "@ox-content/vite-plugin": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "scripts": {
59
+ "build": "vp pack",
60
+ "dev": "vp pack --watch",
61
+ "typecheck": "tsgo --noEmit"
62
+ }
63
+ }