@casoon/pages-theme 0.0.0-stage → 0.12.8
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 +279 -2
- package/assets/casoon-logo-dark.svg +70 -0
- package/assets/casoon-logo.svg +71 -0
- package/assets/favicon.svg +1 -0
- package/components/AnchorGrid.astro +135 -0
- package/components/ApiEntry.astro +136 -0
- package/components/Badge.astro +31 -0
- package/components/Badges.astro +10 -0
- package/components/BuildOutput.astro +84 -0
- package/components/Button.astro +55 -0
- package/components/CallToAction.astro +64 -0
- package/components/Callout.astro +66 -0
- package/components/CodeBlock.astro +84 -0
- package/components/Demo.astro +80 -0
- package/components/ExamplePanel.astro +153 -0
- package/components/Facts.astro +112 -0
- package/components/Faq.astro +123 -0
- package/components/Features.astro +139 -0
- package/components/FileSet.astro +258 -0
- package/components/Footer.astro +160 -0
- package/components/Header.astro +278 -0
- package/components/Hero.astro +318 -0
- package/components/Install.astro +154 -0
- package/components/Integrations.astro +125 -0
- package/components/Keymap.astro +102 -0
- package/components/Quickstart.astro +95 -0
- package/components/ReleaseHighlights.astro +115 -0
- package/components/Spotlight.astro +177 -0
- package/components/Swatch.astro +45 -0
- package/components/Tabs.astro +90 -0
- package/components/Terminal.astro +79 -0
- package/components/index.ts +25 -0
- package/content.ts +23 -0
- package/fonts/OFL.txt +95 -0
- package/fonts/inter-latin-400-normal.woff2 +0 -0
- package/fonts/inter-latin-500-normal.woff2 +0 -0
- package/fonts/inter-latin-600-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/fonts/onest-latin-wght-normal.woff2 +0 -0
- package/index.ts +204 -0
- package/layouts/Base.astro +131 -0
- package/layouts/Docs.astro +286 -0
- package/lib/ansi.ts +168 -0
- package/lib/changelog.ts +85 -0
- package/lib/docs.ts +54 -0
- package/lib/i18n.ts +136 -0
- package/lib/og.ts +91 -0
- package/lib/showcase.ts +48 -0
- package/lib/url.ts +16 -0
- package/lib/version.ts +50 -0
- package/package.json +71 -4
- package/routes/404.astro +49 -0
- package/routes/changelog.astro +129 -0
- package/routes/docs/[...slug].astro +39 -0
- package/routes/showcase/[slug].astro +108 -0
- package/routes/showcase/index.astro +195 -0
- package/styles/base.css +307 -0
- package/styles/fonts.css +52 -0
- package/styles/tokens.css +136 -0
- package/virtual.d.ts +12 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Design tokens. Brand colours follow casoon.de, adjusted for 4.5:1 text contrast on the
|
|
3
|
+
* page background and on the sand bands (--bg-deep, --bg-sunken).
|
|
4
|
+
* --brand carries CASOON, --accent carries the project (override via the
|
|
5
|
+
* integration's `accent` option).
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
color-scheme: light;
|
|
10
|
+
/* Warm ground: paper, sand bands, sunken frames. */
|
|
11
|
+
--bg: #f4f1eb;
|
|
12
|
+
--bg-deep: #e4ded2;
|
|
13
|
+
--bg-sunken: #dcd7cc;
|
|
14
|
+
--surface: #fff;
|
|
15
|
+
--glass: rgb(255 255 255 / 0.62);
|
|
16
|
+
--border: #d7d1c4;
|
|
17
|
+
--border-strong: #cac3b4;
|
|
18
|
+
--shadow-hard: #cdc8be;
|
|
19
|
+
--text: #44423f;
|
|
20
|
+
--heading: #11100e;
|
|
21
|
+
--muted: #5c5a56;
|
|
22
|
+
--brand: #ad3216;
|
|
23
|
+
--brand-soft: rgb(236 74 32 / 0.1);
|
|
24
|
+
--accent: #ad3216;
|
|
25
|
+
--accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
|
|
26
|
+
--accent-fill: #d4421d;
|
|
27
|
+
--accent-top: #e46140;
|
|
28
|
+
--accent-edge: #f39b82;
|
|
29
|
+
--ink: #11100e;
|
|
30
|
+
--ink-top: #383532;
|
|
31
|
+
--ink-edge: #5b5854;
|
|
32
|
+
--code-bg: #fff;
|
|
33
|
+
--shadow: 0 4px 8px rgb(0 0 0 / 0.15);
|
|
34
|
+
--shadow-lift: 0 21px 27px rgb(0 0 0 / 0.25);
|
|
35
|
+
--r-card: 20px;
|
|
36
|
+
--r-step: 16px;
|
|
37
|
+
--r-panel: 60px;
|
|
38
|
+
--ease-roll: cubic-bezier(0.3, 1.3, 0.5, 1);
|
|
39
|
+
|
|
40
|
+
--font-sans: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
41
|
+
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
42
|
+
--header-h: 62px;
|
|
43
|
+
--max: 1100px;
|
|
44
|
+
|
|
45
|
+
/* Terminal surface: dark in both themes. */
|
|
46
|
+
--term-bg: #15171a;
|
|
47
|
+
--term-text: #d8dde2;
|
|
48
|
+
--term-dim: #8b9297;
|
|
49
|
+
--term-border: rgb(255 255 255 / 0.08);
|
|
50
|
+
--ansi-0: #8b9297;
|
|
51
|
+
--ansi-1: #ff7b7b;
|
|
52
|
+
--ansi-2: #5fd7a7;
|
|
53
|
+
--ansi-3: #f2c66b;
|
|
54
|
+
--ansi-4: #8fd0ff;
|
|
55
|
+
--ansi-5: #e3a1f2;
|
|
56
|
+
--ansi-6: #7fdde6;
|
|
57
|
+
--ansi-7: #d8dde2;
|
|
58
|
+
--ansi-8: #8b9297;
|
|
59
|
+
--ansi-9: #ff9a9a;
|
|
60
|
+
--ansi-10: #7fe8bb;
|
|
61
|
+
--ansi-11: #f7d88f;
|
|
62
|
+
--ansi-12: #b0dcff;
|
|
63
|
+
--ansi-13: #eebcf7;
|
|
64
|
+
--ansi-14: #a4ecf2;
|
|
65
|
+
--ansi-15: #fff;
|
|
66
|
+
|
|
67
|
+
/* Inverted hero ground (Hero tone="invert"): dark in both themes. */
|
|
68
|
+
--invert-bg: #11100e;
|
|
69
|
+
--invert-accent: #f0815f;
|
|
70
|
+
|
|
71
|
+
/* Syntax highlighting (Shiki "css-variables" theme). */
|
|
72
|
+
--astro-code-foreground: var(--text);
|
|
73
|
+
--astro-code-background: var(--code-bg);
|
|
74
|
+
--astro-code-token-keyword: var(--brand);
|
|
75
|
+
--astro-code-token-constant: var(--brand);
|
|
76
|
+
--astro-code-token-string: var(--accent);
|
|
77
|
+
--astro-code-token-string-expression: var(--accent);
|
|
78
|
+
--astro-code-token-function: var(--accent);
|
|
79
|
+
--astro-code-token-comment: var(--muted);
|
|
80
|
+
--astro-code-token-parameter: var(--heading);
|
|
81
|
+
--astro-code-token-punctuation: var(--text);
|
|
82
|
+
--astro-code-token-link: var(--accent);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Dark: explicit choice, or system preference when nothing is stored. Keep both blocks identical. */
|
|
86
|
+
:root[data-theme="dark"] {
|
|
87
|
+
color-scheme: dark;
|
|
88
|
+
--bg: #151412;
|
|
89
|
+
--bg-deep: #1d1b18;
|
|
90
|
+
--bg-sunken: #25221e;
|
|
91
|
+
--surface: #201e1b;
|
|
92
|
+
--glass: rgb(32 30 27 / 0.72);
|
|
93
|
+
--border: rgb(255 255 255 / 0.11);
|
|
94
|
+
--border-strong: rgb(255 255 255 / 0.2);
|
|
95
|
+
--shadow-hard: rgb(0 0 0 / 0.5);
|
|
96
|
+
--text: #cac6be;
|
|
97
|
+
--heading: #f4f1eb;
|
|
98
|
+
--muted: #9b968c;
|
|
99
|
+
--brand: #f0815f;
|
|
100
|
+
--brand-soft: rgb(240 129 95 / 0.12);
|
|
101
|
+
--accent: #f0815f;
|
|
102
|
+
--ink: #f4f1eb;
|
|
103
|
+
--ink-top: #fff;
|
|
104
|
+
--ink-edge: #908b81;
|
|
105
|
+
--code-bg: #1d1b18;
|
|
106
|
+
--term-bg: #0d0c0a;
|
|
107
|
+
--shadow: 0 4px 8px rgb(0 0 0 / 0.4);
|
|
108
|
+
--shadow-lift: 0 21px 27px rgb(0 0 0 / 0.55);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (prefers-color-scheme: dark) {
|
|
112
|
+
:root:not([data-theme="light"]) {
|
|
113
|
+
color-scheme: dark;
|
|
114
|
+
--bg: #151412;
|
|
115
|
+
--bg-deep: #1d1b18;
|
|
116
|
+
--bg-sunken: #25221e;
|
|
117
|
+
--surface: #201e1b;
|
|
118
|
+
--glass: rgb(32 30 27 / 0.72);
|
|
119
|
+
--border: rgb(255 255 255 / 0.11);
|
|
120
|
+
--border-strong: rgb(255 255 255 / 0.2);
|
|
121
|
+
--shadow-hard: rgb(0 0 0 / 0.5);
|
|
122
|
+
--text: #cac6be;
|
|
123
|
+
--heading: #f4f1eb;
|
|
124
|
+
--muted: #9b968c;
|
|
125
|
+
--brand: #f0815f;
|
|
126
|
+
--brand-soft: rgb(240 129 95 / 0.12);
|
|
127
|
+
--accent: #f0815f;
|
|
128
|
+
--ink: #f4f1eb;
|
|
129
|
+
--ink-top: #fff;
|
|
130
|
+
--ink-edge: #908b81;
|
|
131
|
+
--code-bg: #1d1b18;
|
|
132
|
+
--term-bg: #0d0c0a;
|
|
133
|
+
--shadow: 0 4px 8px rgb(0 0 0 / 0.4);
|
|
134
|
+
--shadow-lift: 0 21px 27px rgb(0 0 0 / 0.55);
|
|
135
|
+
}
|
|
136
|
+
}
|
package/virtual.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare module 'virtual:casoon-pages/config' {
|
|
2
|
+
const config: import('./index').ResolvedConfig;
|
|
3
|
+
export default config;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module 'virtual:casoon-pages/showcase' {
|
|
7
|
+
export const examples: import('./lib/showcase').ShowcaseExample[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare module 'virtual:casoon-pages/mdx-components' {
|
|
11
|
+
export const components: Record<string, unknown>;
|
|
12
|
+
}
|