@ox-content/theme-neon 3.0.0-beta.3 → 3.0.0-beta.4
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/README.md +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Neon — Sunset-grid glow with humming tube outlines and a scanline sweep — fo
|
|
|
4
4
|
|
|
5
5
|
**Form only.** Geometry, texture, typography and motion, written entirely
|
|
6
6
|
against `--octc-*` custom properties. It names no colors, so it pairs with any
|
|
7
|
-
`@ox-content/theme-color-*` scheme. About 10.
|
|
7
|
+
`@ox-content/theme-color-*` scheme. About 10.2 kB of CSS, zero JavaScript, zero
|
|
8
8
|
runtime dependencies.
|
|
9
9
|
|
|
10
10
|
```bash
|
package/dist/index.cjs
CHANGED
|
@@ -34,13 +34,13 @@ const neon = {
|
|
|
34
34
|
"motion-spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
35
35
|
"motion-rise": "0.75rem"
|
|
36
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}
|
|
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}.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-ne-a:var(--octc-accent-b,var(--octc-color-primary));--octc-ne-b:var(--octc-accent-c,var(--octc-color-primary));--octc-ne-a-ink:var(--octc-accent-b-ink,var(--octc-color-primary));--octc-ne-glow:0 0 6px color-mix(in srgb,var(--octc-ne-a) 70%,transparent),0 0 22px color-mix(in srgb,var(--octc-ne-a) 40%,transparent);--octc-ne-radius:10px}.header,.sidebar,.toc,.search-modal,.content pre,.content blockquote,.feature-card,.hero-action,.hero-notice,.social-link,.search-button,.theme-toggle{border-radius:var(--octc-ne-radius)}.header{border-radius:0;position:fixed;background:color-mix(in srgb,var(--octc-color-bg) 88%,transparent);border-bottom:1px solid color-mix(in srgb,var(--octc-ne-a) 45%,transparent);box-shadow:0 0 24px -4px color-mix(in srgb,var(--octc-ne-a) 40%,transparent);overflow:hidden}.header::after{content:"";position:absolute;inset:auto 0 0 0;height:1px;background:linear-gradient(90deg,transparent,var(--octc-ne-b),transparent);animation:octc-ne-sweep 14s var(--octc-motion-ease) infinite}@keyframes octc-ne-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}.header-title{font-weight:700;letter-spacing:0.02em;text-shadow:var(--octc-ne-glow)}.sidebar{border-radius:0;--octc-skin-sidebar-bg:color-mix(in srgb,var(--octc-color-bg) 92%,transparent);background:color-mix(in srgb,var(--octc-color-bg) 92%,transparent);border-right:1px solid color-mix(in srgb,var(--octc-ne-a) 28%,transparent)}.toc{border-left:1px solid color-mix(in srgb,var(--octc-ne-a) 28%,transparent)}.nav-title,.toc-title{color:var(--octc-ne-a-ink);text-transform:uppercase;letter-spacing:0.16em;font-size:0.68rem;text-shadow:0 0 10px color-mix(in srgb,var(--octc-ne-a) 55%,transparent)}.nav-link,.toc-link{border:1px solid transparent;border-radius:8px}.nav-link:hover,.toc-link:hover{border-color:color-mix(in srgb,var(--octc-ne-a) 40%,transparent);--octc-skin-nav-hover-bg:color-mix(in srgb,var(--octc-ne-a) 10%,transparent);background:color-mix(in srgb,var(--octc-ne-a) 10%,transparent);text-shadow:0 0 8px color-mix(in srgb,var(--octc-ne-a) 55%,transparent)}.nav-link.active{border-color:var(--octc-ne-a);background:color-mix(in srgb,var(--octc-ne-a) 18%,transparent);box-shadow:inset 0 0 18px -6px var(--octc-ne-a),0 0 14px -4px var(--octc-ne-a);font-weight:600}.search-button,.theme-toggle,.social-link{border:1px solid color-mix(in srgb,var(--octc-ne-a) 45%,transparent);background:transparent}.search-button:hover,.theme-toggle:hover,.social-link:hover{border-color:var(--octc-ne-a);box-shadow:var(--octc-ne-glow);transform:translateY(-1px)}.search-modal{border:1px solid var(--octc-ne-a);box-shadow:0 0 60px -10px color-mix(in srgb,var(--octc-ne-a) 60%,transparent)}.content h2{border-bottom:1px solid color-mix(in srgb,var(--octc-ne-a) 35%,transparent)}.content a{text-decoration-color:var(--octc-ne-b);text-underline-offset:3px}.content a:hover{text-shadow:0 0 10px color-mix(in srgb,var(--octc-ne-b) 60%,transparent)}.content pre{border:1px solid color-mix(in srgb,var(--octc-ne-a) 32%,transparent);box-shadow:0 0 40px -18px color-mix(in srgb,var(--octc-ne-a) 60%,transparent)}.content :not(pre)>code{border-radius:5px;background:color-mix(in srgb,var(--octc-ne-a) 14%,transparent);padding:0.1em 0.36em}.content blockquote{border:1px solid color-mix(in srgb,var(--octc-ne-b) 40%,transparent);border-left:3px solid var(--octc-ne-b);background:color-mix(in srgb,var(--octc-ne-b) 8%,transparent);box-shadow:inset 0 0 30px -14px var(--octc-ne-b)}.content table{border:1px solid color-mix(in srgb,var(--octc-ne-a) 30%,transparent)}.content th,.content td{border:1px solid color-mix(in srgb,var(--octc-ne-a) 13%,transparent)}.content hr{border:0;height:1px;background:var(--octc-ne-a)}.hero{position:relative;overflow:hidden}.hero::before{content:"";position:absolute;inset:55% -50% -30% -50%;background-image:linear-gradient(color-mix(in srgb,var(--octc-ne-a) 42%,transparent) 1px,transparent 1px),linear-gradient(
|
|
38
38
|
90deg,color-mix(in srgb,var(--octc-ne-a) 42%,transparent) 1px,transparent 1px
|
|
39
39
|
);background-size:56px 56px;transform:perspective(320px) rotateX(68deg);transform-origin:top center;mask-image:linear-gradient(transparent,#000 40%);pointer-events:none}.hero-content{position:relative;z-index:1}.hero-name{letter-spacing:-0.03em}.hero-action{border:1px solid var(--octc-ne-a);text-transform:uppercase;letter-spacing:0.08em;box-shadow:inset 0 0 20px -10px var(--octc-ne-a)}.hero-action:hover{box-shadow:var(--octc-ne-glow),inset 0 0 24px -8px var(--octc-ne-a);transform:translateY(-2px)}.features .feature-card{border:1px solid color-mix(in srgb,var(--octc-ne-a) 24%,transparent);padding:1.25rem;background:color-mix(in srgb,var(--octc-color-bg-alt) 40%,transparent)}.features .feature-card:hover{border-color:var(--octc-ne-a);box-shadow:0 0 34px -12px color-mix(in srgb,var(--octc-ne-a) 70%,transparent);transform:translateY(-4px)}:focus-visible{outline:2px solid var(--octc-ne-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(
|
|
40
40
|
--octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))
|
|
41
41
|
)}:root:root .nav-link:not(.active):hover{background:var(
|
|
42
42
|
--octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)
|
|
43
|
-
)}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`
|
|
43
|
+
)}:root:root .nav-link:hover,:root:root .toc-link:hover,:root:root .content a:hover{font-style:inherit}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none !important}`
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
46
46
|
exports.default = neon;
|
package/dist/index.mjs
CHANGED
|
@@ -30,13 +30,13 @@ const neon = {
|
|
|
30
30
|
"motion-spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
31
31
|
"motion-rise": "0.75rem"
|
|
32
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}
|
|
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}.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-ne-a:var(--octc-accent-b,var(--octc-color-primary));--octc-ne-b:var(--octc-accent-c,var(--octc-color-primary));--octc-ne-a-ink:var(--octc-accent-b-ink,var(--octc-color-primary));--octc-ne-glow:0 0 6px color-mix(in srgb,var(--octc-ne-a) 70%,transparent),0 0 22px color-mix(in srgb,var(--octc-ne-a) 40%,transparent);--octc-ne-radius:10px}.header,.sidebar,.toc,.search-modal,.content pre,.content blockquote,.feature-card,.hero-action,.hero-notice,.social-link,.search-button,.theme-toggle{border-radius:var(--octc-ne-radius)}.header{border-radius:0;position:fixed;background:color-mix(in srgb,var(--octc-color-bg) 88%,transparent);border-bottom:1px solid color-mix(in srgb,var(--octc-ne-a) 45%,transparent);box-shadow:0 0 24px -4px color-mix(in srgb,var(--octc-ne-a) 40%,transparent);overflow:hidden}.header::after{content:"";position:absolute;inset:auto 0 0 0;height:1px;background:linear-gradient(90deg,transparent,var(--octc-ne-b),transparent);animation:octc-ne-sweep 14s var(--octc-motion-ease) infinite}@keyframes octc-ne-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}.header-title{font-weight:700;letter-spacing:0.02em;text-shadow:var(--octc-ne-glow)}.sidebar{border-radius:0;--octc-skin-sidebar-bg:color-mix(in srgb,var(--octc-color-bg) 92%,transparent);background:color-mix(in srgb,var(--octc-color-bg) 92%,transparent);border-right:1px solid color-mix(in srgb,var(--octc-ne-a) 28%,transparent)}.toc{border-left:1px solid color-mix(in srgb,var(--octc-ne-a) 28%,transparent)}.nav-title,.toc-title{color:var(--octc-ne-a-ink);text-transform:uppercase;letter-spacing:0.16em;font-size:0.68rem;text-shadow:0 0 10px color-mix(in srgb,var(--octc-ne-a) 55%,transparent)}.nav-link,.toc-link{border:1px solid transparent;border-radius:8px}.nav-link:hover,.toc-link:hover{border-color:color-mix(in srgb,var(--octc-ne-a) 40%,transparent);--octc-skin-nav-hover-bg:color-mix(in srgb,var(--octc-ne-a) 10%,transparent);background:color-mix(in srgb,var(--octc-ne-a) 10%,transparent);text-shadow:0 0 8px color-mix(in srgb,var(--octc-ne-a) 55%,transparent)}.nav-link.active{border-color:var(--octc-ne-a);background:color-mix(in srgb,var(--octc-ne-a) 18%,transparent);box-shadow:inset 0 0 18px -6px var(--octc-ne-a),0 0 14px -4px var(--octc-ne-a);font-weight:600}.search-button,.theme-toggle,.social-link{border:1px solid color-mix(in srgb,var(--octc-ne-a) 45%,transparent);background:transparent}.search-button:hover,.theme-toggle:hover,.social-link:hover{border-color:var(--octc-ne-a);box-shadow:var(--octc-ne-glow);transform:translateY(-1px)}.search-modal{border:1px solid var(--octc-ne-a);box-shadow:0 0 60px -10px color-mix(in srgb,var(--octc-ne-a) 60%,transparent)}.content h2{border-bottom:1px solid color-mix(in srgb,var(--octc-ne-a) 35%,transparent)}.content a{text-decoration-color:var(--octc-ne-b);text-underline-offset:3px}.content a:hover{text-shadow:0 0 10px color-mix(in srgb,var(--octc-ne-b) 60%,transparent)}.content pre{border:1px solid color-mix(in srgb,var(--octc-ne-a) 32%,transparent);box-shadow:0 0 40px -18px color-mix(in srgb,var(--octc-ne-a) 60%,transparent)}.content :not(pre)>code{border-radius:5px;background:color-mix(in srgb,var(--octc-ne-a) 14%,transparent);padding:0.1em 0.36em}.content blockquote{border:1px solid color-mix(in srgb,var(--octc-ne-b) 40%,transparent);border-left:3px solid var(--octc-ne-b);background:color-mix(in srgb,var(--octc-ne-b) 8%,transparent);box-shadow:inset 0 0 30px -14px var(--octc-ne-b)}.content table{border:1px solid color-mix(in srgb,var(--octc-ne-a) 30%,transparent)}.content th,.content td{border:1px solid color-mix(in srgb,var(--octc-ne-a) 13%,transparent)}.content hr{border:0;height:1px;background:var(--octc-ne-a)}.hero{position:relative;overflow:hidden}.hero::before{content:"";position:absolute;inset:55% -50% -30% -50%;background-image:linear-gradient(color-mix(in srgb,var(--octc-ne-a) 42%,transparent) 1px,transparent 1px),linear-gradient(
|
|
34
34
|
90deg,color-mix(in srgb,var(--octc-ne-a) 42%,transparent) 1px,transparent 1px
|
|
35
35
|
);background-size:56px 56px;transform:perspective(320px) rotateX(68deg);transform-origin:top center;mask-image:linear-gradient(transparent,#000 40%);pointer-events:none}.hero-content{position:relative;z-index:1}.hero-name{letter-spacing:-0.03em}.hero-action{border:1px solid var(--octc-ne-a);text-transform:uppercase;letter-spacing:0.08em;box-shadow:inset 0 0 20px -10px var(--octc-ne-a)}.hero-action:hover{box-shadow:var(--octc-ne-glow),inset 0 0 24px -8px var(--octc-ne-a);transform:translateY(-2px)}.features .feature-card{border:1px solid color-mix(in srgb,var(--octc-ne-a) 24%,transparent);padding:1.25rem;background:color-mix(in srgb,var(--octc-color-bg-alt) 40%,transparent)}.features .feature-card:hover{border-color:var(--octc-ne-a);box-shadow:0 0 34px -12px color-mix(in srgb,var(--octc-ne-a) 70%,transparent);transform:translateY(-4px)}:focus-visible{outline:2px solid var(--octc-ne-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(
|
|
36
36
|
--octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))
|
|
37
37
|
)}:root:root .nav-link:not(.active):hover{background:var(
|
|
38
38
|
--octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)
|
|
39
|
-
)}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`
|
|
39
|
+
)}:root:root .nav-link:hover,:root:root .toc-link:hover,:root:root .content a:hover{font-style:inherit}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none !important}`
|
|
40
40
|
};
|
|
41
41
|
//#endregion
|
|
42
42
|
export { neon as default, neon };
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/skin.ts","../src/index.ts"],"sourcesContent":["/**\n * Neon skin stylesheet.\n *\n * Sunset-grid glow with humming tube outlines and a scanline sweep.\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 `tools/scripts/theme-skins/skins/neon.css`; edit that file and\n * run `node tools/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-ne-a:var(--octc-accent-b,var(--octc-color-primary));--octc-ne-b:var(--octc-accent-c,var(--octc-color-primary));--octc-ne-a-ink:var(--octc-accent-b-ink,var(--octc-color-primary));--octc-ne-glow:0 0 6px color-mix(in srgb,var(--octc-ne-a) 70%,transparent),0 0 22px color-mix(in srgb,var(--octc-ne-a) 40%,transparent);--octc-ne-radius:10px}.header,.sidebar,.toc,.search-modal,.content pre,.content blockquote,.feature-card,.hero-action,.hero-notice,.social-link,.search-button,.theme-toggle{border-radius:var(--octc-ne-radius)}.header{border-radius:0;position:fixed;background:color-mix(in srgb,var(--octc-color-bg) 88%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid color-mix(in srgb,var(--octc-ne-a) 45%,transparent);box-shadow:0 0 24px -4px color-mix(in srgb,var(--octc-ne-a) 40%,transparent);overflow:hidden}.header::after{content:\"\";position:absolute;inset:auto 0 0 0;height:1px;background:linear-gradient(90deg,transparent,var(--octc-ne-b),transparent);animation:octc-ne-sweep 14s var(--octc-motion-ease) infinite}@keyframes octc-ne-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}.header-title{font-weight:700;letter-spacing:0.02em;text-shadow:var(--octc-ne-glow)}.sidebar{border-radius:0;--octc-skin-sidebar-bg:color-mix(in srgb,var(--octc-color-bg) 92%,transparent);background:color-mix(in srgb,var(--octc-color-bg) 92%,transparent);border-right:1px solid color-mix(in srgb,var(--octc-ne-a) 28%,transparent)}.toc{border-left:1px solid color-mix(in srgb,var(--octc-ne-a) 28%,transparent)}.nav-title,.toc-title{color:var(--octc-ne-a-ink);text-transform:uppercase;letter-spacing:0.16em;font-size:0.68rem;text-shadow:0 0 10px color-mix(in srgb,var(--octc-ne-a) 55%,transparent)}.nav-link,.toc-link{border:1px solid transparent;border-radius:8px}.nav-link:hover,.toc-link:hover{border-color:color-mix(in srgb,var(--octc-ne-a) 40%,transparent);--octc-skin-nav-hover-bg:color-mix(in srgb,var(--octc-ne-a) 10%,transparent);background:color-mix(in srgb,var(--octc-ne-a) 10%,transparent);text-shadow:0 0 8px color-mix(in srgb,var(--octc-ne-a) 55%,transparent)}.nav-link.active{border-color:var(--octc-ne-a);background:color-mix(in srgb,var(--octc-ne-a) 18%,transparent);box-shadow:inset 0 0 18px -6px var(--octc-ne-a),0 0 14px -4px var(--octc-ne-a);font-weight:600}.search-button,.theme-toggle,.social-link{border:1px solid color-mix(in srgb,var(--octc-ne-a) 45%,transparent);background:transparent}.search-button:hover,.theme-toggle:hover,.social-link:hover{border-color:var(--octc-ne-a);box-shadow:var(--octc-ne-glow);transform:translateY(-1px)}.search-modal{border:1px solid var(--octc-ne-a);box-shadow:0 0 60px -10px color-mix(in srgb,var(--octc-ne-a) 60%,transparent)}.content h2{border-bottom:1px solid color-mix(in srgb,var(--octc-ne-a) 35%,transparent)}.content a{text-decoration-color:var(--octc-ne-b);text-underline-offset:3px}.content a:hover{text-shadow:0 0 10px color-mix(in srgb,var(--octc-ne-b) 60%,transparent)}.content pre{border:1px solid color-mix(in srgb,var(--octc-ne-a) 32%,transparent);box-shadow:0 0 40px -18px color-mix(in srgb,var(--octc-ne-a) 60%,transparent)}.content :not(pre)>code{border-radius:5px;background:color-mix(in srgb,var(--octc-ne-a) 14%,transparent);padding:0.1em 0.36em}.content blockquote{border:1px solid color-mix(in srgb,var(--octc-ne-b) 40%,transparent);border-left:3px solid var(--octc-ne-b);background:color-mix(in srgb,var(--octc-ne-b) 8%,transparent);box-shadow:inset 0 0 30px -14px var(--octc-ne-b)}.content table{border:1px solid color-mix(in srgb,var(--octc-ne-a) 30%,transparent)}.content th,.content td{border:1px solid color-mix(in srgb,var(--octc-ne-a) 13%,transparent)}.content hr{border:0;height:1px;background:var(--octc-ne-a)}.hero{position:relative;overflow:hidden}.hero::before{content:\"\";position:absolute;inset:55% -50% -30% -50%;background-image:linear-gradient(color-mix(in srgb,var(--octc-ne-a) 42%,transparent) 1px,transparent 1px),linear-gradient(\n90deg,color-mix(in srgb,var(--octc-ne-a) 42%,transparent) 1px,transparent 1px\n);background-size:56px 56px;transform:perspective(320px) rotateX(68deg);transform-origin:top center;mask-image:linear-gradient(transparent,#000 40%);pointer-events:none}.hero-content{position:relative;z-index:1}.hero-name{letter-spacing:-0.03em}.hero-action{border:1px solid var(--octc-ne-a);text-transform:uppercase;letter-spacing:0.08em;box-shadow:inset 0 0 20px -10px var(--octc-ne-a)}.hero-action:hover{box-shadow:var(--octc-ne-glow),inset 0 0 24px -8px var(--octc-ne-a);transform:translateY(-2px)}.features .feature-card{border:1px solid color-mix(in srgb,var(--octc-ne-a) 24%,transparent);padding:1.25rem;background:color-mix(in srgb,var(--octc-color-bg-alt) 40%,transparent)}.features .feature-card:hover{border-color:var(--octc-ne-a);box-shadow:0 0 34px -12px color-mix(in srgb,var(--octc-ne-a) 70%,transparent);transform:translateY(-4px)}:focus-visible{outline:2px solid var(--octc-ne-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","import type { ThemeConfig } from \"@ox-content/vite-plugin\";\n\nimport { css } from \"./skin\";\n\n/**\n * Neon — Sunset-grid glow with humming tube outlines and a scanline sweep.\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: [neon, tokyoNight]\n * ```\n */\nexport const neon: ThemeConfig = {\n name: \"neon\",\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: \"264px\",\n headerHeight: \"66px\",\n maxContentWidth: \"920px\",\n },\n entryPage: { mode: \"default\" },\n tokens: {\n \"motion-fast\": \"220ms\",\n \"motion-base\": \"420ms\",\n \"motion-slow\": \"1000ms\",\n \"motion-ease\": \"cubic-bezier(0.22, 1, 0.36, 1)\",\n \"motion-spring\": \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n \"motion-rise\": \"0.75rem\",\n },\n css,\n};\n\nexport default neon;\n"],"mappings":";;;;;;;;;;;;ACcA,MAAa,OAAoB;CAC/B,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;;;;;;;AACF"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/skin.ts","../src/index.ts"],"sourcesContent":["/**\n * Neon skin stylesheet.\n *\n * Sunset-grid glow with humming tube outlines and a scanline sweep.\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 `tools/scripts/theme-skins/skins/neon.css`; edit that file and\n * run `node tools/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}.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-ne-a:var(--octc-accent-b,var(--octc-color-primary));--octc-ne-b:var(--octc-accent-c,var(--octc-color-primary));--octc-ne-a-ink:var(--octc-accent-b-ink,var(--octc-color-primary));--octc-ne-glow:0 0 6px color-mix(in srgb,var(--octc-ne-a) 70%,transparent),0 0 22px color-mix(in srgb,var(--octc-ne-a) 40%,transparent);--octc-ne-radius:10px}.header,.sidebar,.toc,.search-modal,.content pre,.content blockquote,.feature-card,.hero-action,.hero-notice,.social-link,.search-button,.theme-toggle{border-radius:var(--octc-ne-radius)}.header{border-radius:0;position:fixed;background:color-mix(in srgb,var(--octc-color-bg) 88%,transparent);border-bottom:1px solid color-mix(in srgb,var(--octc-ne-a) 45%,transparent);box-shadow:0 0 24px -4px color-mix(in srgb,var(--octc-ne-a) 40%,transparent);overflow:hidden}.header::after{content:\"\";position:absolute;inset:auto 0 0 0;height:1px;background:linear-gradient(90deg,transparent,var(--octc-ne-b),transparent);animation:octc-ne-sweep 14s var(--octc-motion-ease) infinite}@keyframes octc-ne-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}.header-title{font-weight:700;letter-spacing:0.02em;text-shadow:var(--octc-ne-glow)}.sidebar{border-radius:0;--octc-skin-sidebar-bg:color-mix(in srgb,var(--octc-color-bg) 92%,transparent);background:color-mix(in srgb,var(--octc-color-bg) 92%,transparent);border-right:1px solid color-mix(in srgb,var(--octc-ne-a) 28%,transparent)}.toc{border-left:1px solid color-mix(in srgb,var(--octc-ne-a) 28%,transparent)}.nav-title,.toc-title{color:var(--octc-ne-a-ink);text-transform:uppercase;letter-spacing:0.16em;font-size:0.68rem;text-shadow:0 0 10px color-mix(in srgb,var(--octc-ne-a) 55%,transparent)}.nav-link,.toc-link{border:1px solid transparent;border-radius:8px}.nav-link:hover,.toc-link:hover{border-color:color-mix(in srgb,var(--octc-ne-a) 40%,transparent);--octc-skin-nav-hover-bg:color-mix(in srgb,var(--octc-ne-a) 10%,transparent);background:color-mix(in srgb,var(--octc-ne-a) 10%,transparent);text-shadow:0 0 8px color-mix(in srgb,var(--octc-ne-a) 55%,transparent)}.nav-link.active{border-color:var(--octc-ne-a);background:color-mix(in srgb,var(--octc-ne-a) 18%,transparent);box-shadow:inset 0 0 18px -6px var(--octc-ne-a),0 0 14px -4px var(--octc-ne-a);font-weight:600}.search-button,.theme-toggle,.social-link{border:1px solid color-mix(in srgb,var(--octc-ne-a) 45%,transparent);background:transparent}.search-button:hover,.theme-toggle:hover,.social-link:hover{border-color:var(--octc-ne-a);box-shadow:var(--octc-ne-glow);transform:translateY(-1px)}.search-modal{border:1px solid var(--octc-ne-a);box-shadow:0 0 60px -10px color-mix(in srgb,var(--octc-ne-a) 60%,transparent)}.content h2{border-bottom:1px solid color-mix(in srgb,var(--octc-ne-a) 35%,transparent)}.content a{text-decoration-color:var(--octc-ne-b);text-underline-offset:3px}.content a:hover{text-shadow:0 0 10px color-mix(in srgb,var(--octc-ne-b) 60%,transparent)}.content pre{border:1px solid color-mix(in srgb,var(--octc-ne-a) 32%,transparent);box-shadow:0 0 40px -18px color-mix(in srgb,var(--octc-ne-a) 60%,transparent)}.content :not(pre)>code{border-radius:5px;background:color-mix(in srgb,var(--octc-ne-a) 14%,transparent);padding:0.1em 0.36em}.content blockquote{border:1px solid color-mix(in srgb,var(--octc-ne-b) 40%,transparent);border-left:3px solid var(--octc-ne-b);background:color-mix(in srgb,var(--octc-ne-b) 8%,transparent);box-shadow:inset 0 0 30px -14px var(--octc-ne-b)}.content table{border:1px solid color-mix(in srgb,var(--octc-ne-a) 30%,transparent)}.content th,.content td{border:1px solid color-mix(in srgb,var(--octc-ne-a) 13%,transparent)}.content hr{border:0;height:1px;background:var(--octc-ne-a)}.hero{position:relative;overflow:hidden}.hero::before{content:\"\";position:absolute;inset:55% -50% -30% -50%;background-image:linear-gradient(color-mix(in srgb,var(--octc-ne-a) 42%,transparent) 1px,transparent 1px),linear-gradient(\n90deg,color-mix(in srgb,var(--octc-ne-a) 42%,transparent) 1px,transparent 1px\n);background-size:56px 56px;transform:perspective(320px) rotateX(68deg);transform-origin:top center;mask-image:linear-gradient(transparent,#000 40%);pointer-events:none}.hero-content{position:relative;z-index:1}.hero-name{letter-spacing:-0.03em}.hero-action{border:1px solid var(--octc-ne-a);text-transform:uppercase;letter-spacing:0.08em;box-shadow:inset 0 0 20px -10px var(--octc-ne-a)}.hero-action:hover{box-shadow:var(--octc-ne-glow),inset 0 0 24px -8px var(--octc-ne-a);transform:translateY(-2px)}.features .feature-card{border:1px solid color-mix(in srgb,var(--octc-ne-a) 24%,transparent);padding:1.25rem;background:color-mix(in srgb,var(--octc-color-bg-alt) 40%,transparent)}.features .feature-card:hover{border-color:var(--octc-ne-a);box-shadow:0 0 34px -12px color-mix(in srgb,var(--octc-ne-a) 70%,transparent);transform:translateY(-4px)}:focus-visible{outline:2px solid var(--octc-ne-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)}:root:root .nav-link:hover,:root:root .toc-link:hover,:root:root .content a:hover{font-style:inherit}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none !important}`;\n","import type { ThemeConfig } from \"@ox-content/vite-plugin\";\n\nimport { css } from \"./skin\";\n\n/**\n * Neon — Sunset-grid glow with humming tube outlines and a scanline sweep.\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: [neon, tokyoNight]\n * ```\n */\nexport const neon: ThemeConfig = {\n name: \"neon\",\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: \"264px\",\n headerHeight: \"66px\",\n maxContentWidth: \"920px\",\n },\n entryPage: { mode: \"default\" },\n tokens: {\n \"motion-fast\": \"220ms\",\n \"motion-base\": \"420ms\",\n \"motion-slow\": \"1000ms\",\n \"motion-ease\": \"cubic-bezier(0.22, 1, 0.36, 1)\",\n \"motion-spring\": \"cubic-bezier(0.34, 1.56, 0.64, 1)\",\n \"motion-rise\": \"0.75rem\",\n },\n css,\n};\n\nexport default neon;\n"],"mappings":";;;;;;;;;;;;ACcA,MAAa,OAAoB;CAC/B,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;;;;;;;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox-content/theme-neon",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.4",
|
|
4
4
|
"description": "Sunset-grid glow with humming tube outlines and a scanline sweep — an Ox Content skin that composes with any @ox-content/theme-color-* scheme",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cyberpunk",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"provenance": true
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@ox-content/vite-plugin": "3.0.0-beta.
|
|
44
|
+
"@ox-content/vite-plugin": "3.0.0-beta.4",
|
|
45
45
|
"@types/node": "^26.2.0",
|
|
46
46
|
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|
|
47
47
|
"typescript": "^7.0.2",
|