@still-void/ui 1.0.0 → 1.1.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.
@@ -1,120 +0,0 @@
1
- /**
2
- * Quiet Tech color tokens.
3
- * Values ported literally from the Quiet Tech spec (blog.kalleopinheiro.dev).
4
- * Do not round or "approximate" — fidelity rule.
5
- */
6
- declare const colors: {
7
- readonly dark: {
8
- readonly bg: "#0A0A0C";
9
- readonly bgElev: "#111114";
10
- readonly surface: "#16161B";
11
- readonly surface2: "#1C1C22";
12
- readonly border: "rgba(255,255,255,0.08)";
13
- readonly borderStrong: "rgba(255,255,255,0.14)";
14
- readonly text: "#EDEDF0";
15
- readonly text2: "#8B8B96";
16
- readonly text3: "#83838F";
17
- };
18
- readonly light: {
19
- readonly bg: "#F7F7F5";
20
- readonly bgElev: "#FFFFFF";
21
- readonly surface: "#FFFFFF";
22
- readonly surface2: "#F2F2EF";
23
- readonly border: "rgba(0,0,0,0.08)";
24
- readonly borderStrong: "rgba(0,0,0,0.14)";
25
- readonly text: "#16161B";
26
- readonly text2: "#5A5A66";
27
- readonly text3: "#6F6F78";
28
- };
29
- };
30
- declare const accents: {
31
- readonly cyan: "oklch(0.78 0.12 210)";
32
- readonly violet: "oklch(0.72 0.14 295)";
33
- readonly mint: "oklch(0.78 0.10 160)";
34
- readonly amber: "oklch(0.78 0.12 75)";
35
- };
36
- type ThemeMode = keyof typeof colors;
37
- type AccentName = keyof typeof accents;
38
- type ColorScheme = (typeof colors)[ThemeMode];
39
- declare const themeModes: ThemeMode[];
40
- declare const accentNames: AccentName[];
41
- declare const DEFAULT_MODE: ThemeMode;
42
- declare const DEFAULT_ACCENT: AccentName;
43
-
44
- /**
45
- * Blog categories from the prototype. Categories render as a colored dot + label
46
- * (never an emoji). The pill also accepts any CSS color for whitelabel use.
47
- */
48
- type CategoryName = 'ia' | 'prompt' | 'dev' | 'arch' | 'ts';
49
- declare const defaultCategoryColors: Record<CategoryName, AccentName>;
50
- /** Resolve an accent name or raw CSS color to a CSS color value. */
51
- declare function resolveAccentColor(color: AccentName | (string & {})): string;
52
- /** Resolve a category name, accent name, or raw CSS color to a CSS color value. */
53
- declare function resolveCategoryColor(color: CategoryName | AccentName | (string & {})): string;
54
-
55
- /** Data shape consumed by PostCard / FeaturedPostCard. The library never ships mock data. */
56
- interface PostSummary {
57
- title: string;
58
- href: string;
59
- excerpt?: string;
60
- date?: string;
61
- readMinutes?: number;
62
- category?: {
63
- label: string;
64
- /** Accent token name, known category, or any CSS color. */
65
- color?: AccentName | CategoryName | (string & {});
66
- };
67
- }
68
- interface TocItem {
69
- id: string;
70
- label: string;
71
- depth?: 2 | 3;
72
- }
73
- interface NavItem {
74
- label: string;
75
- href: string;
76
- active?: boolean;
77
- }
78
-
79
- /**
80
- * Article recipes: CodeBlock, Callout, TableOfContents, ReadingProgress,
81
- * ArticleHeader, Prose. Pure functions — Server Component safe.
82
- */
83
- declare function codeBlock(): string;
84
- declare const codeBlockClasses: {
85
- readonly header: "qt-code-block__header";
86
- readonly pre: "qt-code-block__pre";
87
- readonly copy: "qt-code-block__copy";
88
- readonly copyCopied: string;
89
- };
90
- type CalloutKind = 'note' | 'warn' | 'aha';
91
- declare function callout(kind: CalloutKind): string;
92
- declare const calloutClasses: {
93
- readonly label: "qt-callout__label";
94
- };
95
- declare const calloutLabels: Record<CalloutKind, string>;
96
- declare function tableOfContents(): string;
97
- interface TocLinkOptions {
98
- active?: boolean;
99
- /** Heading depth, 2 (h2) or 3 (h3). Depth 3 indents. */
100
- depth?: 2 | 3;
101
- }
102
- declare function tocLink(options?: TocLinkOptions): string;
103
- declare function readingProgress(): string;
104
- declare const readingProgressClasses: {
105
- readonly bar: "qt-reading-progress__bar";
106
- };
107
- /** CSS var read by `.qt-reading-progress__bar` (0 → 1). */
108
- declare const READING_PROGRESS_VAR = "--qt-reading-progress";
109
- declare function articleHeader(): string;
110
- declare const articleHeaderClasses: {
111
- readonly title: "qt-article-header__title";
112
- readonly meta: "qt-article-header__meta";
113
- readonly author: "qt-article-header__author";
114
- };
115
- declare function prose(): string;
116
- declare const proseClasses: {
117
- readonly lead: "qt-prose__lead";
118
- };
119
-
120
- export { type AccentName as A, type CalloutKind as C, DEFAULT_ACCENT as D, type NavItem as N, type PostSummary as P, READING_PROGRESS_VAR as R, type ThemeMode as T, type CategoryName as a, type ColorScheme as b, DEFAULT_MODE as c, type TocItem as d, type TocLinkOptions as e, accentNames as f, accents as g, articleHeader as h, articleHeaderClasses as i, callout as j, calloutClasses as k, calloutLabels as l, codeBlock as m, codeBlockClasses as n, colors as o, defaultCategoryColors as p, prose as q, proseClasses as r, readingProgress as s, readingProgressClasses as t, resolveAccentColor as u, resolveCategoryColor as v, tableOfContents as w, themeModes as x, tocLink as y };