@sethlivingston/cathode 0.1.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/AGENTS.md +137 -0
- package/LICENSE +21 -0
- package/README.md +91 -0
- package/dist/cathode.css +1388 -0
- package/fonts/LICENSE.txt +4 -0
- package/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-700-normal.woff2 +0 -0
- package/package.json +38 -0
- package/src/base.css +166 -0
- package/src/components/badge.css +59 -0
- package/src/components/button.css +107 -0
- package/src/components/card.css +68 -0
- package/src/components/feedback.css +115 -0
- package/src/components/forms.css +206 -0
- package/src/components/layout.css +76 -0
- package/src/components/nav.css +151 -0
- package/src/components/overlay.css +126 -0
- package/src/components/table.css +57 -0
- package/src/fonts.css +65 -0
- package/src/reset.css +88 -0
- package/src/tokens.css +90 -0
package/src/reset.css
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* cathode/reset.css — minimal modern reset (subset of modern-normalize, MIT) */
|
|
2
|
+
|
|
3
|
+
*,
|
|
4
|
+
*::before,
|
|
5
|
+
*::after {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html {
|
|
10
|
+
-webkit-text-size-adjust: 100%;
|
|
11
|
+
tab-size: 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
b,
|
|
19
|
+
strong {
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
code,
|
|
24
|
+
kbd,
|
|
25
|
+
samp,
|
|
26
|
+
pre {
|
|
27
|
+
font-size: 1em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
small {
|
|
31
|
+
font-size: 80%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
sub,
|
|
35
|
+
sup {
|
|
36
|
+
font-size: 75%;
|
|
37
|
+
line-height: 0;
|
|
38
|
+
position: relative;
|
|
39
|
+
vertical-align: baseline;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
sub {
|
|
43
|
+
bottom: -0.25em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
sup {
|
|
47
|
+
top: -0.5em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
table {
|
|
51
|
+
border-color: currentcolor;
|
|
52
|
+
border-collapse: collapse;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
button,
|
|
56
|
+
input,
|
|
57
|
+
optgroup,
|
|
58
|
+
select,
|
|
59
|
+
textarea {
|
|
60
|
+
font: inherit;
|
|
61
|
+
color: inherit;
|
|
62
|
+
margin: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
button,
|
|
66
|
+
select {
|
|
67
|
+
text-transform: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
legend {
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
progress {
|
|
75
|
+
vertical-align: baseline;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
summary {
|
|
79
|
+
display: list-item;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
img,
|
|
83
|
+
svg,
|
|
84
|
+
video,
|
|
85
|
+
canvas {
|
|
86
|
+
display: block;
|
|
87
|
+
max-width: 100%;
|
|
88
|
+
}
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* cathode/tokens.css — design tokens. The single source of truth.
|
|
2
|
+
Rule for humans and agents alike: style with these variables, never raw values. */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
color-scheme: dark;
|
|
6
|
+
|
|
7
|
+
/* ── Surfaces ─────────────────────────────────────────────
|
|
8
|
+
Elevation is expressed by border brightness, not shadows.
|
|
9
|
+
bg-0 page · bg-1 card · bg-2 control resting · bg-3 hover fill */
|
|
10
|
+
--ct-bg-0: #0b0b10;
|
|
11
|
+
--ct-bg-1: #121219;
|
|
12
|
+
--ct-bg-2: #1a1a23;
|
|
13
|
+
--ct-bg-3: #23232e;
|
|
14
|
+
|
|
15
|
+
--ct-border: #28282f;
|
|
16
|
+
--ct-border-bright: #41414c;
|
|
17
|
+
|
|
18
|
+
/* ── Text ───────────────────────────────────────────────── */
|
|
19
|
+
--ct-text: #e9e9f1;
|
|
20
|
+
--ct-text-dim: #a2a2b3;
|
|
21
|
+
--ct-text-faint: #6a6a78;
|
|
22
|
+
|
|
23
|
+
/* ── Interactive accent — arcade magenta ────────────────── */
|
|
24
|
+
--ct-accent: #c95cf2;
|
|
25
|
+
--ct-accent-bright: #de8bff;
|
|
26
|
+
--ct-accent-glow: rgba(201, 92, 242, 0.4);
|
|
27
|
+
--ct-on-accent: #150420;
|
|
28
|
+
|
|
29
|
+
/* ── Arcade semantic palette ──────────────────────────────
|
|
30
|
+
Status hues — fixed meanings, do not repurpose: */
|
|
31
|
+
--ct-green: #4ae07a; /* success / pass / online */
|
|
32
|
+
--ct-red: #ff5d5d; /* danger / fail / destructive */
|
|
33
|
+
--ct-amber: #ffb454; /* warning / pending */
|
|
34
|
+
--ct-cyan: #4dd8ff; /* info / neutral-active */
|
|
35
|
+
|
|
36
|
+
/* Categorical hues — free for tagging/series, no fixed meaning: */
|
|
37
|
+
--ct-orange: #ff8d4d;
|
|
38
|
+
--ct-lime: #b5e853;
|
|
39
|
+
--ct-pink: #ff6fb0;
|
|
40
|
+
--ct-indigo: #8a93ff;
|
|
41
|
+
|
|
42
|
+
/* ── Typography ───────────────────────────────────────────
|
|
43
|
+
Sans for prose. Mono for data: IDs, counts, timestamps,
|
|
44
|
+
code, badges, table numerics. */
|
|
45
|
+
--ct-font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
|
|
46
|
+
--ct-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
|
|
47
|
+
|
|
48
|
+
--ct-text-xs: 0.75rem; /* 12px — fine print, table headers */
|
|
49
|
+
--ct-text-sm: 0.8125rem; /* 13px — mono data, badges, captions */
|
|
50
|
+
--ct-text-md: 0.9375rem; /* 15px — body default */
|
|
51
|
+
--ct-text-lg: 1.0625rem; /* 17px — emphasized body, h4 */
|
|
52
|
+
--ct-text-xl: 1.3125rem; /* 21px — h3 */
|
|
53
|
+
--ct-text-2xl: 1.625rem; /* 26px — h2 */
|
|
54
|
+
--ct-text-3xl: 2rem; /* 32px — h1 */
|
|
55
|
+
|
|
56
|
+
--ct-leading: 1.55;
|
|
57
|
+
--ct-leading-tight: 1.25;
|
|
58
|
+
--ct-tracking-mono: 0.04em; /* uppercase mono labels */
|
|
59
|
+
|
|
60
|
+
/* ── Space — 4px grid. Compose only from these. ─────────── */
|
|
61
|
+
--ct-space-1: 4px;
|
|
62
|
+
--ct-space-2: 8px;
|
|
63
|
+
--ct-space-3: 12px;
|
|
64
|
+
--ct-space-4: 16px;
|
|
65
|
+
--ct-space-5: 24px;
|
|
66
|
+
--ct-space-6: 32px;
|
|
67
|
+
--ct-space-7: 48px;
|
|
68
|
+
--ct-space-8: 64px;
|
|
69
|
+
|
|
70
|
+
/* ── Shape ──────────────────────────────────────────────── */
|
|
71
|
+
--ct-radius: 2px;
|
|
72
|
+
|
|
73
|
+
/* ── Motion ─────────────────────────────────────────────── */
|
|
74
|
+
--ct-ease: cubic-bezier(0.2, 0, 0.2, 1);
|
|
75
|
+
--ct-quick: 120ms;
|
|
76
|
+
--ct-slow: 240ms;
|
|
77
|
+
|
|
78
|
+
/* ── Layers ─────────────────────────────────────────────── */
|
|
79
|
+
--ct-z-nav: 100;
|
|
80
|
+
--ct-z-modal: 200;
|
|
81
|
+
--ct-z-toast: 300;
|
|
82
|
+
--ct-z-tooltip: 400;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@media (prefers-reduced-motion: reduce) {
|
|
86
|
+
:root {
|
|
87
|
+
--ct-quick: 0ms;
|
|
88
|
+
--ct-slow: 0ms;
|
|
89
|
+
}
|
|
90
|
+
}
|