@miragon/slidev-toolkit 1.0.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.
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Brand typography — Geist (Vercel), bundled as variable fonts.
3
+ * Licensed under the SIL Open Font License 1.1 (see assets/fonts/LICENSE.txt),
4
+ * so the font files ship inside this package. One variable file per family
5
+ * covers every weight (100–900). Paths resolve relative to this CSS file, so
6
+ * they stay valid when the package is installed from npm.
7
+ */
8
+
9
+ @font-face {
10
+ font-family: 'Geist';
11
+ font-style: normal;
12
+ font-weight: 100 900;
13
+ font-display: swap;
14
+ src: url('../assets/fonts/Geist-Variable.woff2') format('woff2');
15
+ }
16
+
17
+ @font-face {
18
+ font-family: 'Geist Mono';
19
+ font-style: normal;
20
+ font-weight: 100 900;
21
+ font-display: swap;
22
+ src: url('../assets/fonts/GeistMono-Variable.woff2') format('woff2');
23
+ }
@@ -0,0 +1,25 @@
1
+ /* Global deck styles — auto-loaded by Slidev (unscoped). */
2
+
3
+ /* Brand-Tokens (CI-Farben + Gradients) global laden. MUSS hier liegen, nicht
4
+ im scoped <style>-Block in slides.md — Vue scoped sonst `:root` mit der
5
+ Komponenten-ID, dann matchen die Variablen nirgends (in Slidev 52 strikter
6
+ als in 0.49). */
7
+ @import './theme.css';
8
+ @import './fonts.css';
9
+
10
+ /* Brand typography: Geist for everything, Geist Mono for code. Set on the app
11
+ root so it cascades into every layout; redirect Slidev's code-font variable
12
+ (used by code.css) to Geist Mono. Tokens live in theme.css, @font-face in
13
+ fonts.css. */
14
+ #slidev-app {
15
+ font-family: var(--miragon-font);
16
+ --slidev-code-font-family: var(--miragon-font-mono);
17
+ }
18
+
19
+ /* Hide Slidev's built-in Goto dialog (triggered by the "g" key,
20
+ easy to press by accident, obstructs slide content when open).
21
+ DOM id is stable across Slidev versions. The Overview (key "o",
22
+ #slidev-overview) stays available. */
23
+ #slidev-goto-dialog {
24
+ display: none !important;
25
+ }
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Miragon Design Tokens — CI. DO NOT CHANGE brand colors.
3
+ * Rule: NEVER hardcode hex in slides — use these variables or accent props
4
+ * ("blue" | "green" | "mixed") on layouts. See the slides skill.
5
+ */
6
+
7
+ :root {
8
+ /* --- Typografie (CI) ----------------------------------------------- */
9
+ /* Geist (OFL) — bundled variable fonts, see fonts.css. Geist for headings
10
+ and body, Geist Mono for code and tables. Fallbacks keep the deck readable
11
+ before the font loads or if it is unavailable. */
12
+ --miragon-font: 'Geist', 'Inter', 'Helvetica Neue', Arial, sans-serif;
13
+ --miragon-font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
14
+
15
+ /* --- Markenfarben (CI) --------------------------------------------- */
16
+ --miragon-blue: #335DE5; /* Primär */
17
+ --miragon-green: #00E676; /* Sekundär — sparsam einsetzen */
18
+ --miragon-gray-bg: #F9F7F7;
19
+ --miragon-black: #000000;
20
+ --miragon-white: #FFFFFF;
21
+
22
+ /* --- Blau-Varianten ------------------------------------------------ */
23
+ --miragon-blue-dark: #335DE5; /* kanonisch: Headings, Akzente */
24
+ --miragon-blue-darker: #1E3EBF; /* Hover, Borders */
25
+ --miragon-blue-mid: #2B4ACB;
26
+ --miragon-blue-light: #F0F4FF; /* dezente Hintergründe */
27
+ --miragon-blue-soft: #F5F7FF;
28
+ --miragon-blue-warm: #D6E0F8;
29
+ --miragon-blue-deep: #1A3278;
30
+
31
+ /* --- Grün-Varianten ------------------------------------------------ */
32
+ --miragon-green-dark: #00E676;
33
+ --miragon-green-light: #E8F5E9;
34
+ --miragon-green-soft: #D4F5DC;
35
+ --miragon-green-deep: #006838;
36
+
37
+ /* --- Neutrals ------------------------------------------------------- */
38
+ --miragon-gray: #64748B;
39
+ --miragon-gray-light: #F8FAFC;
40
+ --miragon-gray-dark: #1E293B;
41
+ --miragon-grad-mid: #E0ECF5;
42
+ --miragon-grad-mid-accent: #1E6E8A;
43
+
44
+ /* --- Text ---------------------------------------------------------- */
45
+ --miragon-text-primary: #000000;
46
+ --miragon-text-secondary: #334155;
47
+ --miragon-text-muted: #64748B;
48
+
49
+ /* --- Static content gradients (chrome only, never cards) ----------- */
50
+ --miragon-gradient-blue: linear-gradient(135deg, #335DE5 0%, #1E3EBF 100%);
51
+ --miragon-gradient-green: linear-gradient(135deg, #00E676 0%, #00C263 100%);
52
+ --miragon-gradient-mixed: linear-gradient(135deg, #335DE5 0%, #1B4FE0 60%, #00C263 100%);
53
+ }
54
+
55
+ /*
56
+ * Card rule (see the slides skill; use the <Card> component):
57
+ * Cards are ALWAYS white (rounded-xl border border-gray-200 bg-white +
58
+ * box-shadow: 0 8px 20px rgba(51, 93, 229, 0.08)). When a set of cards needs
59
+ * an accent, colour the card's TITLE text only, running the blue → teal →
60
+ * green progression. Never gradient or coloured card backgrounds.
61
+ *
62
+ * The earlier `.mira-card-1/2/3` gradient utilities are intentionally NOT
63
+ * defined here — they violated the white-card rule and have been removed.
64
+ */
65
+
66
+ /*
67
+ * PDF / print export only. Slidev forces `media: "screen"` for the export
68
+ * (so @media print never applies) but adds the class `print` on <html> and
69
+ * wraps each captured slide in `.print-slide-container`. Soft blue-tinted
70
+ * box-shadows on cards and layout panels (compare, goodbad, person, showcase,
71
+ * …) and the large-blur text-shadow on the cover title all rasterise into hard
72
+ * dark/lavender blocks behind the content. They are purely decorative (real
73
+ * edges use `border`), so drop every shadow in the export. The on-screen deck
74
+ * keeps its shadows.
75
+ */
76
+ .print *,
77
+ .print-slide-container * {
78
+ box-shadow: none !important;
79
+ text-shadow: none !important;
80
+ }