@ox-content/theme-liquid-glass 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-liquid-glass
2
+
3
+ Liquid Glass — Refractive glass panels with specular edges and a light sweep on hover — 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 12.2 kB of CSS, zero JavaScript, zero
8
+ runtime dependencies.
9
+
10
+ ```bash
11
+ npm install @ox-content/theme-liquid-glass @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 liquidGlass from "@ox-content/theme-liquid-glass";
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: [liquidGlass, tokyoNight] },
26
+ }),
27
+ ],
28
+ });
29
+ ```
30
+
31
+ Layers compose left to right, so anything you append wins:
32
+
33
+ ```ts
34
+ theme: [liquidGlass, 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: [liquidGlass, tokyoNight, { tokens: { "motion-base": "200ms", "motion-ease": "linear" } }];
47
+ ```
48
+
49
+ ## License
50
+
51
+ MIT
package/dist/index.cjs ADDED
@@ -0,0 +1,58 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ //#endregion
6
+ //#region src/index.ts
7
+ /**
8
+ * Liquid Glass — Refractive glass panels with specular edges and a light sweep on hover.
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: [liquidGlass, tokyoNight]
15
+ * ```
16
+ */
17
+ const liquidGlass = {
18
+ name: "liquid-glass",
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: "268px",
25
+ headerHeight: "66px",
26
+ maxContentWidth: "940px"
27
+ },
28
+ entryPage: { mode: "default" },
29
+ embed: { head: "<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute;width:0;height:0;overflow:hidden\"><filter id=\"octc-lg-lens\" x=\"0%\" y=\"0%\" width=\"100%\" height=\"100%\" color-interpolation-filters=\"sRGB\"><feImage href=\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22x%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22rgb%280%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.17%22%20stop-color%3D%22rgb%28128%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.83%22%20stop-color%3D%22rgb%28128%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22rgb%28255%2C0%2C0%29%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22y%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22rgb%280%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.17%22%20stop-color%3D%22rgb%280%2C128%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.83%22%20stop-color%3D%22rgb%280%2C128%2C0%29%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22rgb%280%2C255%2C0%29%22%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%22mix%22%3E%3CfeBlend%20mode%3D%22screen%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22url%28%23x%29%22%2F%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22url%28%23y%29%22%20style%3D%22mix-blend-mode%3Ascreen%22%2F%3E%3C%2Fsvg%3E\" result=\"map\" preserveAspectRatio=\"none\"/><feDisplacementMap in=\"SourceGraphic\" in2=\"map\" scale=\"26\" xChannelSelector=\"R\" yChannelSelector=\"G\"/></filter></svg>" },
30
+ tokens: {
31
+ "motion-fast": "220ms",
32
+ "motion-base": "420ms",
33
+ "motion-slow": "1000ms",
34
+ "motion-ease": "cubic-bezier(0.22, 1, 0.36, 1)",
35
+ "motion-spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
36
+ "motion-rise": "0.75rem"
37
+ },
38
+ 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-lg-r:22px;--octc-lg-wallpaper:radial-gradient(
39
+ 48% 38% at 12% 8%,color-mix(in srgb,var(--octc-accent-a,var(--octc-color-primary)) 46%,transparent),transparent 72%
40
+ ),radial-gradient(
41
+ 42% 36% at 88% 16%,color-mix(in srgb,var(--octc-accent-c,var(--octc-color-primary)) 40%,transparent),transparent 74%
42
+ ),radial-gradient(
43
+ 54% 44% at 68% 88%,color-mix(in srgb,var(--octc-accent-b,var(--octc-color-primary)) 34%,transparent),transparent 76%
44
+ );--octc-lg-rim:12px;--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg-alt) 26%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.35);--octc-lg-spec-hi:rgba(255,255,255,0.5);--octc-lg-spec-lo:rgba(255,255,255,0.24);--octc-lg-underlight:rgba(0,0,0,0.16)}[data-theme="dark"]{--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg) 24%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.5);--octc-lg-spec-hi:rgba(255,255,255,0.34);--octc-lg-spec-lo:rgba(255,255,255,0.08);--octc-lg-underlight:rgba(0,0,0,0.5)}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg) 24%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.5);--octc-lg-spec-hi:rgba(255,255,255,0.34);--octc-lg-spec-lo:rgba(255,255,255,0.08);--octc-lg-underlight:rgba(0,0,0,0.5)}}body{background-image:var(--octc-lg-wallpaper);background-attachment:fixed;background-repeat:no-repeat}.header,.search-modal,.feature-card,.hero-notice,.hero-action,.search-button,.theme-toggle,.social-link,.nav-link.active,.content blockquote{position:relative;isolation:isolate;border:0;background:var(--octc-lg-tint);backdrop-filter:url(#octc-lg-lens) blur(7px) saturate(190%);-webkit-backdrop-filter:url(#octc-lg-lens) blur(7px) saturate(190%);box-shadow:0 10px 30px -14px var(--octc-lg-underlight)}.header::before,.sidebar::before,.search-modal::before,.feature-card::before,.hero-action::before,.search-button::before,.theme-toggle::before,.social-link::before,.nav-link.active::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;padding:var(--octc-lg-rim);backdrop-filter:var(--octc-lg-rim-filter);-webkit-backdrop-filter:var(--octc-lg-rim-filter);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.header::after,.sidebar::after,.search-modal::after,.feature-card::after,.hero-action::after,.search-button::after,.theme-toggle::after,.social-link::after,.nav-link.active::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;padding:1px;background:linear-gradient(
45
+ 145deg,var(--octc-lg-spec-hi) 0%,transparent 28%,transparent 68%,var(--octc-lg-spec-lo) 100%
46
+ );-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.hero-action,.search-button,.theme-toggle,.social-link,.mobile-footer-btn,.search-input,.nav-link,.toc-link{border-radius:999px}.feature-card,.hero-notice,.content pre,.content blockquote,.content img,.content table{border-radius:var(--octc-lg-r)}.search-modal{border-radius:calc(var(--octc-lg-r) + 6px)}.header{--octc-lg-rim:8px;top:0.85rem;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 1.6rem);gap:1.25rem;border-radius:999px;padding-inline:1.15rem;height:calc(var(--octc-header-height) - 1.4rem)}.layout{padding-top:calc(var(--octc-header-height) + 0.7rem)}.header-title{font-weight:620;letter-spacing:-0.015em}.search-button,.theme-toggle,.social-link{--octc-lg-rim:7px}.nav-link.active{--octc-lg-rim:8px}.sidebar{--octc-skin-sidebar-bg:var(--octc-lg-tint);--octc-lg-rim:10px;position:fixed;top:calc(var(--octc-header-height) + 1.1rem);bottom:1.1rem;left:0.9rem;width:calc(var(--octc-sidebar-width) - 1.2rem);border-radius:var(--octc-lg-r);border:0;padding:1rem 0.75rem;background:var(--octc-lg-tint);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);box-shadow:0 10px 30px -14px var(--octc-lg-underlight)}.toc{border-left:0}.nav-title,.toc-title{font-size:0.7rem;letter-spacing:0.11em;text-transform:uppercase;opacity:0.62}.nav-link:not(.active):hover,.toc-link:hover{background:color-mix(in srgb,var(--octc-color-primary) 10%,transparent)}.nav-link.active{font-weight:620}.content h2{border-bottom:1px solid color-mix(in srgb,var(--octc-color-border) 32%,transparent)}.content :not(pre)>code{border-radius:8px;background:color-mix(in srgb,var(--octc-color-primary) 11%,transparent);padding:0.1em 0.42em}.content pre{border:0;box-shadow:0 14px 36px -20px var(--octc-lg-underlight)}.content blockquote{--octc-lg-rim:10px}.content table{overflow:hidden}.content th,.content td{border-color:color-mix(in srgb,var(--octc-color-border) 26%,transparent)}.content hr{height:1px;border:0;background:color-mix(in srgb,var(--octc-color-border) 45%,transparent)}.hero{background-image:radial-gradient(
47
+ 40% 34% at 22% 16%,color-mix(in srgb,var(--octc-accent-a,var(--octc-color-primary)) 30%,transparent),transparent 72%
48
+ ),radial-gradient(
49
+ 36% 32% at 80% 76%,color-mix(in srgb,var(--octc-accent-c,var(--octc-color-primary)) 24%,transparent),transparent 74%
50
+ );background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.hero-name{letter-spacing:-0.035em;font-weight:660}.hero-action{--octc-lg-rim:9px;font-weight:620;padding-inline:2rem}.hero-action:hover,.feature-card:hover,.search-button:hover,.theme-toggle:hover,.social-link:hover{--octc-lg-rim:15px;transform:translateY(-2px)}.hero-action:active,.search-button:active,.theme-toggle:active,.social-link:active{--octc-lg-rim:5px;transform:translateY(0) scale(0.985)}.features .feature-card{padding:1.4rem}:focus-visible{outline:2px solid var(--octc-color-primary);outline-offset:4px;border-radius:999px}@supports not ((mask-composite:exclude) or (-webkit-mask-composite:xor)){.header::before,.search-modal::before,.feature-card::before,.hero-action::before,.search-button::before,.theme-toggle::before,.social-link::before,.nav-link.active::before,.header::after,.search-modal::after,.feature-card::after,.hero-action::after,.search-button::after,.theme-toggle::after,.social-link::after,.nav-link.active::after{display:none}.header,.search-modal,.feature-card,.hero-action,.search-button,.theme-toggle,.social-link,.nav-link.active{border:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent)}}.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(
51
+ --octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))
52
+ )}:root:root .nav-link:not(.active):hover{background:var(
53
+ --octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)
54
+ )}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`
55
+ };
56
+ //#endregion
57
+ exports.default = liquidGlass;
58
+ exports.liquidGlass = liquidGlass;
@@ -0,0 +1,16 @@
1
+ import { ThemeConfig } from "@ox-content/vite-plugin";
2
+ //#region src/index.d.ts
3
+ /**
4
+ * Liquid Glass — Refractive glass panels with specular edges and a light sweep on hover.
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: [liquidGlass, tokyoNight]
11
+ * ```
12
+ */
13
+ declare const liquidGlass: ThemeConfig;
14
+ //#endregion
15
+ export { liquidGlass as default, liquidGlass };
16
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;cAca,aAAa"}
@@ -0,0 +1,16 @@
1
+ import { ThemeConfig } from "@ox-content/vite-plugin";
2
+ //#region src/index.d.ts
3
+ /**
4
+ * Liquid Glass — Refractive glass panels with specular edges and a light sweep on hover.
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: [liquidGlass, tokyoNight]
11
+ * ```
12
+ */
13
+ declare const liquidGlass: ThemeConfig;
14
+ //#endregion
15
+ export { liquidGlass as default, liquidGlass };
16
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;cAca,aAAa"}
package/dist/index.mjs ADDED
@@ -0,0 +1,55 @@
1
+ //#endregion
2
+ //#region src/index.ts
3
+ /**
4
+ * Liquid Glass — Refractive glass panels with specular edges and a light sweep on hover.
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: [liquidGlass, tokyoNight]
11
+ * ```
12
+ */
13
+ const liquidGlass = {
14
+ name: "liquid-glass",
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: "268px",
21
+ headerHeight: "66px",
22
+ maxContentWidth: "940px"
23
+ },
24
+ entryPage: { mode: "default" },
25
+ embed: { head: "<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute;width:0;height:0;overflow:hidden\"><filter id=\"octc-lg-lens\" x=\"0%\" y=\"0%\" width=\"100%\" height=\"100%\" color-interpolation-filters=\"sRGB\"><feImage href=\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22x%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22rgb%280%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.17%22%20stop-color%3D%22rgb%28128%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.83%22%20stop-color%3D%22rgb%28128%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22rgb%28255%2C0%2C0%29%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22y%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22rgb%280%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.17%22%20stop-color%3D%22rgb%280%2C128%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.83%22%20stop-color%3D%22rgb%280%2C128%2C0%29%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22rgb%280%2C255%2C0%29%22%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%22mix%22%3E%3CfeBlend%20mode%3D%22screen%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22url%28%23x%29%22%2F%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22url%28%23y%29%22%20style%3D%22mix-blend-mode%3Ascreen%22%2F%3E%3C%2Fsvg%3E\" result=\"map\" preserveAspectRatio=\"none\"/><feDisplacementMap in=\"SourceGraphic\" in2=\"map\" scale=\"26\" xChannelSelector=\"R\" yChannelSelector=\"G\"/></filter></svg>" },
26
+ tokens: {
27
+ "motion-fast": "220ms",
28
+ "motion-base": "420ms",
29
+ "motion-slow": "1000ms",
30
+ "motion-ease": "cubic-bezier(0.22, 1, 0.36, 1)",
31
+ "motion-spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
32
+ "motion-rise": "0.75rem"
33
+ },
34
+ 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-lg-r:22px;--octc-lg-wallpaper:radial-gradient(
35
+ 48% 38% at 12% 8%,color-mix(in srgb,var(--octc-accent-a,var(--octc-color-primary)) 46%,transparent),transparent 72%
36
+ ),radial-gradient(
37
+ 42% 36% at 88% 16%,color-mix(in srgb,var(--octc-accent-c,var(--octc-color-primary)) 40%,transparent),transparent 74%
38
+ ),radial-gradient(
39
+ 54% 44% at 68% 88%,color-mix(in srgb,var(--octc-accent-b,var(--octc-color-primary)) 34%,transparent),transparent 76%
40
+ );--octc-lg-rim:12px;--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg-alt) 26%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.35);--octc-lg-spec-hi:rgba(255,255,255,0.5);--octc-lg-spec-lo:rgba(255,255,255,0.24);--octc-lg-underlight:rgba(0,0,0,0.16)}[data-theme="dark"]{--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg) 24%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.5);--octc-lg-spec-hi:rgba(255,255,255,0.34);--octc-lg-spec-lo:rgba(255,255,255,0.08);--octc-lg-underlight:rgba(0,0,0,0.5)}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg) 24%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.5);--octc-lg-spec-hi:rgba(255,255,255,0.34);--octc-lg-spec-lo:rgba(255,255,255,0.08);--octc-lg-underlight:rgba(0,0,0,0.5)}}body{background-image:var(--octc-lg-wallpaper);background-attachment:fixed;background-repeat:no-repeat}.header,.search-modal,.feature-card,.hero-notice,.hero-action,.search-button,.theme-toggle,.social-link,.nav-link.active,.content blockquote{position:relative;isolation:isolate;border:0;background:var(--octc-lg-tint);backdrop-filter:url(#octc-lg-lens) blur(7px) saturate(190%);-webkit-backdrop-filter:url(#octc-lg-lens) blur(7px) saturate(190%);box-shadow:0 10px 30px -14px var(--octc-lg-underlight)}.header::before,.sidebar::before,.search-modal::before,.feature-card::before,.hero-action::before,.search-button::before,.theme-toggle::before,.social-link::before,.nav-link.active::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;padding:var(--octc-lg-rim);backdrop-filter:var(--octc-lg-rim-filter);-webkit-backdrop-filter:var(--octc-lg-rim-filter);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.header::after,.sidebar::after,.search-modal::after,.feature-card::after,.hero-action::after,.search-button::after,.theme-toggle::after,.social-link::after,.nav-link.active::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;padding:1px;background:linear-gradient(
41
+ 145deg,var(--octc-lg-spec-hi) 0%,transparent 28%,transparent 68%,var(--octc-lg-spec-lo) 100%
42
+ );-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.hero-action,.search-button,.theme-toggle,.social-link,.mobile-footer-btn,.search-input,.nav-link,.toc-link{border-radius:999px}.feature-card,.hero-notice,.content pre,.content blockquote,.content img,.content table{border-radius:var(--octc-lg-r)}.search-modal{border-radius:calc(var(--octc-lg-r) + 6px)}.header{--octc-lg-rim:8px;top:0.85rem;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 1.6rem);gap:1.25rem;border-radius:999px;padding-inline:1.15rem;height:calc(var(--octc-header-height) - 1.4rem)}.layout{padding-top:calc(var(--octc-header-height) + 0.7rem)}.header-title{font-weight:620;letter-spacing:-0.015em}.search-button,.theme-toggle,.social-link{--octc-lg-rim:7px}.nav-link.active{--octc-lg-rim:8px}.sidebar{--octc-skin-sidebar-bg:var(--octc-lg-tint);--octc-lg-rim:10px;position:fixed;top:calc(var(--octc-header-height) + 1.1rem);bottom:1.1rem;left:0.9rem;width:calc(var(--octc-sidebar-width) - 1.2rem);border-radius:var(--octc-lg-r);border:0;padding:1rem 0.75rem;background:var(--octc-lg-tint);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);box-shadow:0 10px 30px -14px var(--octc-lg-underlight)}.toc{border-left:0}.nav-title,.toc-title{font-size:0.7rem;letter-spacing:0.11em;text-transform:uppercase;opacity:0.62}.nav-link:not(.active):hover,.toc-link:hover{background:color-mix(in srgb,var(--octc-color-primary) 10%,transparent)}.nav-link.active{font-weight:620}.content h2{border-bottom:1px solid color-mix(in srgb,var(--octc-color-border) 32%,transparent)}.content :not(pre)>code{border-radius:8px;background:color-mix(in srgb,var(--octc-color-primary) 11%,transparent);padding:0.1em 0.42em}.content pre{border:0;box-shadow:0 14px 36px -20px var(--octc-lg-underlight)}.content blockquote{--octc-lg-rim:10px}.content table{overflow:hidden}.content th,.content td{border-color:color-mix(in srgb,var(--octc-color-border) 26%,transparent)}.content hr{height:1px;border:0;background:color-mix(in srgb,var(--octc-color-border) 45%,transparent)}.hero{background-image:radial-gradient(
43
+ 40% 34% at 22% 16%,color-mix(in srgb,var(--octc-accent-a,var(--octc-color-primary)) 30%,transparent),transparent 72%
44
+ ),radial-gradient(
45
+ 36% 32% at 80% 76%,color-mix(in srgb,var(--octc-accent-c,var(--octc-color-primary)) 24%,transparent),transparent 74%
46
+ );background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.hero-name{letter-spacing:-0.035em;font-weight:660}.hero-action{--octc-lg-rim:9px;font-weight:620;padding-inline:2rem}.hero-action:hover,.feature-card:hover,.search-button:hover,.theme-toggle:hover,.social-link:hover{--octc-lg-rim:15px;transform:translateY(-2px)}.hero-action:active,.search-button:active,.theme-toggle:active,.social-link:active{--octc-lg-rim:5px;transform:translateY(0) scale(0.985)}.features .feature-card{padding:1.4rem}:focus-visible{outline:2px solid var(--octc-color-primary);outline-offset:4px;border-radius:999px}@supports not ((mask-composite:exclude) or (-webkit-mask-composite:xor)){.header::before,.search-modal::before,.feature-card::before,.hero-action::before,.search-button::before,.theme-toggle::before,.social-link::before,.nav-link.active::before,.header::after,.search-modal::after,.feature-card::after,.hero-action::after,.search-button::after,.theme-toggle::after,.social-link::after,.nav-link.active::after{display:none}.header,.search-modal,.feature-card,.hero-action,.search-button,.theme-toggle,.social-link,.nav-link.active{border:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent)}}.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(
47
+ --octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))
48
+ )}:root:root .nav-link:not(.active):hover{background:var(
49
+ --octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)
50
+ )}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`
51
+ };
52
+ //#endregion
53
+ export { liquidGlass as default, liquidGlass };
54
+
55
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/skin.ts","../src/index.ts"],"sourcesContent":["/**\n * Liquid Glass skin stylesheet.\n *\n * Refractive glass panels with specular edges and a light sweep on hover.\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/liquid-glass.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-lg-r:22px;--octc-lg-wallpaper:radial-gradient(\n48% 38% at 12% 8%,color-mix(in srgb,var(--octc-accent-a,var(--octc-color-primary)) 46%,transparent),transparent 72%\n),radial-gradient(\n42% 36% at 88% 16%,color-mix(in srgb,var(--octc-accent-c,var(--octc-color-primary)) 40%,transparent),transparent 74%\n),radial-gradient(\n54% 44% at 68% 88%,color-mix(in srgb,var(--octc-accent-b,var(--octc-color-primary)) 34%,transparent),transparent 76%\n);--octc-lg-rim:12px;--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg-alt) 26%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.35);--octc-lg-spec-hi:rgba(255,255,255,0.5);--octc-lg-spec-lo:rgba(255,255,255,0.24);--octc-lg-underlight:rgba(0,0,0,0.16)}[data-theme=\"dark\"]{--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg) 24%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.5);--octc-lg-spec-hi:rgba(255,255,255,0.34);--octc-lg-spec-lo:rgba(255,255,255,0.08);--octc-lg-underlight:rgba(0,0,0,0.5)}@media (prefers-color-scheme:dark){:root:not([data-theme=\"light\"]){--octc-lg-tint:color-mix(in srgb,var(--octc-color-bg) 24%,transparent);--octc-lg-rim-filter:blur(1px) saturate(1.5);--octc-lg-spec-hi:rgba(255,255,255,0.34);--octc-lg-spec-lo:rgba(255,255,255,0.08);--octc-lg-underlight:rgba(0,0,0,0.5)}}body{background-image:var(--octc-lg-wallpaper);background-attachment:fixed;background-repeat:no-repeat}.header,.search-modal,.feature-card,.hero-notice,.hero-action,.search-button,.theme-toggle,.social-link,.nav-link.active,.content blockquote{position:relative;isolation:isolate;border:0;background:var(--octc-lg-tint);backdrop-filter:url(#octc-lg-lens) blur(7px) saturate(190%);-webkit-backdrop-filter:url(#octc-lg-lens) blur(7px) saturate(190%);box-shadow:0 10px 30px -14px var(--octc-lg-underlight)}.header::before,.sidebar::before,.search-modal::before,.feature-card::before,.hero-action::before,.search-button::before,.theme-toggle::before,.social-link::before,.nav-link.active::before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;padding:var(--octc-lg-rim);backdrop-filter:var(--octc-lg-rim-filter);-webkit-backdrop-filter:var(--octc-lg-rim-filter);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.header::after,.sidebar::after,.search-modal::after,.feature-card::after,.hero-action::after,.search-button::after,.theme-toggle::after,.social-link::after,.nav-link.active::after{content:\"\";position:absolute;inset:0;border-radius:inherit;pointer-events:none;padding:1px;background:linear-gradient(\n145deg,var(--octc-lg-spec-hi) 0%,transparent 28%,transparent 68%,var(--octc-lg-spec-lo) 100%\n);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.hero-action,.search-button,.theme-toggle,.social-link,.mobile-footer-btn,.search-input,.nav-link,.toc-link{border-radius:999px}.feature-card,.hero-notice,.content pre,.content blockquote,.content img,.content table{border-radius:var(--octc-lg-r)}.search-modal{border-radius:calc(var(--octc-lg-r) + 6px)}.header{--octc-lg-rim:8px;top:0.85rem;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 1.6rem);gap:1.25rem;border-radius:999px;padding-inline:1.15rem;height:calc(var(--octc-header-height) - 1.4rem)}.layout{padding-top:calc(var(--octc-header-height) + 0.7rem)}.header-title{font-weight:620;letter-spacing:-0.015em}.search-button,.theme-toggle,.social-link{--octc-lg-rim:7px}.nav-link.active{--octc-lg-rim:8px}.sidebar{--octc-skin-sidebar-bg:var(--octc-lg-tint);--octc-lg-rim:10px;position:fixed;top:calc(var(--octc-header-height) + 1.1rem);bottom:1.1rem;left:0.9rem;width:calc(var(--octc-sidebar-width) - 1.2rem);border-radius:var(--octc-lg-r);border:0;padding:1rem 0.75rem;background:var(--octc-lg-tint);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);box-shadow:0 10px 30px -14px var(--octc-lg-underlight)}.toc{border-left:0}.nav-title,.toc-title{font-size:0.7rem;letter-spacing:0.11em;text-transform:uppercase;opacity:0.62}.nav-link:not(.active):hover,.toc-link:hover{background:color-mix(in srgb,var(--octc-color-primary) 10%,transparent)}.nav-link.active{font-weight:620}.content h2{border-bottom:1px solid color-mix(in srgb,var(--octc-color-border) 32%,transparent)}.content :not(pre)>code{border-radius:8px;background:color-mix(in srgb,var(--octc-color-primary) 11%,transparent);padding:0.1em 0.42em}.content pre{border:0;box-shadow:0 14px 36px -20px var(--octc-lg-underlight)}.content blockquote{--octc-lg-rim:10px}.content table{overflow:hidden}.content th,.content td{border-color:color-mix(in srgb,var(--octc-color-border) 26%,transparent)}.content hr{height:1px;border:0;background:color-mix(in srgb,var(--octc-color-border) 45%,transparent)}.hero{background-image:radial-gradient(\n40% 34% at 22% 16%,color-mix(in srgb,var(--octc-accent-a,var(--octc-color-primary)) 30%,transparent),transparent 72%\n),radial-gradient(\n36% 32% at 80% 76%,color-mix(in srgb,var(--octc-accent-c,var(--octc-color-primary)) 24%,transparent),transparent 74%\n);background-size:cover;background-repeat:no-repeat;background-attachment:fixed}.hero-name{letter-spacing:-0.035em;font-weight:660}.hero-action{--octc-lg-rim:9px;font-weight:620;padding-inline:2rem}.hero-action:hover,.feature-card:hover,.search-button:hover,.theme-toggle:hover,.social-link:hover{--octc-lg-rim:15px;transform:translateY(-2px)}.hero-action:active,.search-button:active,.theme-toggle:active,.social-link:active{--octc-lg-rim:5px;transform:translateY(0) scale(0.985)}.features .feature-card{padding:1.4rem}:focus-visible{outline:2px solid var(--octc-color-primary);outline-offset:4px;border-radius:999px}@supports not ((mask-composite:exclude) or (-webkit-mask-composite:xor)){.header::before,.search-modal::before,.feature-card::before,.hero-action::before,.search-button::before,.theme-toggle::before,.social-link::before,.nav-link.active::before,.header::after,.search-modal::after,.feature-card::after,.hero-action::after,.search-button::after,.theme-toggle::after,.social-link::after,.nav-link.active::after{display:none}.header,.search-modal,.feature-card,.hero-action,.search-button,.theme-toggle,.social-link,.nav-link.active{border:1px solid color-mix(in srgb,var(--octc-color-border) 45%,transparent)}}.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 * Liquid Glass — Refractive glass panels with specular edges and a light sweep on hover.\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: [liquidGlass, tokyoNight]\n * ```\n */\nexport const liquidGlass: ThemeConfig = {\n name: \"liquid-glass\",\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: \"268px\",\n headerHeight: \"66px\",\n maxContentWidth: \"940px\",\n },\n entryPage: { mode: \"default\" },\n embed: {\n head: '<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute;width:0;height:0;overflow:hidden\"><filter id=\"octc-lg-lens\" x=\"0%\" y=\"0%\" width=\"100%\" height=\"100%\" color-interpolation-filters=\"sRGB\"><feImage href=\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22x%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%220%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22rgb%280%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.17%22%20stop-color%3D%22rgb%28128%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.83%22%20stop-color%3D%22rgb%28128%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22rgb%28255%2C0%2C0%29%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22y%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22rgb%280%2C0%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.17%22%20stop-color%3D%22rgb%280%2C128%2C0%29%22%2F%3E%3Cstop%20offset%3D%220.83%22%20stop-color%3D%22rgb%280%2C128%2C0%29%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22rgb%280%2C255%2C0%29%22%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%22mix%22%3E%3CfeBlend%20mode%3D%22screen%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22url%28%23x%29%22%2F%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22url%28%23y%29%22%20style%3D%22mix-blend-mode%3Ascreen%22%2F%3E%3C%2Fsvg%3E\" result=\"map\" preserveAspectRatio=\"none\"/><feDisplacementMap in=\"SourceGraphic\" in2=\"map\" scale=\"26\" xChannelSelector=\"R\" yChannelSelector=\"G\"/></filter></svg>',\n },\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 liquidGlass;\n"],"mappings":";;;;;;;;;;;;ACcA,MAAa,cAA2B;CACtC,MAAM;CACN,OAAO;EACL,MAAM;EACN,MAAM;CACR;CACA,QAAQ;EACN,cAAc;EACd,cAAc;EACd,iBAAiB;CACnB;CACA,WAAW,EAAE,MAAM,UAAU;CAC7B,OAAO,EACL,MAAM,qqDACR;CACA,QAAQ;EACN,eAAe;EACf,eAAe;EACf,eAAe;EACf,eAAe;EACf,iBAAiB;EACjB,eAAe;CACjB;CACA;;;;;;;;;;;;;;;;;AACF"}
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@ox-content/theme-liquid-glass",
3
+ "version": "2.84.0",
4
+ "description": "Refractive glass panels with specular edges and a light sweep on hover — an Ox Content skin that composes with any @ox-content/theme-color-* scheme",
5
+ "keywords": [
6
+ "documentation",
7
+ "glass",
8
+ "glassmorphism",
9
+ "liquid",
10
+ "markdown",
11
+ "ox-content",
12
+ "refraction",
13
+ "skin",
14
+ "ssg",
15
+ "theme"
16
+ ],
17
+ "license": "MIT",
18
+ "author": "ubugeeei",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/ubugeeei-prod/ox-content.git",
22
+ "directory": "npm/theme/liquid-glass"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "type": "module",
28
+ "sideEffects": false,
29
+ "main": "./dist/index.cjs",
30
+ "types": "./dist/index.d.mts",
31
+ "exports": {
32
+ ".": {
33
+ "import": "./dist/index.mjs",
34
+ "require": "./dist/index.cjs",
35
+ "types": "./dist/index.d.mts"
36
+ }
37
+ },
38
+ "publishConfig": {
39
+ "access": "public",
40
+ "provenance": true
41
+ },
42
+ "devDependencies": {
43
+ "@types/node": "^26.1.2",
44
+ "@typescript/native-preview": "^7.0.0-dev.20260707.2",
45
+ "typescript": "^7.0.2",
46
+ "vite-plus": "0.2.8",
47
+ "@ox-content/vite-plugin": "2.84.0"
48
+ },
49
+ "peerDependencies": {
50
+ "@ox-content/vite-plugin": ">=2.84.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "@ox-content/vite-plugin": {
54
+ "optional": true
55
+ }
56
+ },
57
+ "scripts": {
58
+ "build": "vp pack",
59
+ "dev": "vp pack --watch",
60
+ "typecheck": "tsgo --noEmit"
61
+ }
62
+ }