@ox-content/theme-ledger 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 +21 -0
- package/README.md +51 -0
- package/dist/index.cjs +57 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +54 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +63 -0
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-ledger
|
|
2
|
+
|
|
3
|
+
Ledger — A bound accounting book — text set on real ruled lines, tabular figures throughout — 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 8.7 kB of CSS, zero JavaScript, zero
|
|
8
|
+
runtime dependencies.
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @ox-content/theme-ledger @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 ledger from "@ox-content/theme-ledger";
|
|
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: [ledger, tokyoNight] },
|
|
26
|
+
}),
|
|
27
|
+
],
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Layers compose left to right, so anything you append wins:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
theme: [ledger, 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: [ledger, tokyoNight, { tokens: { "motion-base": "200ms", "motion-ease": "linear" } }];
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/index.ts
|
|
7
|
+
/**
|
|
8
|
+
* Ledger — A bound accounting book — text set on real ruled lines, tabular figures throughout.
|
|
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: [ledger, tokyoNight]
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
const ledger = {
|
|
18
|
+
name: "ledger",
|
|
19
|
+
fonts: {
|
|
20
|
+
sans: "\"Optima\", \"Gill Sans\", \"Gill Sans MT\", \"Segoe UI\", ui-sans-serif, sans-serif",
|
|
21
|
+
mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, \"Cascadia Mono\", Consolas, monospace"
|
|
22
|
+
},
|
|
23
|
+
layout: {
|
|
24
|
+
sidebarWidth: "252px",
|
|
25
|
+
headerHeight: "60px",
|
|
26
|
+
maxContentWidth: "880px"
|
|
27
|
+
},
|
|
28
|
+
entryPage: { mode: "default" },
|
|
29
|
+
tokens: {
|
|
30
|
+
"motion-fast": "160ms",
|
|
31
|
+
"motion-base": "300ms",
|
|
32
|
+
"motion-slow": "640ms",
|
|
33
|
+
"motion-ease": "cubic-bezier(0.2,0,0,1)",
|
|
34
|
+
"motion-spring": "cubic-bezier(0.2,0,0,1)",
|
|
35
|
+
"motion-rise": "0.4rem"
|
|
36
|
+
},
|
|
37
|
+
css: `@property --octc-sweep{syntax:"<percentage>";inherits:false;initial-value:0%}@property --octc-spin{syntax:"<angle>";inherits:false;initial-value:0deg}@view-transition{navigation:auto}.header{view-transition-name:octc-header}.sidebar{view-transition-name:octc-sidebar}.main{view-transition-name:octc-main}@media (prefers-reduced-motion:no-preference){::view-transition-old(octc-main){animation:octc-swap-out var(--octc-motion-base) var(--octc-motion-ease) both}::view-transition-new(octc-main){animation:octc-swap-in var(--octc-motion-base) var(--octc-motion-ease) both}}@keyframes octc-swap-out{to{opacity:0;transform:translateY(-0.5rem)}}@keyframes octc-swap-in{from{opacity:0;transform:translateY(0.75rem)}}@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){.content>h2,.feature-card{animation:octc-rise linear both;animation-timeline:view();animation-range:entry 0% entry 55%}.features-grid>:nth-child(2n){animation-range:entry 3% entry 58%}.features-grid>:nth-child(3n){animation-range:entry 6% entry 62%}.hero-name,.hero-text,.hero-tagline,.hero-actions{animation:octc-hero-in var(--octc-motion-slow) var(--octc-motion-spring) both}.hero-text{animation-delay:90ms}.hero-tagline{animation-delay:160ms}.hero-actions{animation-delay:240ms}}}@keyframes octc-rise{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem))}}@keyframes octc-hero-in{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem)) scale(0.994)}}.nav-link,.toc-link,.feature-card,.hero-action,.social-link,.search-button,.theme-toggle,.content a{transition:color var(--octc-motion-fast) var(--octc-motion-ease),background-color var(--octc-motion-fast) var(--octc-motion-ease),border-color var(--octc-motion-fast) var(--octc-motion-ease),box-shadow var(--octc-motion-base) var(--octc-motion-ease),transform var(--octc-motion-base) var(--octc-motion-spring)}.search-modal-overlay{transition:opacity var(--octc-motion-base) var(--octc-motion-ease),display var(--octc-motion-base) allow-discrete}@media (prefers-reduced-motion:no-preference){.search-modal{transition:transform var(--octc-motion-base) var(--octc-motion-spring)}@starting-style{.search-modal{transform:translateY(-0.75rem) scale(0.97)}}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:1ms !important;scroll-behavior:auto !important}}.entry-page .main{padding-inline:0}.entry-page .layout{padding-top:0}.entry-content{max-width:none;padding-inline:0}.entry-content>.content,.features{max-width:var(--octc-max-content-width);margin-inline:auto;padding-inline:clamp(1.25rem,4vw,2rem)}.hero{padding-inline:clamp(1.5rem,6vw,4rem);background-color:transparent;border-bottom:0;min-height:min(100vh,56rem);padding-block:calc(var(--octc-header-height) + clamp(3rem,11vh,7rem)) clamp(3.5rem,11vh,7rem)}.hero::after{content:"";position:absolute;inset:auto 0 0 0;height:clamp(6rem,22vh,14rem);z-index:0;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--octc-color-bg))}.hero-content,.hero-notice,.hero-image{position:relative;z-index:1}.features{border-top:0}.header{background:transparent;border-bottom:0;box-shadow:none}body:not(.entry-page) .header{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}@supports (animation-timeline:scroll()){.header{animation:var(--octc-header-scroll,octc-header-settle) linear both;animation-timeline:scroll(root block);animation-range:0 7rem}}@keyframes octc-header-settle{from{backdrop-filter:blur(0px) saturate(100%);-webkit-backdrop-filter:blur(0px) saturate(100%)}to{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}}.sidebar,.toc{top:0;padding-top:calc(var(--octc-header-height) + 1rem)}.header-actions .social-link,.header-actions .theme-toggle{opacity:0.62;transition:opacity var(--octc-motion-fast) var(--octc-motion-ease)}.header:hover .social-link,.header:hover .theme-toggle,.header-actions :focus-visible{opacity:1}.content h1,.content h2,.content h3,.hero-name,.hero-text,.feature-title{text-wrap:balance}.content p,.content li,.hero-tagline,.feature-details{text-wrap:pretty}.content{hanging-punctuation:first last}.content table{font-variant-numeric:tabular-nums}.content a{text-underline-offset:0.18em;text-decoration-skip-ink:auto}.content h1 a,.content h2 a,.content h3 a{text-decoration:none}::selection{background:color-mix(in srgb,var(--octc-color-primary) 28%,transparent);color:var(--octc-color-text)}.sidebar,.toc,.content pre,.search-results{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--octc-color-text) 22%,transparent) transparent}.content pre{scroll-padding-inline:1rem}.content img,.content video,.content iframe{max-width:100%;height:auto}[data-theme="dark"] body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--octc-lg-rule:color-mix(
|
|
38
|
+
in srgb,var(--octc-accent-cool,var(--octc-color-primary)) 22%,transparent
|
|
39
|
+
);--octc-lg-margin-rule:color-mix(
|
|
40
|
+
in srgb,var(--octc-accent-coral,var(--octc-color-primary)) 45%,transparent
|
|
41
|
+
);--octc-lg-line:1.8rem}.content{line-height:var(--octc-lg-line)}.main{background-image:repeating-linear-gradient(
|
|
42
|
+
to bottom,transparent 0,transparent calc(var(--octc-lg-line) - 1px),var(--octc-lg-rule) calc(var(--octc-lg-line) - 1px),var(--octc-lg-rule) var(--octc-lg-line)
|
|
43
|
+
);background-position:0 calc(var(--octc-lg-line) * -0.25)}.content,.content table,.content th,.content td,.content pre,.header,.sidebar{font-variant-numeric:tabular-nums lining-nums}.header{border-bottom:2px solid color-mix(in srgb,var(--octc-color-text) 70%,transparent);background:var(--octc-color-bg)}.header-title{font-weight:600;letter-spacing:0.02em}.sidebar{--octc-skin-sidebar-bg:transparent;background:transparent;border-right:2px solid var(--octc-lg-margin-rule);padding-top:0}.nav-title,.toc-title{font-size:0.7rem;text-transform:uppercase;letter-spacing:0.14em;border-bottom:1px solid var(--octc-lg-rule);padding-bottom:0.25rem}.nav-link{border-radius:0;border-bottom:1px solid var(--octc-lg-rule);padding-block:0.4rem}.nav-link:hover{background:color-mix(
|
|
44
|
+
in srgb,var(--octc-accent-warm,var(--octc-color-primary)) 14%,transparent
|
|
45
|
+
)}.nav-link.active{background:color-mix(
|
|
46
|
+
in srgb,var(--octc-accent-warm,var(--octc-color-primary)) 22%,transparent
|
|
47
|
+
);font-weight:600}.toc{border-left:2px solid var(--octc-lg-margin-rule)}.toc-link{border-bottom:1px solid var(--octc-lg-rule);border-radius:0}.content h1,.content h2,.content h3{font-weight:600;letter-spacing:0.01em;border-bottom:2px solid color-mix(in srgb,var(--octc-color-text) 55%,transparent);padding-bottom:0.2rem}.content a{text-decoration:underline;text-underline-offset:0.2em}.content table{border:0;border-top:2px solid color-mix(in srgb,var(--octc-color-text) 60%,transparent)}.content th{border:0;border-bottom:3px double color-mix(in srgb,var(--octc-color-text) 60%,transparent);background:transparent;text-transform:uppercase;letter-spacing:0.1em;font-size:0.72rem}.content td{border:0;border-bottom:1px solid var(--octc-lg-rule)}.content tbody tr:nth-child(even){background:color-mix(
|
|
48
|
+
in srgb,var(--octc-accent-cool,var(--octc-color-primary)) 6%,transparent
|
|
49
|
+
)}.content td:not(:first-child){text-align:right}.content pre{border-radius:0;border:1px solid color-mix(in srgb,var(--octc-color-text) 40%,transparent)}.content blockquote{border:0;border-left:3px solid var(--octc-lg-margin-rule);background:transparent;border-radius:0}.content hr{height:3px;border:0;border-top:3px double color-mix(in srgb,var(--octc-color-text) 55%,transparent);background:none}.hero{background-image:none}.hero-name{font-weight:600;letter-spacing:-0.01em}.hero-action{border-radius:0;border:2px solid color-mix(in srgb,var(--octc-color-text) 60%,transparent)}.features .feature-card{border:0;border-bottom:1px solid var(--octc-lg-rule);border-radius:0}.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(
|
|
50
|
+
--octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))
|
|
51
|
+
)}:root:root .nav-link:not(.active):hover{background:var(
|
|
52
|
+
--octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)
|
|
53
|
+
)}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.default = ledger;
|
|
57
|
+
exports.ledger = ledger;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ThemeConfig } from "@ox-content/vite-plugin";
|
|
2
|
+
//#region src/index.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Ledger — A bound accounting book — text set on real ruled lines, tabular figures throughout.
|
|
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: [ledger, tokyoNight]
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
declare const ledger: ThemeConfig;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ledger as default, ledger };
|
|
16
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;cAca,QAAQ"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ThemeConfig } from "@ox-content/vite-plugin";
|
|
2
|
+
//#region src/index.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Ledger — A bound accounting book — text set on real ruled lines, tabular figures throughout.
|
|
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: [ledger, tokyoNight]
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
declare const ledger: ThemeConfig;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ledger as default, ledger };
|
|
16
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;cAca,QAAQ"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* Ledger — A bound accounting book — text set on real ruled lines, tabular figures throughout.
|
|
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: [ledger, tokyoNight]
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
const ledger = {
|
|
14
|
+
name: "ledger",
|
|
15
|
+
fonts: {
|
|
16
|
+
sans: "\"Optima\", \"Gill Sans\", \"Gill Sans MT\", \"Segoe UI\", ui-sans-serif, sans-serif",
|
|
17
|
+
mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, \"Cascadia Mono\", Consolas, monospace"
|
|
18
|
+
},
|
|
19
|
+
layout: {
|
|
20
|
+
sidebarWidth: "252px",
|
|
21
|
+
headerHeight: "60px",
|
|
22
|
+
maxContentWidth: "880px"
|
|
23
|
+
},
|
|
24
|
+
entryPage: { mode: "default" },
|
|
25
|
+
tokens: {
|
|
26
|
+
"motion-fast": "160ms",
|
|
27
|
+
"motion-base": "300ms",
|
|
28
|
+
"motion-slow": "640ms",
|
|
29
|
+
"motion-ease": "cubic-bezier(0.2,0,0,1)",
|
|
30
|
+
"motion-spring": "cubic-bezier(0.2,0,0,1)",
|
|
31
|
+
"motion-rise": "0.4rem"
|
|
32
|
+
},
|
|
33
|
+
css: `@property --octc-sweep{syntax:"<percentage>";inherits:false;initial-value:0%}@property --octc-spin{syntax:"<angle>";inherits:false;initial-value:0deg}@view-transition{navigation:auto}.header{view-transition-name:octc-header}.sidebar{view-transition-name:octc-sidebar}.main{view-transition-name:octc-main}@media (prefers-reduced-motion:no-preference){::view-transition-old(octc-main){animation:octc-swap-out var(--octc-motion-base) var(--octc-motion-ease) both}::view-transition-new(octc-main){animation:octc-swap-in var(--octc-motion-base) var(--octc-motion-ease) both}}@keyframes octc-swap-out{to{opacity:0;transform:translateY(-0.5rem)}}@keyframes octc-swap-in{from{opacity:0;transform:translateY(0.75rem)}}@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){.content>h2,.feature-card{animation:octc-rise linear both;animation-timeline:view();animation-range:entry 0% entry 55%}.features-grid>:nth-child(2n){animation-range:entry 3% entry 58%}.features-grid>:nth-child(3n){animation-range:entry 6% entry 62%}.hero-name,.hero-text,.hero-tagline,.hero-actions{animation:octc-hero-in var(--octc-motion-slow) var(--octc-motion-spring) both}.hero-text{animation-delay:90ms}.hero-tagline{animation-delay:160ms}.hero-actions{animation-delay:240ms}}}@keyframes octc-rise{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem))}}@keyframes octc-hero-in{from{opacity:0;transform:translateY(var(--octc-motion-rise,0.6rem)) scale(0.994)}}.nav-link,.toc-link,.feature-card,.hero-action,.social-link,.search-button,.theme-toggle,.content a{transition:color var(--octc-motion-fast) var(--octc-motion-ease),background-color var(--octc-motion-fast) var(--octc-motion-ease),border-color var(--octc-motion-fast) var(--octc-motion-ease),box-shadow var(--octc-motion-base) var(--octc-motion-ease),transform var(--octc-motion-base) var(--octc-motion-spring)}.search-modal-overlay{transition:opacity var(--octc-motion-base) var(--octc-motion-ease),display var(--octc-motion-base) allow-discrete}@media (prefers-reduced-motion:no-preference){.search-modal{transition:transform var(--octc-motion-base) var(--octc-motion-spring)}@starting-style{.search-modal{transform:translateY(-0.75rem) scale(0.97)}}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms !important;animation-iteration-count:1 !important;transition-duration:1ms !important;scroll-behavior:auto !important}}.entry-page .main{padding-inline:0}.entry-page .layout{padding-top:0}.entry-content{max-width:none;padding-inline:0}.entry-content>.content,.features{max-width:var(--octc-max-content-width);margin-inline:auto;padding-inline:clamp(1.25rem,4vw,2rem)}.hero{padding-inline:clamp(1.5rem,6vw,4rem);background-color:transparent;border-bottom:0;min-height:min(100vh,56rem);padding-block:calc(var(--octc-header-height) + clamp(3rem,11vh,7rem)) clamp(3.5rem,11vh,7rem)}.hero::after{content:"";position:absolute;inset:auto 0 0 0;height:clamp(6rem,22vh,14rem);z-index:0;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--octc-color-bg))}.hero-content,.hero-notice,.hero-image{position:relative;z-index:1}.features{border-top:0}.header{background:transparent;border-bottom:0;box-shadow:none}body:not(.entry-page) .header{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}@supports (animation-timeline:scroll()){.header{animation:var(--octc-header-scroll,octc-header-settle) linear both;animation-timeline:scroll(root block);animation-range:0 7rem}}@keyframes octc-header-settle{from{backdrop-filter:blur(0px) saturate(100%);-webkit-backdrop-filter:blur(0px) saturate(100%)}to{backdrop-filter:blur(14px) saturate(150%);-webkit-backdrop-filter:blur(14px) saturate(150%)}}.sidebar,.toc{top:0;padding-top:calc(var(--octc-header-height) + 1rem)}.header-actions .social-link,.header-actions .theme-toggle{opacity:0.62;transition:opacity var(--octc-motion-fast) var(--octc-motion-ease)}.header:hover .social-link,.header:hover .theme-toggle,.header-actions :focus-visible{opacity:1}.content h1,.content h2,.content h3,.hero-name,.hero-text,.feature-title{text-wrap:balance}.content p,.content li,.hero-tagline,.feature-details{text-wrap:pretty}.content{hanging-punctuation:first last}.content table{font-variant-numeric:tabular-nums}.content a{text-underline-offset:0.18em;text-decoration-skip-ink:auto}.content h1 a,.content h2 a,.content h3 a{text-decoration:none}::selection{background:color-mix(in srgb,var(--octc-color-primary) 28%,transparent);color:var(--octc-color-text)}.sidebar,.toc,.content pre,.search-results{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--octc-color-text) 22%,transparent) transparent}.content pre{scroll-padding-inline:1rem}.content img,.content video,.content iframe{max-width:100%;height:auto}[data-theme="dark"] body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--octc-lg-rule:color-mix(
|
|
34
|
+
in srgb,var(--octc-accent-cool,var(--octc-color-primary)) 22%,transparent
|
|
35
|
+
);--octc-lg-margin-rule:color-mix(
|
|
36
|
+
in srgb,var(--octc-accent-coral,var(--octc-color-primary)) 45%,transparent
|
|
37
|
+
);--octc-lg-line:1.8rem}.content{line-height:var(--octc-lg-line)}.main{background-image:repeating-linear-gradient(
|
|
38
|
+
to bottom,transparent 0,transparent calc(var(--octc-lg-line) - 1px),var(--octc-lg-rule) calc(var(--octc-lg-line) - 1px),var(--octc-lg-rule) var(--octc-lg-line)
|
|
39
|
+
);background-position:0 calc(var(--octc-lg-line) * -0.25)}.content,.content table,.content th,.content td,.content pre,.header,.sidebar{font-variant-numeric:tabular-nums lining-nums}.header{border-bottom:2px solid color-mix(in srgb,var(--octc-color-text) 70%,transparent);background:var(--octc-color-bg)}.header-title{font-weight:600;letter-spacing:0.02em}.sidebar{--octc-skin-sidebar-bg:transparent;background:transparent;border-right:2px solid var(--octc-lg-margin-rule);padding-top:0}.nav-title,.toc-title{font-size:0.7rem;text-transform:uppercase;letter-spacing:0.14em;border-bottom:1px solid var(--octc-lg-rule);padding-bottom:0.25rem}.nav-link{border-radius:0;border-bottom:1px solid var(--octc-lg-rule);padding-block:0.4rem}.nav-link:hover{background:color-mix(
|
|
40
|
+
in srgb,var(--octc-accent-warm,var(--octc-color-primary)) 14%,transparent
|
|
41
|
+
)}.nav-link.active{background:color-mix(
|
|
42
|
+
in srgb,var(--octc-accent-warm,var(--octc-color-primary)) 22%,transparent
|
|
43
|
+
);font-weight:600}.toc{border-left:2px solid var(--octc-lg-margin-rule)}.toc-link{border-bottom:1px solid var(--octc-lg-rule);border-radius:0}.content h1,.content h2,.content h3{font-weight:600;letter-spacing:0.01em;border-bottom:2px solid color-mix(in srgb,var(--octc-color-text) 55%,transparent);padding-bottom:0.2rem}.content a{text-decoration:underline;text-underline-offset:0.2em}.content table{border:0;border-top:2px solid color-mix(in srgb,var(--octc-color-text) 60%,transparent)}.content th{border:0;border-bottom:3px double color-mix(in srgb,var(--octc-color-text) 60%,transparent);background:transparent;text-transform:uppercase;letter-spacing:0.1em;font-size:0.72rem}.content td{border:0;border-bottom:1px solid var(--octc-lg-rule)}.content tbody tr:nth-child(even){background:color-mix(
|
|
44
|
+
in srgb,var(--octc-accent-cool,var(--octc-color-primary)) 6%,transparent
|
|
45
|
+
)}.content td:not(:first-child){text-align:right}.content pre{border-radius:0;border:1px solid color-mix(in srgb,var(--octc-color-text) 40%,transparent)}.content blockquote{border:0;border-left:3px solid var(--octc-lg-margin-rule);background:transparent;border-radius:0}.content hr{height:3px;border:0;border-top:3px double color-mix(in srgb,var(--octc-color-text) 55%,transparent);background:none}.hero{background-image:none}.hero-name{font-weight:600;letter-spacing:-0.01em}.hero-action{border-radius:0;border:2px solid color-mix(in srgb,var(--octc-color-text) 60%,transparent)}.features .feature-card{border:0;border-bottom:1px solid var(--octc-lg-rule);border-radius:0}.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(
|
|
46
|
+
--octc-skin-sidebar-bg,color-mix(in srgb,var(--octc-color-bg-alt) 16%,var(--octc-color-bg))
|
|
47
|
+
)}:root:root .nav-link:not(.active):hover{background:var(
|
|
48
|
+
--octc-skin-nav-hover-bg,color-mix(in srgb,var(--octc-color-bg-alt) 58%,transparent)
|
|
49
|
+
)}.header{border-bottom:0}.header{background-color:transparent;background-image:none;box-shadow:none}.content pre{box-shadow:none}`
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { ledger as default, ledger };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/skin.ts","../src/index.ts"],"sourcesContent":["/**\n * Ledger skin stylesheet.\n *\n * A bound accounting book — text set on real ruled lines, tabular figures throughout.\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/ledger.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-rule:color-mix(\nin srgb,var(--octc-accent-cool,var(--octc-color-primary)) 22%,transparent\n);--octc-lg-margin-rule:color-mix(\nin srgb,var(--octc-accent-coral,var(--octc-color-primary)) 45%,transparent\n);--octc-lg-line:1.8rem}.content{line-height:var(--octc-lg-line)}.main{background-image:repeating-linear-gradient(\nto bottom,transparent 0,transparent calc(var(--octc-lg-line) - 1px),var(--octc-lg-rule) calc(var(--octc-lg-line) - 1px),var(--octc-lg-rule) var(--octc-lg-line)\n);background-position:0 calc(var(--octc-lg-line) * -0.25)}.content,.content table,.content th,.content td,.content pre,.header,.sidebar{font-variant-numeric:tabular-nums lining-nums}.header{border-bottom:2px solid color-mix(in srgb,var(--octc-color-text) 70%,transparent);background:var(--octc-color-bg)}.header-title{font-weight:600;letter-spacing:0.02em}.sidebar{--octc-skin-sidebar-bg:transparent;background:transparent;border-right:2px solid var(--octc-lg-margin-rule);padding-top:0}.nav-title,.toc-title{font-size:0.7rem;text-transform:uppercase;letter-spacing:0.14em;border-bottom:1px solid var(--octc-lg-rule);padding-bottom:0.25rem}.nav-link{border-radius:0;border-bottom:1px solid var(--octc-lg-rule);padding-block:0.4rem}.nav-link:hover{background:color-mix(\nin srgb,var(--octc-accent-warm,var(--octc-color-primary)) 14%,transparent\n)}.nav-link.active{background:color-mix(\nin srgb,var(--octc-accent-warm,var(--octc-color-primary)) 22%,transparent\n);font-weight:600}.toc{border-left:2px solid var(--octc-lg-margin-rule)}.toc-link{border-bottom:1px solid var(--octc-lg-rule);border-radius:0}.content h1,.content h2,.content h3{font-weight:600;letter-spacing:0.01em;border-bottom:2px solid color-mix(in srgb,var(--octc-color-text) 55%,transparent);padding-bottom:0.2rem}.content a{text-decoration:underline;text-underline-offset:0.2em}.content table{border:0;border-top:2px solid color-mix(in srgb,var(--octc-color-text) 60%,transparent)}.content th{border:0;border-bottom:3px double color-mix(in srgb,var(--octc-color-text) 60%,transparent);background:transparent;text-transform:uppercase;letter-spacing:0.1em;font-size:0.72rem}.content td{border:0;border-bottom:1px solid var(--octc-lg-rule)}.content tbody tr:nth-child(even){background:color-mix(\nin srgb,var(--octc-accent-cool,var(--octc-color-primary)) 6%,transparent\n)}.content td:not(:first-child){text-align:right}.content pre{border-radius:0;border:1px solid color-mix(in srgb,var(--octc-color-text) 40%,transparent)}.content blockquote{border:0;border-left:3px solid var(--octc-lg-margin-rule);background:transparent;border-radius:0}.content hr{height:3px;border:0;border-top:3px double color-mix(in srgb,var(--octc-color-text) 55%,transparent);background:none}.hero{background-image:none}.hero-name{font-weight:600;letter-spacing:-0.01em}.hero-action{border-radius:0;border:2px solid color-mix(in srgb,var(--octc-color-text) 60%,transparent)}.features .feature-card{border:0;border-bottom:1px solid var(--octc-lg-rule);border-radius:0}.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 * Ledger — A bound accounting book — text set on real ruled lines, tabular figures throughout.\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: [ledger, tokyoNight]\n * ```\n */\nexport const ledger: ThemeConfig = {\n name: \"ledger\",\n fonts: {\n sans: '\"Optima\", \"Gill Sans\", \"Gill Sans MT\", \"Segoe UI\", ui-sans-serif, sans-serif',\n mono: 'ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, \"Cascadia Mono\", Consolas, monospace',\n },\n layout: {\n sidebarWidth: \"252px\",\n headerHeight: \"60px\",\n maxContentWidth: \"880px\",\n },\n entryPage: { mode: \"default\" },\n tokens: {\n \"motion-fast\": \"160ms\",\n \"motion-base\": \"300ms\",\n \"motion-slow\": \"640ms\",\n \"motion-ease\": \"cubic-bezier(0.2,0,0,1)\",\n \"motion-spring\": \"cubic-bezier(0.2,0,0,1)\",\n \"motion-rise\": \"0.4rem\",\n },\n css,\n};\n\nexport default ledger;\n"],"mappings":";;;;;;;;;;;;ACcA,MAAa,SAAsB;CACjC,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
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ox-content/theme-ledger",
|
|
3
|
+
"version": "2.84.0",
|
|
4
|
+
"description": "A bound accounting book — text set on real ruled lines, tabular figures throughout — an Ox Content skin that composes with any @ox-content/theme-color-* scheme",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"accounting",
|
|
7
|
+
"baseline-grid",
|
|
8
|
+
"documentation",
|
|
9
|
+
"ledger",
|
|
10
|
+
"markdown",
|
|
11
|
+
"ox-content",
|
|
12
|
+
"ruled",
|
|
13
|
+
"skin",
|
|
14
|
+
"ssg",
|
|
15
|
+
"tabular",
|
|
16
|
+
"theme"
|
|
17
|
+
],
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "ubugeeei",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/ubugeeei-prod/ox-content.git",
|
|
23
|
+
"directory": "npm/theme/ledger"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"type": "module",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"main": "./dist/index.cjs",
|
|
31
|
+
"types": "./dist/index.d.mts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"import": "./dist/index.mjs",
|
|
35
|
+
"require": "./dist/index.cjs",
|
|
36
|
+
"types": "./dist/index.d.mts"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public",
|
|
41
|
+
"provenance": true
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^26.1.2",
|
|
45
|
+
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|
|
46
|
+
"typescript": "^7.0.2",
|
|
47
|
+
"vite-plus": "0.2.8",
|
|
48
|
+
"@ox-content/vite-plugin": "2.84.0"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@ox-content/vite-plugin": ">=2.84.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependenciesMeta": {
|
|
54
|
+
"@ox-content/vite-plugin": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "vp pack",
|
|
60
|
+
"dev": "vp pack --watch",
|
|
61
|
+
"typecheck": "tsgo --noEmit"
|
|
62
|
+
}
|
|
63
|
+
}
|