@risinghq/folio 0.0.0-stage → 0.0.1
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 +45 -2
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +123 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.js +147 -0
- package/dist/highlight.d.ts +2 -0
- package/dist/highlight.js +82 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/layout.d.ts +39 -0
- package/dist/layout.js +203 -0
- package/dist/manual.d.ts +11 -0
- package/dist/manual.js +23 -0
- package/dist/markdown.d.ts +43 -0
- package/dist/markdown.js +144 -0
- package/dist/og.d.ts +19 -0
- package/dist/og.js +94 -0
- package/dist/options.d.ts +67 -0
- package/dist/options.js +50 -0
- package/dist/plugin.d.ts +20 -0
- package/dist/plugin.js +255 -0
- package/dist/site.d.ts +14 -0
- package/dist/site.js +53 -0
- package/package.json +74 -4
- package/theme/base.css +66 -0
- package/theme/components/code-block.css +53 -0
- package/theme/components/doc.css +61 -0
- package/theme/components/footer.css +18 -0
- package/theme/components/header.css +89 -0
- package/theme/components/home.css +14 -0
- package/theme/components/not-found.css +13 -0
- package/theme/components/pager.css +39 -0
- package/theme/components/prose.css +104 -0
- package/theme/components/sidebar.css +173 -0
- package/theme/components/toc.css +102 -0
- package/theme/controls.css +110 -0
- package/theme/fonts.css +24 -0
- package/theme/index.css +14 -0
- package/theme/tokens.css +83 -0
package/theme/tokens.css
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The design tokens. Components read these and define no colours or radii of
|
|
3
|
+
* their own. Media queries cannot read custom properties, so the two
|
|
4
|
+
* breakpoints are written out where used: 1180px hides the rail and 820px
|
|
5
|
+
* switches to the mobile shell.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Every neutral sits on hue 65, so the neutrals read warm and the accent reads
|
|
10
|
+
* as a colour, not a signal. The accent is amber (hue 55) on dark and hue 40
|
|
11
|
+
* on light: at the lightness light text needs, hue 55 cannot hold enough
|
|
12
|
+
* chroma in sRGB and turns brown. Faint is still text
|
|
13
|
+
* (TOC links, labels, captions), so it keeps 4.5:1 on every surface.
|
|
14
|
+
*/
|
|
15
|
+
:root {
|
|
16
|
+
color-scheme: dark;
|
|
17
|
+
--bg: oklch(0.16 0.006 65);
|
|
18
|
+
--bg-sunken: oklch(0.135 0.005 65);
|
|
19
|
+
--surface: oklch(0.195 0.007 65);
|
|
20
|
+
--raised: oklch(0.235 0.008 65);
|
|
21
|
+
--line: oklch(0.3 0.008 65);
|
|
22
|
+
--line-subtle: oklch(0.245 0.007 65);
|
|
23
|
+
--text: oklch(0.95 0.006 65);
|
|
24
|
+
--text-body: oklch(0.86 0.008 65);
|
|
25
|
+
--muted: oklch(0.77 0.01 65);
|
|
26
|
+
--faint: oklch(0.66 0.01 65);
|
|
27
|
+
--accent: oklch(0.74 0.15 55);
|
|
28
|
+
--scrim: oklch(0 0 0 / 0.5);
|
|
29
|
+
|
|
30
|
+
--code-fg: oklch(0.88 0.008 65);
|
|
31
|
+
--code-comment: oklch(0.63 0.01 65);
|
|
32
|
+
--code-punct: oklch(0.74 0.01 65);
|
|
33
|
+
--code-keyword: oklch(0.78 0.14 55);
|
|
34
|
+
--code-string: oklch(0.8 0.1 150);
|
|
35
|
+
--code-number: oklch(0.86 0.12 95);
|
|
36
|
+
--code-fn: oklch(0.95 0.006 65);
|
|
37
|
+
--code-tag: oklch(0.95 0.006 65);
|
|
38
|
+
--code-attr: oklch(0.76 0.08 240);
|
|
39
|
+
|
|
40
|
+
--font: "Figtree Variable", "Figtree Fallback", system-ui, sans-serif;
|
|
41
|
+
--mono: "Geist Mono Variable", "Geist Mono Fallback", ui-monospace, monospace;
|
|
42
|
+
--r-xs: 4px;
|
|
43
|
+
--r-sm: 6px;
|
|
44
|
+
--r-md: 8px;
|
|
45
|
+
--r-lg: 12px;
|
|
46
|
+
--r-xl: 16px;
|
|
47
|
+
--header: 64px;
|
|
48
|
+
--gutter: 32px;
|
|
49
|
+
--ease: cubic-bezier(0.23, 1, 0.32, 1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* The head script sets data-theme from the saved choice or the system. */
|
|
53
|
+
:root[data-theme="light"] {
|
|
54
|
+
color-scheme: light;
|
|
55
|
+
--bg: oklch(0.985 0.004 65);
|
|
56
|
+
--bg-sunken: oklch(0.962 0.006 65);
|
|
57
|
+
--surface: oklch(0.975 0.005 65);
|
|
58
|
+
--raised: oklch(1 0 0);
|
|
59
|
+
--line: oklch(0.88 0.008 65);
|
|
60
|
+
--line-subtle: oklch(0.92 0.006 65);
|
|
61
|
+
--text: oklch(0.2 0.01 65);
|
|
62
|
+
--text-body: oklch(0.28 0.01 65);
|
|
63
|
+
--muted: oklch(0.43 0.012 65);
|
|
64
|
+
--faint: oklch(0.52 0.01 65);
|
|
65
|
+
--accent: oklch(0.57 0.178 40);
|
|
66
|
+
|
|
67
|
+
--code-fg: oklch(0.3 0.01 65);
|
|
68
|
+
--code-comment: oklch(0.54 0.01 65);
|
|
69
|
+
--code-punct: oklch(0.48 0.01 65);
|
|
70
|
+
--code-keyword: oklch(0.54 0.168 40);
|
|
71
|
+
--code-string: oklch(0.45 0.1 150);
|
|
72
|
+
--code-number: oklch(0.52 0.11 65);
|
|
73
|
+
--code-fn: oklch(0.22 0.01 65);
|
|
74
|
+
--code-tag: oklch(0.22 0.01 65);
|
|
75
|
+
--code-attr: oklch(0.48 0.1 240);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (max-width: 820px) {
|
|
79
|
+
:root {
|
|
80
|
+
--header: 56px;
|
|
81
|
+
--gutter: 20px;
|
|
82
|
+
}
|
|
83
|
+
}
|