@cosxai/ui 0.25.0 → 1.0.0-alpha.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/CHANGELOG.md +577 -0
- package/NOTICE +11 -0
- package/README.md +52 -0
- package/package.json +33 -7
- package/src/fonts.css +20 -0
- package/src/index.ts +8 -25
- package/src/lib/cn.ts +23 -6
- package/src/styles.css +17 -0
- package/src/theme.css +132 -0
- package/src/tokens/colors.css +112 -0
- package/src/tokens/compat.css +36 -0
- package/src/tokens/elevation.css +14 -0
- package/src/tokens/motion.css +42 -0
- package/src/tokens/spacing.css +55 -0
- package/src/tokens/typography-cjk.css +42 -0
- package/src/tokens/typography.css +81 -0
- package/src/actionbar/ActionBar.tsx +0 -837
- package/src/actionbar/ActionBarButton.tsx +0 -111
- package/src/actionbar/ActionBarMenuGroup.tsx +0 -116
- package/src/actionbar/ActionBarModeHandle.tsx +0 -171
- package/src/actionbar/ActionBarProvider.tsx +0 -91
- package/src/actionbar/actionbar-context.ts +0 -45
- package/src/actionbar/index.ts +0 -28
- package/src/actionbar/types.ts +0 -147
- package/src/actionbar/useActionBarItems.ts +0 -60
- package/src/actionbar/useActionBarMode.ts +0 -144
- package/src/actionbar/useActionBarPanel.ts +0 -56
- package/src/actionbar/useActionBarStatusDot.ts +0 -49
- package/src/actionbar/useActionBarToast.ts +0 -33
- package/src/ambient/AmbientBackdrop.tsx +0 -74
- package/src/ambient/CommandInput.tsx +0 -107
- package/src/ambient/SuperbarStrip.tsx +0 -36
- package/src/ambient/index.ts +0 -6
- package/src/bento/BentoCell.tsx +0 -66
- package/src/bento/BentoGrid.tsx +0 -42
- package/src/bento/index.ts +0 -2
- package/src/command/CommandPalette.tsx +0 -329
- package/src/command/CommandProvider.tsx +0 -57
- package/src/command/command-context.ts +0 -12
- package/src/command/index.ts +0 -6
- package/src/command/rank.ts +0 -50
- package/src/command/types.ts +0 -37
- package/src/command/useCommandSource.ts +0 -37
- package/src/dialogs/DialogsProvider.tsx +0 -216
- package/src/dialogs/Modal.tsx +0 -260
- package/src/dialogs/Toast.tsx +0 -85
- package/src/dialogs/dialogs-context.ts +0 -6
- package/src/dialogs/index.ts +0 -10
- package/src/dialogs/types.ts +0 -37
- package/src/dialogs/useDialogs.ts +0 -8
- package/src/editorial/EditorialSpotlight.tsx +0 -63
- package/src/editorial/Folio.tsx +0 -52
- package/src/editorial/PlateMarker.tsx +0 -33
- package/src/editorial/RomanSection.tsx +0 -65
- package/src/editorial/RunningMarginalia.tsx +0 -65
- package/src/editorial/index.ts +0 -10
- package/src/hooks/index.ts +0 -5
- package/src/hooks/useKeyboardHotkey.ts +0 -93
- package/src/hooks/useReducedMotion.ts +0 -20
- package/src/hooks/useViewport.ts +0 -61
- package/src/layout/Breadcrumb.tsx +0 -74
- package/src/layout/LeftNavRail.tsx +0 -139
- package/src/layout/MobileTabBar.tsx +0 -101
- package/src/layout/NavItem.tsx +0 -128
- package/src/layout/NavSearchTrigger.tsx +0 -88
- package/src/layout/NavSection.tsx +0 -40
- package/src/layout/RightSidebarPanel.tsx +0 -111
- package/src/layout/Shell.tsx +0 -91
- package/src/layout/SidePanel.tsx +0 -316
- package/src/layout/StickyBanner.tsx +0 -83
- package/src/layout/Topbar.tsx +0 -68
- package/src/layout/index.ts +0 -24
- package/src/layout/useNavRailState.ts +0 -69
- package/src/lib/time-utils.ts +0 -44
- package/src/neobrutalism/Marquee.tsx +0 -81
- package/src/neobrutalism/Sticker.tsx +0 -71
- package/src/neobrutalism/index.ts +0 -4
- package/src/primitives/Avatar.tsx +0 -53
- package/src/primitives/Button.tsx +0 -67
- package/src/primitives/Card.tsx +0 -41
- package/src/primitives/Checkbox.tsx +0 -87
- package/src/primitives/Chip.tsx +0 -191
- package/src/primitives/Combobox.tsx +0 -507
- package/src/primitives/CopyField.tsx +0 -139
- package/src/primitives/CountBadge.tsx +0 -50
- package/src/primitives/Input.tsx +0 -204
- package/src/primitives/Kbd.tsx +0 -45
- package/src/primitives/MentionCombobox.tsx +0 -612
- package/src/primitives/MultiCombobox.tsx +0 -327
- package/src/primitives/PageHeader.tsx +0 -77
- package/src/primitives/Radio.tsx +0 -131
- package/src/primitives/SegmentedControl.tsx +0 -135
- package/src/primitives/Select.tsx +0 -779
- package/src/primitives/SignaturePad.tsx +0 -461
- package/src/primitives/Tag.tsx +0 -56
- package/src/primitives/Textarea.tsx +0 -62
- package/src/primitives/ToggleSwitch.tsx +0 -79
- package/src/primitives/Tooltip.tsx +0 -213
- package/src/primitives/index.ts +0 -53
- package/src/pwa/InstallPromptBanner.tsx +0 -132
- package/src/pwa/index.ts +0 -4
- package/src/pwa/manifest.template.json +0 -20
- package/src/pwa/registerSW.ts +0 -55
- package/src/riso/Halftone.tsx +0 -85
- package/src/riso/Misregister.tsx +0 -63
- package/src/riso/RisoStamp.tsx +0 -76
- package/src/riso/index.ts +0 -3
- package/src/sketch/HandUnderline.tsx +0 -53
- package/src/sketch/RoughArrow.tsx +0 -91
- package/src/sketch/RoughBox.tsx +0 -73
- package/src/sketch/StickyNote.tsx +0 -56
- package/src/sketch/index.ts +0 -4
- package/src/styles/base.css +0 -186
- package/src/styles/chrome-ambient.css +0 -235
- package/src/styles/chrome-bento.css +0 -192
- package/src/styles/chrome-editorial.css +0 -168
- package/src/styles/chrome-neobrutalism.css +0 -326
- package/src/styles/chrome-riso.css +0 -339
- package/src/styles/chrome-sketch.css +0 -362
- package/src/styles/chrome-swiss.css +0 -265
- package/src/styles/chrome-terminal.css +0 -272
- package/src/styles/fonts.css +0 -1034
- package/src/styles/index.css +0 -343
- package/src/styles/tokens.css +0 -941
- package/src/terminal/AsciiBox.tsx +0 -65
- package/src/terminal/BrailleSpinner.tsx +0 -46
- package/src/terminal/index.ts +0 -4
- package/src/theme/ThemeProvider.tsx +0 -99
- package/src/theme/index.ts +0 -6
- package/src/theme/inline-script.ts +0 -40
- package/src/theme/theme-context.ts +0 -7
- package/src/theme/types.ts +0 -39
- package/src/theme/useTheme.ts +0 -8
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* COSX 3.0 — typography. One family.
|
|
2
|
+
Geist for everything. Hierarchy comes from size and the yellow, not from a second face.
|
|
3
|
+
Headlines 500 (size does the work) · body 400 · UI 500 · labels 12px 500 grey, sentence case ·
|
|
4
|
+
figures 500–700 tabular. Geist Mono is retired; --font-mono resolves to the sans. */
|
|
5
|
+
:root {
|
|
6
|
+
--font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
7
|
+
--font-mono: var(--font-sans); /* retired in 3.0 — resolves to the sans */
|
|
8
|
+
--font-serif: var(--font-sans); /* retired in 3.0 */
|
|
9
|
+
--font-serif-display: var(--font-sans); /* retired in 3.0 */
|
|
10
|
+
|
|
11
|
+
--w-regular: 400; /* @kind font */
|
|
12
|
+
--w-medium: 500; /* @kind font */
|
|
13
|
+
--w-semibold: 600; /* @kind font */
|
|
14
|
+
--w-bold: 700; /* @kind font */
|
|
15
|
+
|
|
16
|
+
/* Screen scale */
|
|
17
|
+
--size-display: clamp(44px, 7vw, 84px);
|
|
18
|
+
--size-h1: clamp(34px, 4.6vw, 56px);
|
|
19
|
+
--size-h2: clamp(26px, 3.2vw, 36px);
|
|
20
|
+
--size-h3: 18px;
|
|
21
|
+
--size-lede: 20px;
|
|
22
|
+
--size-body: 15px;
|
|
23
|
+
--size-small: 13.5px;
|
|
24
|
+
--size-label: 12px; /* labels, eyebrows, metadata — 500, sentence case, --text-secondary */
|
|
25
|
+
--size-mono: 12px; /* alias of --size-label */
|
|
26
|
+
--size-mono-sm: 12px;
|
|
27
|
+
|
|
28
|
+
/* Product UI scale */
|
|
29
|
+
--ui-title: 22px;
|
|
30
|
+
--ui-figure: 32px;
|
|
31
|
+
--ui-body: 14px;
|
|
32
|
+
|
|
33
|
+
/* Social artboard 1080x1350 */
|
|
34
|
+
--social-headline: 72px;
|
|
35
|
+
--social-lede: 26px;
|
|
36
|
+
--social-note: 17px;
|
|
37
|
+
--social-mono: 18px;
|
|
38
|
+
|
|
39
|
+
/* Deck scale, at the 1280x720 artboard */
|
|
40
|
+
--deck-cover: 76px;
|
|
41
|
+
--deck-section: 64px;
|
|
42
|
+
--deck-heading: 46px;
|
|
43
|
+
--deck-figure: 64px;
|
|
44
|
+
--deck-lead: 20px;
|
|
45
|
+
--deck-body: 15px;
|
|
46
|
+
--deck-mono: 13px;
|
|
47
|
+
--deck-source: 13px;
|
|
48
|
+
|
|
49
|
+
--w-display: 500; /* @kind font */
|
|
50
|
+
--leading-display: 1.0; /* @kind other */
|
|
51
|
+
--leading-heading: 1.08; /* @kind other */
|
|
52
|
+
--leading-body: 1.6; /* @kind other */
|
|
53
|
+
|
|
54
|
+
--track-display: -.025em;
|
|
55
|
+
--track-heading: -.015em;
|
|
56
|
+
--track-mono: 0; /* @kind other */
|
|
57
|
+
--track-figure: -.03em;
|
|
58
|
+
|
|
59
|
+
/* v2 names kept as aliases */
|
|
60
|
+
--t-display: 84px; --t-h1: 56px; --t-h2: 36px; --t-h3: 26px; --t-h4: 20px;
|
|
61
|
+
--t-body-lg: 20px; --t-body: 15px; --t-small: 13.5px; --t-meta: 12px;
|
|
62
|
+
--lh-tight: 1.0; /* @kind other */
|
|
63
|
+
--lh-snug: 1.08; /* @kind other */
|
|
64
|
+
--lh-normal: 1.5; /* @kind other */
|
|
65
|
+
--lh-relaxed: 1.6; /* @kind other */
|
|
66
|
+
--track-label: 0; /* @kind other */
|
|
67
|
+
--track-meta: 0; /* @kind other */
|
|
68
|
+
--w-light: 400; /* @kind font */
|
|
69
|
+
}
|
|
70
|
+
.tabular { font-variant-numeric: tabular-nums; }
|
|
71
|
+
|
|
72
|
+
/* The marker: a highlighter stroke behind a phrase. Sits in the lower 60% of the line
|
|
73
|
+
so ascenders clear it. Works across line breaks. */
|
|
74
|
+
.marker {
|
|
75
|
+
background: linear-gradient(transparent 40%, var(--marker) 40%, var(--marker) 94%, transparent 94%);
|
|
76
|
+
-webkit-box-decoration-break: clone; box-decoration-break: clone;
|
|
77
|
+
padding: 0 .08em; margin: 0 -.08em;
|
|
78
|
+
}
|
|
79
|
+
/* On ink the yellow itself is the highlighter: the marked phrase is set in accent yellow with no
|
|
80
|
+
band. Nothing light can sit legibly on a yellow band, and ink type vanishes outside it. */
|
|
81
|
+
.ink-mode .marker, .ink .marker, .marker.on-ink { color: var(--yellow-accent); background: none; padding: 0; margin: 0; border-radius: 0; }
|