@nukleas/cyberdesign 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/LICENSE +21 -0
- package/README.md +38 -0
- package/build.ts +286 -0
- package/dist/cyberdesign-vars-only.css +116 -0
- package/dist/cyberdesign.css +8377 -0
- package/dist/fonts/JetBrainsMono-Variable.woff2 +0 -0
- package/dist/fonts/OFL.txt +93 -0
- package/dist/react/Accordion.d.ts +34 -0
- package/dist/react/Accordion.js +13 -0
- package/dist/react/Alert.d.ts +19 -0
- package/dist/react/Alert.js +6 -0
- package/dist/react/AugButton.d.ts +12 -0
- package/dist/react/AugButton.js +6 -0
- package/dist/react/AugPanel.d.ts +10 -0
- package/dist/react/AugPanel.js +6 -0
- package/dist/react/Avatar.d.ts +28 -0
- package/dist/react/Avatar.js +11 -0
- package/dist/react/Badge.d.ts +10 -0
- package/dist/react/Badge.js +6 -0
- package/dist/react/Breadcrumb.d.ts +19 -0
- package/dist/react/Breadcrumb.js +10 -0
- package/dist/react/Button.d.ts +12 -0
- package/dist/react/Button.js +6 -0
- package/dist/react/Checkbox.d.ts +9 -0
- package/dist/react/Checkbox.js +9 -0
- package/dist/react/Dropdown.d.ts +35 -0
- package/dist/react/Dropdown.js +20 -0
- package/dist/react/Field.d.ts +13 -0
- package/dist/react/Field.js +6 -0
- package/dist/react/Gauge.d.ts +19 -0
- package/dist/react/Gauge.js +6 -0
- package/dist/react/GlowCard.d.ts +12 -0
- package/dist/react/GlowCard.js +4 -0
- package/dist/react/HudBar.d.ts +34 -0
- package/dist/react/HudBar.js +10 -0
- package/dist/react/HudFrame.d.ts +19 -0
- package/dist/react/HudFrame.js +6 -0
- package/dist/react/Input.d.ts +11 -0
- package/dist/react/Input.js +6 -0
- package/dist/react/Interference.d.ts +18 -0
- package/dist/react/Interference.js +6 -0
- package/dist/react/Kbd.d.ts +18 -0
- package/dist/react/Kbd.js +11 -0
- package/dist/react/Label.d.ts +8 -0
- package/dist/react/Label.js +6 -0
- package/dist/react/Modal.d.ts +19 -0
- package/dist/react/Modal.js +9 -0
- package/dist/react/Pagination.d.ts +23 -0
- package/dist/react/Pagination.js +28 -0
- package/dist/react/PanelHeader.d.ts +9 -0
- package/dist/react/PanelHeader.js +6 -0
- package/dist/react/Progress.d.ts +13 -0
- package/dist/react/Progress.js +6 -0
- package/dist/react/Radio.d.ts +9 -0
- package/dist/react/Radio.js +9 -0
- package/dist/react/Scanner.d.ts +11 -0
- package/dist/react/Scanner.js +6 -0
- package/dist/react/Select.d.ts +13 -0
- package/dist/react/Select.js +6 -0
- package/dist/react/Separator.d.ts +11 -0
- package/dist/react/Separator.js +7 -0
- package/dist/react/Skeleton.d.ts +11 -0
- package/dist/react/Skeleton.js +13 -0
- package/dist/react/Slider.d.ts +9 -0
- package/dist/react/Slider.js +9 -0
- package/dist/react/Spinner.d.ts +11 -0
- package/dist/react/Spinner.js +6 -0
- package/dist/react/Stat.d.ts +20 -0
- package/dist/react/Stat.js +11 -0
- package/dist/react/Switch.d.ts +9 -0
- package/dist/react/Switch.js +6 -0
- package/dist/react/Table.d.ts +55 -0
- package/dist/react/Table.js +36 -0
- package/dist/react/Tabs.d.ts +28 -0
- package/dist/react/Tabs.js +16 -0
- package/dist/react/Terminal.d.ts +33 -0
- package/dist/react/Terminal.js +6 -0
- package/dist/react/Textarea.d.ts +7 -0
- package/dist/react/Textarea.js +6 -0
- package/dist/react/Ticker.d.ts +13 -0
- package/dist/react/Ticker.js +7 -0
- package/dist/react/Toast.d.ts +15 -0
- package/dist/react/Toast.js +6 -0
- package/dist/react/Tooltip.d.ts +11 -0
- package/dist/react/Tooltip.js +6 -0
- package/dist/react/index.d.ts +39 -0
- package/dist/react/index.js +46 -0
- package/dist/tailwind-theme.css +171 -0
- package/dist/tokens/base.d.ts +33 -0
- package/dist/tokens/base.js +41 -0
- package/dist/tokens/index.d.ts +7 -0
- package/dist/tokens/index.js +7 -0
- package/dist/tokens/semantic.d.ts +1 -0
- package/dist/tokens/semantic.js +54 -0
- package/dist/tokens/themes/cyan.d.ts +1 -0
- package/dist/tokens/themes/cyan.js +15 -0
- package/dist/tokens/themes/green.d.ts +1 -0
- package/dist/tokens/themes/green.js +15 -0
- package/dist/tokens/themes/orange.d.ts +1 -0
- package/dist/tokens/themes/orange.js +15 -0
- package/dist/tokens/themes/red.d.ts +1 -0
- package/dist/tokens/themes/red.js +15 -0
- package/dist/tokens/themes/steel.d.ts +1 -0
- package/dist/tokens/themes/steel.js +15 -0
- package/package.json +73 -0
- package/src/css/a11y.css +67 -0
- package/src/css/animations.css +111 -0
- package/src/css/base.css +34 -0
- package/src/css/components/accordion.css +148 -0
- package/src/css/components/alert.css +116 -0
- package/src/css/components/app-patterns.css +894 -0
- package/src/css/components/augmented.css +474 -0
- package/src/css/components/avatar.css +105 -0
- package/src/css/components/badge.css +46 -0
- package/src/css/components/breadcrumb.css +75 -0
- package/src/css/components/button.css +130 -0
- package/src/css/components/calendar.css +135 -0
- package/src/css/components/card.css +68 -0
- package/src/css/components/carousel.css +69 -0
- package/src/css/components/charts.css +464 -0
- package/src/css/components/checkbox.css +136 -0
- package/src/css/components/command.css +162 -0
- package/src/css/components/dropdown.css +187 -0
- package/src/css/components/form.css +280 -0
- package/src/css/components/gauge.css +156 -0
- package/src/css/components/glow-card.css +32 -0
- package/src/css/components/hud.css +165 -0
- package/src/css/components/image.css +164 -0
- package/src/css/components/input-otp.css +53 -0
- package/src/css/components/input.css +182 -0
- package/src/css/components/interference.css +217 -0
- package/src/css/components/kbd.css +54 -0
- package/src/css/components/layout-extras.css +256 -0
- package/src/css/components/modal.css +146 -0
- package/src/css/components/navigation-extras.css +280 -0
- package/src/css/components/pagination.css +122 -0
- package/src/css/components/panel-header.css +55 -0
- package/src/css/components/popover.css +112 -0
- package/src/css/components/scanner.css +125 -0
- package/src/css/components/select.css +99 -0
- package/src/css/components/sheet.css +149 -0
- package/src/css/components/skeleton.css +77 -0
- package/src/css/components/slider.css +116 -0
- package/src/css/components/spinner.css +101 -0
- package/src/css/components/spreadsheet.css +314 -0
- package/src/css/components/svg.css +104 -0
- package/src/css/components/switch.css +114 -0
- package/src/css/components/table.css +115 -0
- package/src/css/components/tabs.css +159 -0
- package/src/css/components/terminal.css +259 -0
- package/src/css/components/ticker.css +100 -0
- package/src/css/components/toast.css +137 -0
- package/src/css/components/toaster.css +48 -0
- package/src/css/components/toggle.css +99 -0
- package/src/css/components/typography.css +122 -0
- package/src/css/components/vectorbg.css +57 -0
- package/src/css/utilities.css +165 -0
- package/src/fonts/JetBrainsMono-Variable.woff2 +0 -0
- package/src/fonts/OFL.txt +93 -0
- package/src/js/charts.js +533 -0
- package/src/react/Accordion.tsx +85 -0
- package/src/react/Alert.tsx +58 -0
- package/src/react/AugButton.tsx +40 -0
- package/src/react/AugPanel.tsx +36 -0
- package/src/react/Avatar.tsx +69 -0
- package/src/react/Badge.tsx +28 -0
- package/src/react/Breadcrumb.tsx +63 -0
- package/src/react/Button.tsx +39 -0
- package/src/react/Checkbox.tsx +31 -0
- package/src/react/Dropdown.tsx +104 -0
- package/src/react/Field.tsx +36 -0
- package/src/react/Gauge.tsx +57 -0
- package/src/react/GlowCard.tsx +25 -0
- package/src/react/HudBar.tsx +86 -0
- package/src/react/HudFrame.tsx +52 -0
- package/src/react/Input.tsx +38 -0
- package/src/react/Interference.tsx +53 -0
- package/src/react/Kbd.tsx +62 -0
- package/src/react/Label.tsx +31 -0
- package/src/react/Modal.tsx +63 -0
- package/src/react/Pagination.tsx +113 -0
- package/src/react/PanelHeader.tsx +28 -0
- package/src/react/Progress.tsx +47 -0
- package/src/react/Radio.tsx +31 -0
- package/src/react/Scanner.tsx +37 -0
- package/src/react/Select.tsx +43 -0
- package/src/react/Separator.tsx +40 -0
- package/src/react/Skeleton.tsx +50 -0
- package/src/react/Slider.tsx +28 -0
- package/src/react/Spinner.tsx +39 -0
- package/src/react/Stat.tsx +52 -0
- package/src/react/Switch.tsx +25 -0
- package/src/react/Table.tsx +144 -0
- package/src/react/Tabs.tsx +97 -0
- package/src/react/Terminal.tsx +95 -0
- package/src/react/Textarea.tsx +20 -0
- package/src/react/Ticker.tsx +46 -0
- package/src/react/Toast.tsx +43 -0
- package/src/react/Tooltip.tsx +32 -0
- package/src/react/index.ts +52 -0
- package/src/tokens/base.ts +48 -0
- package/src/tokens/index.ts +7 -0
- package/src/tokens/semantic.ts +63 -0
- package/src/tokens/themes/cyan.ts +16 -0
- package/src/tokens/themes/green.ts +16 -0
- package/src/tokens/themes/orange.ts +16 -0
- package/src/tokens/themes/red.ts +16 -0
- package/src/tokens/themes/steel.ts +16 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { palette } from './base.js';
|
|
2
|
+
|
|
3
|
+
export const semanticTokens: Record<string, string> = {
|
|
4
|
+
// Backgrounds
|
|
5
|
+
'bg': palette.bgBase,
|
|
6
|
+
'bg-panel': palette.bgPanel,
|
|
7
|
+
'bg-panel-hover': palette.bgPanelHover,
|
|
8
|
+
'bg-surface': palette.surfaceGlass,
|
|
9
|
+
|
|
10
|
+
// Borders
|
|
11
|
+
'border': palette.borderMid,
|
|
12
|
+
'border-dim': palette.borderDim,
|
|
13
|
+
|
|
14
|
+
// Text
|
|
15
|
+
'text': palette.textPrimary,
|
|
16
|
+
'text-alt': palette.textPrimaryAlt,
|
|
17
|
+
'text-secondary': palette.textSecondary,
|
|
18
|
+
'text-muted': palette.textMuted,
|
|
19
|
+
'text-muted-alt': palette.textMutedAlt,
|
|
20
|
+
'text-dim': palette.textDim,
|
|
21
|
+
|
|
22
|
+
// Secondary accent — magenta, consistent across all themes
|
|
23
|
+
'accent-secondary': palette.magenta,
|
|
24
|
+
'accent-secondary-glow': 'rgba(255, 43, 214, 0.32)',
|
|
25
|
+
'accent-secondary-subtle': 'rgba(255, 43, 214, 0.12)',
|
|
26
|
+
|
|
27
|
+
// Supporting neon palette (for explicit color-coded categories)
|
|
28
|
+
'neon-green': palette.greenBright,
|
|
29
|
+
'neon-red': palette.redAlt,
|
|
30
|
+
'neon-blue': palette.blueAlt,
|
|
31
|
+
'neon-purple': palette.purple,
|
|
32
|
+
'neon-yellow': palette.yellow,
|
|
33
|
+
'neon-amber': palette.amber,
|
|
34
|
+
'neon-orange': palette.orange,
|
|
35
|
+
'neon-cyan': palette.cyan,
|
|
36
|
+
'neon-magenta': palette.magenta,
|
|
37
|
+
|
|
38
|
+
// Raw palette exposed for explicit use (category color maps, etc.)
|
|
39
|
+
'orange': palette.orange,
|
|
40
|
+
'amber': palette.amber,
|
|
41
|
+
'gold': palette.gold,
|
|
42
|
+
'cyan': palette.cyan,
|
|
43
|
+
'magenta': palette.magenta,
|
|
44
|
+
'purple': palette.purple,
|
|
45
|
+
'green': palette.greenBright,
|
|
46
|
+
'red': palette.redAlt,
|
|
47
|
+
'blue': palette.blueAlt,
|
|
48
|
+
'yellow': palette.yellow,
|
|
49
|
+
|
|
50
|
+
// CRT / effects
|
|
51
|
+
'scanline-color': 'rgba(0, 0, 0, 0.18)',
|
|
52
|
+
'pixel-grid-color': 'rgba(71, 246, 255, 0.055)',
|
|
53
|
+
|
|
54
|
+
// Font
|
|
55
|
+
'font-mono': '"JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace',
|
|
56
|
+
|
|
57
|
+
// Typography scale (rem-based for accessibility + user font scaling)
|
|
58
|
+
'text-xs': '0.6875rem', // ~11px — dense labels, badges, kbd
|
|
59
|
+
'text-sm': '0.75rem', // ~12px — current "body"/inputs (transition)
|
|
60
|
+
'text-base':'0.8125rem', // ~13px — improved readable body, modals
|
|
61
|
+
'text-md': '0.875rem', // ~14px — larger headings/titles
|
|
62
|
+
'text-lg': '0.9375rem', // ~15px — prominent display
|
|
63
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { palette } from '../base.js';
|
|
2
|
+
|
|
3
|
+
export const cyanTheme: Record<string, string> = {
|
|
4
|
+
'accent': palette.cyan,
|
|
5
|
+
'accent-bright': palette.cyanBright,
|
|
6
|
+
'accent-subtle': 'rgba(71, 246, 255, 0.12)',
|
|
7
|
+
'accent-glow': 'rgba(71, 246, 255, 0.34)',
|
|
8
|
+
'accent-subtle-glow': 'rgba(71, 246, 255, 0.20)',
|
|
9
|
+
'border-glow': 'rgba(71, 246, 255, 0.20)',
|
|
10
|
+
'scrollbar-thumb': 'rgba(71, 246, 255, 0.20)',
|
|
11
|
+
'panel-shadow': 'inset 0 0 0 1px rgba(71, 246, 255, 0.04), 0 0 24px rgba(71, 246, 255, 0.07)',
|
|
12
|
+
// complement: magenta — CMY pairing
|
|
13
|
+
'accent-secondary': '#ff2bd6',
|
|
14
|
+
'accent-secondary-glow': 'rgba(255, 43, 214, 0.32)',
|
|
15
|
+
'accent-secondary-subtle': 'rgba(255, 43, 214, 0.12)',
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { palette } from '../base.js';
|
|
2
|
+
|
|
3
|
+
export const greenTheme: Record<string, string> = {
|
|
4
|
+
'accent': palette.green,
|
|
5
|
+
'accent-bright': palette.greenBright,
|
|
6
|
+
'accent-subtle': 'rgba(0, 255, 0, 0.12)',
|
|
7
|
+
'accent-glow': 'rgba(0, 255, 0, 0.34)',
|
|
8
|
+
'accent-subtle-glow': 'rgba(0, 255, 0, 0.20)',
|
|
9
|
+
'border-glow': 'rgba(0, 255, 0, 0.20)',
|
|
10
|
+
'scrollbar-thumb': 'rgba(0, 255, 0, 0.20)',
|
|
11
|
+
'panel-shadow': 'inset 0 0 0 1px rgba(0, 255, 0, 0.04), 0 0 24px rgba(0, 255, 0, 0.07)',
|
|
12
|
+
// complement: purple — avoids green+magenta clash
|
|
13
|
+
'accent-secondary': '#9d7cff',
|
|
14
|
+
'accent-secondary-glow': 'rgba(157, 124, 255, 0.32)',
|
|
15
|
+
'accent-secondary-subtle': 'rgba(157, 124, 255, 0.12)',
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { palette } from '../base.js';
|
|
2
|
+
|
|
3
|
+
export const orangeTheme: Record<string, string> = {
|
|
4
|
+
'accent': palette.orange,
|
|
5
|
+
'accent-bright': palette.amber,
|
|
6
|
+
'accent-subtle': 'rgba(255, 136, 0, 0.12)',
|
|
7
|
+
'accent-glow': 'rgba(255, 136, 0, 0.40)',
|
|
8
|
+
'accent-subtle-glow': 'rgba(255, 136, 0, 0.20)',
|
|
9
|
+
'border-glow': 'rgba(255, 136, 0, 0.20)',
|
|
10
|
+
'scrollbar-thumb': 'rgba(255, 136, 0, 0.20)',
|
|
11
|
+
'panel-shadow': 'inset 0 0 0 1px rgba(255, 136, 0, 0.04), 0 0 24px rgba(255, 136, 0, 0.07)',
|
|
12
|
+
// complement: magenta (default — no override needed but explicit for clarity)
|
|
13
|
+
'accent-secondary': '#ff2bd6',
|
|
14
|
+
'accent-secondary-glow': 'rgba(255, 43, 214, 0.32)',
|
|
15
|
+
'accent-secondary-subtle': 'rgba(255, 43, 214, 0.12)',
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { palette } from '../base.js';
|
|
2
|
+
|
|
3
|
+
export const redTheme: Record<string, string> = {
|
|
4
|
+
'accent': palette.red,
|
|
5
|
+
'accent-bright': palette.redBright,
|
|
6
|
+
'accent-subtle': 'rgba(255, 68, 68, 0.12)',
|
|
7
|
+
'accent-glow': 'rgba(255, 68, 68, 0.34)',
|
|
8
|
+
'accent-subtle-glow': 'rgba(255, 68, 68, 0.20)',
|
|
9
|
+
'border-glow': 'rgba(255, 68, 68, 0.20)',
|
|
10
|
+
'scrollbar-thumb': 'rgba(255, 68, 68, 0.20)',
|
|
11
|
+
'panel-shadow': 'inset 0 0 0 1px rgba(255, 68, 68, 0.04), 0 0 24px rgba(255, 68, 68, 0.07)',
|
|
12
|
+
// complement: blue — cool contrast against hot red
|
|
13
|
+
'accent-secondary': '#6aa8ff',
|
|
14
|
+
'accent-secondary-glow': 'rgba(106, 168, 255, 0.32)',
|
|
15
|
+
'accent-secondary-subtle': 'rgba(106, 168, 255, 0.12)',
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { palette } from '../base.js';
|
|
2
|
+
|
|
3
|
+
export const steelTheme: Record<string, string> = {
|
|
4
|
+
'accent': palette.steel,
|
|
5
|
+
'accent-bright': palette.steelBright,
|
|
6
|
+
'accent-subtle': 'rgba(154, 175, 196, 0.12)',
|
|
7
|
+
'accent-glow': 'rgba(154, 175, 196, 0.28)',
|
|
8
|
+
'accent-subtle-glow': 'rgba(154, 175, 196, 0.16)',
|
|
9
|
+
'border-glow': 'rgba(154, 175, 196, 0.18)',
|
|
10
|
+
'scrollbar-thumb': 'rgba(154, 175, 196, 0.20)',
|
|
11
|
+
'panel-shadow': 'inset 0 0 0 1px rgba(154, 175, 196, 0.06), 0 0 24px rgba(154, 175, 196, 0.06)',
|
|
12
|
+
// complement: amber — warm tension against cool steel
|
|
13
|
+
'accent-secondary': '#ffaa00',
|
|
14
|
+
'accent-secondary-glow': 'rgba(255, 170, 0, 0.28)',
|
|
15
|
+
'accent-secondary-subtle': 'rgba(255, 170, 0, 0.12)',
|
|
16
|
+
};
|