@kb-labs/studio-app 0.6.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/.env.example +10 -0
- package/README.md +74 -0
- package/UI-KIT-COMPONENTS.md +783 -0
- package/UI-KIT-PLAN.md +326 -0
- package/eslint-rules/no-direct-antd-import.js +151 -0
- package/eslint.config.ts +27 -0
- package/index.html +17 -0
- package/package.json +72 -0
- package/postcss.config.js +7 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.svg +7 -0
- package/rspack.config.mjs +118 -0
- package/src/App.tsx +46 -0
- package/src/components/devtools/devtools-log-feed.module.css +165 -0
- package/src/components/devtools/devtools-log-feed.tsx +300 -0
- package/src/components/devtools/devtools-panel.module.css +121 -0
- package/src/components/devtools/devtools-panel.tsx +115 -0
- package/src/components/empty-state.tsx +28 -0
- package/src/components/error-boundary.tsx +210 -0
- package/src/components/health-banner.module.css +103 -0
- package/src/components/health-banner.tsx +134 -0
- package/src/components/health-indicator.tsx +12 -0
- package/src/components/page-header.tsx +49 -0
- package/src/components/page-transition.tsx +24 -0
- package/src/components/role-switcher.tsx +148 -0
- package/src/components/run-badge.tsx +13 -0
- package/src/components/ui/icons.tsx +509 -0
- package/src/components/ui/index.ts +25 -0
- package/src/components/ui/kb-config-provider.tsx +130 -0
- package/src/components/ui/kb-header.module.css +51 -0
- package/src/components/ui/kb-header.tsx +112 -0
- package/src/components/ui/kb-notification-bell.module.css +103 -0
- package/src/components/ui/kb-notification-bell.tsx +199 -0
- package/src/components/ui/kb-page-layout.tsx +66 -0
- package/src/components/ui/kb-quick-search.module.css +86 -0
- package/src/components/ui/kb-quick-search.tsx +196 -0
- package/src/components/ui/kb-sidebar.module.css +47 -0
- package/src/components/ui/kb-sidebar.tsx +196 -0
- package/src/components/ui/kb-stat-card.module.css +21 -0
- package/src/components/ui/kb-stat-card.tsx +22 -0
- package/src/components/ui/kb-stat-grid.tsx +22 -0
- package/src/components/ui/kb-status-bar.module.css +49 -0
- package/src/components/ui/kb-status-bar.tsx +145 -0
- package/src/components/ui/kb-system-health-indicator.tsx +229 -0
- package/src/components/ui/kb-theme-toggle.tsx +42 -0
- package/src/components/ui/theme-adapter.ts +812 -0
- package/src/components/ui/theme-transition-overlay.tsx +70 -0
- package/src/components/ui/utils.ts +6 -0
- package/src/components/widget-error-boundary.tsx +172 -0
- package/src/config/env.ts +5 -0
- package/src/config/feature-flags.ts +482 -0
- package/src/config/studio.config.schema.ts +88 -0
- package/src/config/studio.config.ts +84 -0
- package/src/env.d.ts +23 -0
- package/src/hooks/use-command-palette.ts +6 -0
- package/src/hooks/use-devtools-store.ts +25 -0
- package/src/hooks/use-feature-flags.ts +101 -0
- package/src/index.css +10 -0
- package/src/layouts/dashboard-grid.tsx +122 -0
- package/src/layouts/index.ts +12 -0
- package/src/layouts/two-pane.tsx +134 -0
- package/src/main.tsx +15 -0
- package/src/modules/analytics/components/analytics-daily-stats-chart.tsx +257 -0
- package/src/modules/analytics/components/analytics-date-range-picker.tsx +121 -0
- package/src/modules/analytics/pages/analytics-cache-page.tsx +285 -0
- package/src/modules/analytics/pages/analytics-embeddings-page.tsx +274 -0
- package/src/modules/analytics/pages/analytics-events-page.tsx +425 -0
- package/src/modules/analytics/pages/analytics-llm-page.tsx +434 -0
- package/src/modules/analytics/pages/analytics-overview-page.tsx +336 -0
- package/src/modules/analytics/pages/analytics-page.tsx +20 -0
- package/src/modules/analytics/pages/analytics-storage-page.tsx +344 -0
- package/src/modules/analytics/pages/analytics-vectorstore-page.tsx +279 -0
- package/src/modules/analytics/routes/index.tsx +133 -0
- package/src/modules/analytics/utils/formatters.test.ts +148 -0
- package/src/modules/analytics/utils/formatters.ts +100 -0
- package/src/modules/auth/pages/login-page.module.css +113 -0
- package/src/modules/auth/pages/login-page.tsx +80 -0
- package/src/modules/auth/routes/index.tsx +24 -0
- package/src/modules/dashboard/components/ActivityTimelineWidget.tsx +199 -0
- package/src/modules/dashboard/components/AiInsightsWidget.tsx +358 -0
- package/src/modules/dashboard/components/AnimatedMetricCard.css +88 -0
- package/src/modules/dashboard/components/AnimatedMetricCard.tsx +125 -0
- package/src/modules/dashboard/components/HeroMetricCard.css +114 -0
- package/src/modules/dashboard/components/HeroMetricCard.tsx +152 -0
- package/src/modules/dashboard/components/HeroMetricsWidget.tsx +146 -0
- package/src/modules/dashboard/components/SystemResourcesWidget.tsx +197 -0
- package/src/modules/dashboard/components/dashboard-empty.tsx +22 -0
- package/src/modules/dashboard/components/dashboard-kpis-widget.tsx +59 -0
- package/src/modules/dashboard/components/dashboard-kpis.tsx +13 -0
- package/src/modules/dashboard/components/dashboard-latency-percentiles-widget.tsx +85 -0
- package/src/modules/dashboard/components/dashboard-metrics-widget.tsx +78 -0
- package/src/modules/dashboard/components/dashboard-plugins-widget.tsx +67 -0
- package/src/modules/dashboard/components/dashboard-requests-widget.tsx +62 -0
- package/src/modules/dashboard/layouts/dashboard-layout.tsx +16 -0
- package/src/modules/dashboard/pages/ai-insights-page.tsx +563 -0
- package/src/modules/dashboard/pages/dashboard-animations.css +317 -0
- package/src/modules/dashboard/pages/dashboard-page.tsx +13 -0
- package/src/modules/dashboard/routes/index.tsx +70 -0
- package/src/modules/observability/pages/devkit-page.tsx +263 -0
- package/src/modules/observability/pages/incident-detail-page.tsx +571 -0
- package/src/modules/observability/pages/incidents-page.tsx +370 -0
- package/src/modules/observability/pages/log-detail-page.tsx +508 -0
- package/src/modules/observability/pages/logs-page.tsx +1129 -0
- package/src/modules/observability/pages/prometheus-metrics-page.tsx +486 -0
- package/src/modules/observability/pages/state-broker-page.tsx +229 -0
- package/src/modules/observability/pages/system-events-page.tsx +255 -0
- package/src/modules/observability/routes/index.tsx +133 -0
- package/src/modules/plugins/components/marketplace-card.tsx +153 -0
- package/src/modules/plugins/components/plugin-ai-assistant-modal.tsx +374 -0
- package/src/modules/plugins/components/plugin-card.tsx +136 -0
- package/src/modules/plugins/components/plugin-detail/capabilities-summary.tsx +101 -0
- package/src/modules/plugins/components/plugin-detail/cli-commands-table.tsx +101 -0
- package/src/modules/plugins/components/plugin-detail/index.ts +7 -0
- package/src/modules/plugins/components/plugin-detail/jobs-table.tsx +64 -0
- package/src/modules/plugins/components/plugin-detail/permissions/env-permissions.tsx +30 -0
- package/src/modules/plugins/components/plugin-detail/permissions/filesystem-permissions.tsx +68 -0
- package/src/modules/plugins/components/plugin-detail/permissions/index.ts +6 -0
- package/src/modules/plugins/components/plugin-detail/permissions/network-permissions.tsx +43 -0
- package/src/modules/plugins/components/plugin-detail/permissions/platform-services.tsx +242 -0
- package/src/modules/plugins/components/plugin-detail/permissions/resource-quotas.tsx +96 -0
- package/src/modules/plugins/components/plugin-detail/permissions/shell-permissions.tsx +55 -0
- package/src/modules/plugins/components/plugin-detail/permissions-view.tsx +47 -0
- package/src/modules/plugins/components/plugin-detail/plugin-header.tsx +169 -0
- package/src/modules/plugins/components/plugin-detail/rest-routes-table.tsx +159 -0
- package/src/modules/plugins/components/plugin-detail/workflows-table.tsx +40 -0
- package/src/modules/plugins/components/plugin-grid.tsx +20 -0
- package/src/modules/plugins/components/plugin-table.tsx +178 -0
- package/src/modules/plugins/pages/marketplace-page.tsx +200 -0
- package/src/modules/plugins/pages/plugin-detail-page.tsx +1145 -0
- package/src/modules/plugins/routes/index.tsx +48 -0
- package/src/modules/plugins/utils/index.ts +1 -0
- package/src/modules/plugins/utils/schema-helpers.ts +21 -0
- package/src/modules/settings/components/api-routes-viewer.tsx +415 -0
- package/src/modules/settings/components/appearance-settings.tsx +200 -0
- package/src/modules/settings/components/configuration-settings.tsx +321 -0
- package/src/modules/settings/components/data-privacy-settings.tsx +111 -0
- package/src/modules/settings/components/experimental-settings.tsx +243 -0
- package/src/modules/settings/components/navigation-settings.tsx +198 -0
- package/src/modules/settings/components/notifications-settings.tsx +40 -0
- package/src/modules/settings/pages/settings-page.tsx +298 -0
- package/src/modules/settings/routes/index.tsx +47 -0
- package/src/pages/README-assistant.md +91 -0
- package/src/pages/login-page.tsx +177 -0
- package/src/pages/not-found-page.tsx +85 -0
- package/src/providers/auth-provider.tsx +40 -0
- package/src/providers/command-palette-provider.tsx +193 -0
- package/src/providers/data-sources-provider.tsx +27 -0
- package/src/providers/devtools-provider.tsx +72 -0
- package/src/providers/navigation-items-provider.tsx +38 -0
- package/src/providers/registry-v2-provider.tsx +93 -0
- package/src/providers/settings-provider.tsx +158 -0
- package/src/router.tsx +302 -0
- package/src/routes/helpers.tsx +25 -0
- package/src/routes/plugin-page-v2.tsx +52 -0
- package/src/routes/types.ts +18 -0
- package/src/styles/antd-overrides.css +211 -0
- package/src/styles/base.css +190 -0
- package/src/styles/settings.css +75 -0
- package/src/styles/variables.css +94 -0
- package/src/utils/analytics.ts +183 -0
- package/src/utils/apply-navigation-categories.ts +83 -0
- package/src/utils/commands.ts +252 -0
- package/src/utils/export.ts +174 -0
- package/src/utils/format-date.ts +166 -0
- package/src/utils/logger.ts +110 -0
- package/tailwind.config.ts +13 -0
- package/tsconfig.json +13 -0
- package/vitest-setup.ts +1 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/* Ant Design component overrides — theme-aware patches */
|
|
2
|
+
|
|
3
|
+
/* Z-index overrides — must be above sidebar (--z-sidebar: 400) */
|
|
4
|
+
.ant-modal-root .ant-modal-wrap,
|
|
5
|
+
.ant-modal-root .ant-modal-mask {
|
|
6
|
+
z-index: var(--z-overlay) !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ant-modal-root .ant-modal {
|
|
10
|
+
z-index: var(--z-modal) !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ant-drawer-root .ant-drawer {
|
|
14
|
+
z-index: var(--z-modal) !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ant-select-dropdown,
|
|
18
|
+
.ant-dropdown,
|
|
19
|
+
.ant-popover,
|
|
20
|
+
.ant-tooltip {
|
|
21
|
+
z-index: var(--z-popover) !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ant-message,
|
|
25
|
+
.ant-notification {
|
|
26
|
+
z-index: var(--z-toast) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Header buttons — consistent vertical alignment */
|
|
30
|
+
.ant-layout-header .ant-btn {
|
|
31
|
+
display: inline-flex !important;
|
|
32
|
+
align-items: center !important;
|
|
33
|
+
justify-content: center !important;
|
|
34
|
+
line-height: 1 !important;
|
|
35
|
+
vertical-align: middle !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ant-layout-header .ant-btn .ant-btn-icon {
|
|
39
|
+
line-height: 1 !important;
|
|
40
|
+
display: inline-flex !important;
|
|
41
|
+
align-items: center !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Menu group titles — uppercase label style */
|
|
45
|
+
.ant-menu-item-group-title {
|
|
46
|
+
text-transform: uppercase !important;
|
|
47
|
+
letter-spacing: 0.06em !important;
|
|
48
|
+
font-size: 11px !important;
|
|
49
|
+
font-weight: 600 !important;
|
|
50
|
+
color: var(--text-tertiary) !important;
|
|
51
|
+
padding-top: 16px !important;
|
|
52
|
+
padding-bottom: 4px !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Hide group labels when sidebar is collapsed */
|
|
56
|
+
.ant-menu-inline-collapsed .ant-menu-item-group-title {
|
|
57
|
+
display: none !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ant-menu-inline-collapsed .ant-menu-item-group-list {
|
|
61
|
+
padding-top: 4px !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Menu items — pill shape */
|
|
65
|
+
.ant-menu-item,
|
|
66
|
+
.ant-menu-submenu-title {
|
|
67
|
+
border-radius: 8px !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Layout content background */
|
|
71
|
+
.ant-layout {
|
|
72
|
+
background: var(--bg-primary) !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Active menu item styles */
|
|
76
|
+
.menu-item-active,
|
|
77
|
+
.ant-menu-item-selected {
|
|
78
|
+
background-color: var(--accent-subtle) !important;
|
|
79
|
+
color: var(--link) !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ant-menu-item-selected > .ant-menu-title-content {
|
|
83
|
+
color: var(--link) !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Submenu title should stay normal when child is selected */
|
|
87
|
+
.ant-menu-submenu-selected > .ant-menu-submenu-title {
|
|
88
|
+
background-color: transparent !important;
|
|
89
|
+
color: var(--text-primary) !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* But allow hover on submenu title even when child is selected */
|
|
93
|
+
.ant-menu-submenu-selected > .ant-menu-submenu-title:hover {
|
|
94
|
+
background-color: var(--bg-hover) !important;
|
|
95
|
+
color: var(--text-primary) !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Dark theme menu */
|
|
99
|
+
.dark .menu-item-active,
|
|
100
|
+
.dark .ant-menu-item-selected {
|
|
101
|
+
background-color: rgba(96, 165, 250, 0.25) !important;
|
|
102
|
+
color: var(--link) !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.dark .ant-menu-item-selected > .ant-menu-title-content {
|
|
106
|
+
color: var(--link) !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.dark .ant-menu-submenu-selected > .ant-menu-submenu-title {
|
|
110
|
+
background-color: transparent !important;
|
|
111
|
+
color: var(--text-primary) !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.dark .ant-menu-submenu-selected > .ant-menu-submenu-title:hover {
|
|
115
|
+
background-color: var(--bg-hover) !important;
|
|
116
|
+
color: var(--text-primary) !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Fix radio button text color when checked */
|
|
120
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
|
121
|
+
color: var(--text-inverse) !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) span {
|
|
125
|
+
color: var(--text-inverse) !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Fix dropdown menu selected item */
|
|
129
|
+
.ant-dropdown-menu-item-selected,
|
|
130
|
+
.ant-dropdown-menu-submenu-title-selected {
|
|
131
|
+
background-color: var(--accent-subtle) !important;
|
|
132
|
+
color: var(--link) !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ant-dropdown-menu-item-selected .ant-dropdown-menu-title-content,
|
|
136
|
+
.ant-dropdown-menu-submenu-title-selected .ant-dropdown-menu-title-content {
|
|
137
|
+
color: var(--link) !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Dark theme dropdown */
|
|
141
|
+
.dark .ant-dropdown-menu-item-selected,
|
|
142
|
+
.dark .ant-dropdown-menu-submenu-title-selected {
|
|
143
|
+
background-color: rgba(96, 165, 250, 0.15) !important;
|
|
144
|
+
color: var(--link-hover) !important;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.dark .ant-dropdown-menu-item-selected .ant-dropdown-menu-title-content,
|
|
148
|
+
.dark .ant-dropdown-menu-submenu-title-selected .ant-dropdown-menu-title-content {
|
|
149
|
+
color: var(--link-hover) !important;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Dark theme improvements */
|
|
153
|
+
.dark {
|
|
154
|
+
/* Better card shadows with subtle white glow for elevation */
|
|
155
|
+
.ant-card {
|
|
156
|
+
box-shadow: 0 1px 3px var(--shadow), 0 0 0 1px var(--shadow-elevated);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ant-card:hover {
|
|
160
|
+
box-shadow: 0 2px 8px var(--shadow-hover), 0 0 0 1px var(--shadow-elevated);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Better dropdown shadows */
|
|
164
|
+
.ant-dropdown,
|
|
165
|
+
.ant-popover,
|
|
166
|
+
.ant-select-dropdown {
|
|
167
|
+
box-shadow: 0 4px 16px var(--shadow), 0 0 0 1px var(--shadow-elevated) !important;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Better button hover states */
|
|
171
|
+
.ant-btn:not(.ant-btn-primary):not(.ant-btn-text):hover {
|
|
172
|
+
background-color: var(--bg-hover) !important;
|
|
173
|
+
border-color: var(--border-secondary) !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* Fix table row hover being too dark (only body rows, not header) */
|
|
177
|
+
.ant-table-tbody > tr.ant-table-row:hover > td {
|
|
178
|
+
background-color: var(--bg-hover) !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Fix table header hover - should stay same color */
|
|
182
|
+
.ant-table-thead > tr > th:hover {
|
|
183
|
+
background-color: var(--bg-tertiary) !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* Better link contrast */
|
|
187
|
+
a:not(.ant-btn) {
|
|
188
|
+
color: var(--link);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
a:not(.ant-btn):hover {
|
|
192
|
+
color: var(--link-hover);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Fix link button visibility in dark theme */
|
|
196
|
+
.ant-btn-link {
|
|
197
|
+
color: var(--link) !important;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ant-btn-link:hover {
|
|
201
|
+
color: var(--link-hover) !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ant-btn-link:not(:disabled):not(.ant-btn-disabled) {
|
|
205
|
+
color: var(--link) !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.ant-btn-link:not(:disabled):not(.ant-btn-disabled):hover {
|
|
209
|
+
color: var(--link-hover) !important;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/* Base element styles and layout utilities */
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
background-color: var(--bg-primary);
|
|
5
|
+
color: var(--text-primary);
|
|
6
|
+
font-family: var(--font-body);
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
h1, h2, h3, h4, h5, h6 {
|
|
11
|
+
color: var(--text-primary);
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
font-family: var(--font-heading);
|
|
14
|
+
letter-spacing: -0.02em;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
p {
|
|
18
|
+
color: var(--text-secondary);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
a {
|
|
22
|
+
color: var(--link);
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
transition: color 0.15s ease-in-out;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
a:hover {
|
|
28
|
+
color: var(--link-hover);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Text utilities */
|
|
32
|
+
.text-primary {
|
|
33
|
+
color: var(--text-primary);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text-secondary {
|
|
37
|
+
color: var(--text-secondary);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.text-tertiary {
|
|
41
|
+
color: var(--text-tertiary);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Border utilities */
|
|
45
|
+
.border-theme {
|
|
46
|
+
border-color: var(--border-primary);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Status colors */
|
|
50
|
+
.text-success {
|
|
51
|
+
color: var(--success);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.text-warning {
|
|
55
|
+
color: var(--warning);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.text-error {
|
|
59
|
+
color: var(--error);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.text-info {
|
|
63
|
+
color: var(--info);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Background utilities */
|
|
67
|
+
.bg-theme-primary {
|
|
68
|
+
background-color: var(--bg-primary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.bg-theme-secondary {
|
|
72
|
+
background-color: var(--bg-secondary);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.bg-theme-tertiary {
|
|
76
|
+
background-color: var(--bg-tertiary);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Spacing CSS variables */
|
|
80
|
+
:root {
|
|
81
|
+
--spacing-page: 2rem; /* 32px - Space between main page sections */
|
|
82
|
+
--spacing-section: 1.5rem; /* 24px - Space between subsections */
|
|
83
|
+
--spacing-item: 1rem; /* 16px - Space between related items */
|
|
84
|
+
--spacing-tight: 0.5rem; /* 8px - Minimal space between tightly related items */
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Spacing utility classes for gap */
|
|
88
|
+
.gap-page {
|
|
89
|
+
gap: var(--spacing-page);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.gap-section {
|
|
93
|
+
gap: var(--spacing-section);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.gap-item {
|
|
97
|
+
gap: var(--spacing-item);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.gap-tight {
|
|
101
|
+
gap: var(--spacing-tight);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Typography CSS variables */
|
|
105
|
+
:root {
|
|
106
|
+
/* Page title */
|
|
107
|
+
--typo-page-title-size: 2.25rem; /* 36px */
|
|
108
|
+
--typo-page-title-line-height: 2.5rem; /* 40px */
|
|
109
|
+
--typo-page-title-weight: 700;
|
|
110
|
+
|
|
111
|
+
/* Section title */
|
|
112
|
+
--typo-section-title-size: 1.875rem; /* 30px */
|
|
113
|
+
--typo-section-title-line-height: 2.25rem; /* 36px */
|
|
114
|
+
--typo-section-title-weight: 600;
|
|
115
|
+
|
|
116
|
+
/* Card title */
|
|
117
|
+
--typo-card-title-size: 1.5rem; /* 24px */
|
|
118
|
+
--typo-card-title-line-height: 2rem; /* 32px */
|
|
119
|
+
--typo-card-title-weight: 600;
|
|
120
|
+
|
|
121
|
+
/* Body text */
|
|
122
|
+
--typo-body-size: 1rem; /* 16px */
|
|
123
|
+
--typo-body-line-height: 1.5rem; /* 24px */
|
|
124
|
+
--typo-body-weight: 400;
|
|
125
|
+
|
|
126
|
+
/* Description text */
|
|
127
|
+
--typo-description-size: 0.875rem; /* 14px */
|
|
128
|
+
--typo-description-line-height: 1.25rem; /* 20px */
|
|
129
|
+
--typo-description-weight: 400;
|
|
130
|
+
|
|
131
|
+
/* Label text */
|
|
132
|
+
--typo-label-size: 0.875rem; /* 14px */
|
|
133
|
+
--typo-label-line-height: 1.25rem; /* 20px */
|
|
134
|
+
--typo-label-weight: 500;
|
|
135
|
+
|
|
136
|
+
/* Caption text */
|
|
137
|
+
--typo-caption-size: 0.75rem; /* 12px */
|
|
138
|
+
--typo-caption-line-height: 1rem; /* 16px */
|
|
139
|
+
--typo-caption-weight: 400;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Typography component classes */
|
|
143
|
+
.typo-page-title {
|
|
144
|
+
font-size: var(--typo-page-title-size);
|
|
145
|
+
line-height: var(--typo-page-title-line-height);
|
|
146
|
+
font-weight: var(--typo-page-title-weight);
|
|
147
|
+
color: var(--text-primary);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.typo-section-title {
|
|
151
|
+
font-size: var(--typo-section-title-size);
|
|
152
|
+
line-height: var(--typo-section-title-line-height);
|
|
153
|
+
font-weight: var(--typo-section-title-weight);
|
|
154
|
+
color: var(--text-primary);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.typo-card-title {
|
|
158
|
+
font-size: var(--typo-card-title-size);
|
|
159
|
+
line-height: var(--typo-card-title-line-height);
|
|
160
|
+
font-weight: var(--typo-card-title-weight);
|
|
161
|
+
color: var(--text-primary);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.typo-body {
|
|
165
|
+
font-size: var(--typo-body-size);
|
|
166
|
+
line-height: var(--typo-body-line-height);
|
|
167
|
+
font-weight: var(--typo-body-weight);
|
|
168
|
+
color: var(--text-primary);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.typo-description {
|
|
172
|
+
font-size: var(--typo-description-size);
|
|
173
|
+
line-height: var(--typo-description-line-height);
|
|
174
|
+
font-weight: var(--typo-description-weight);
|
|
175
|
+
color: var(--text-secondary);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.typo-label {
|
|
179
|
+
font-size: var(--typo-label-size);
|
|
180
|
+
line-height: var(--typo-label-line-height);
|
|
181
|
+
font-weight: var(--typo-label-weight);
|
|
182
|
+
color: var(--text-secondary);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.typo-caption {
|
|
186
|
+
font-size: var(--typo-caption-size);
|
|
187
|
+
line-height: var(--typo-caption-line-height);
|
|
188
|
+
font-weight: var(--typo-caption-weight);
|
|
189
|
+
color: var(--text-tertiary);
|
|
190
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* Settings-related styles */
|
|
2
|
+
|
|
3
|
+
/* Compact Mode - reduce spacing */
|
|
4
|
+
html.compact-mode {
|
|
5
|
+
/* Override Ant Design token values */
|
|
6
|
+
--ant-padding: 12px;
|
|
7
|
+
--ant-padding-lg: 16px;
|
|
8
|
+
--ant-padding-sm: 8px;
|
|
9
|
+
--ant-margin: 12px;
|
|
10
|
+
--ant-margin-lg: 16px;
|
|
11
|
+
--ant-margin-sm: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Font Size - Small */
|
|
15
|
+
html.font-small {
|
|
16
|
+
font-size: 13px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
html.font-small .ant-typography {
|
|
20
|
+
font-size: 13px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
html.font-small h1, html.font-small .ant-typography h1 {
|
|
24
|
+
font-size: 32px !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
html.font-small h2, html.font-small .ant-typography h2 {
|
|
28
|
+
font-size: 26px !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
html.font-small h3, html.font-small .ant-typography h3 {
|
|
32
|
+
font-size: 20px !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
html.font-small h4, html.font-small .ant-typography h4 {
|
|
36
|
+
font-size: 17px !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
html.font-small h5, html.font-small .ant-typography h5 {
|
|
40
|
+
font-size: 14px !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Font Size - Medium (default) */
|
|
44
|
+
html.font-medium {
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Font Size - Large */
|
|
49
|
+
html.font-large {
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
html.font-large .ant-typography {
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
html.font-large h1, html.font-large .ant-typography h1 {
|
|
58
|
+
font-size: 42px !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
html.font-large h2, html.font-large .ant-typography h2 {
|
|
62
|
+
font-size: 34px !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
html.font-large h3, html.font-large .ant-typography h3 {
|
|
66
|
+
font-size: 28px !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
html.font-large h4, html.font-large .ant-typography h4 {
|
|
70
|
+
font-size: 22px !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
html.font-large h5, html.font-large .ant-typography h5 {
|
|
74
|
+
font-size: 18px !important;
|
|
75
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* KB Labs UI Color Kit */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* Backgrounds */
|
|
5
|
+
--bg-primary: #F8F8F8;
|
|
6
|
+
--bg-secondary: #FFFFFF;
|
|
7
|
+
--bg-tertiary: #F3F4F6;
|
|
8
|
+
--bg-hover: #F3F4F6; /* Same as tertiary for hover state */
|
|
9
|
+
--bg-sidebar: #FFFFFF;
|
|
10
|
+
|
|
11
|
+
/* Text */
|
|
12
|
+
--text-primary: #111827;
|
|
13
|
+
--text-secondary: #6B7280;
|
|
14
|
+
--text-tertiary: #6B7280;
|
|
15
|
+
--text-inverse: #FFFFFF;
|
|
16
|
+
|
|
17
|
+
/* Borders */
|
|
18
|
+
--border-primary: #E5E7EB;
|
|
19
|
+
--border-secondary: #D4D4D4;
|
|
20
|
+
|
|
21
|
+
/* Typography */
|
|
22
|
+
--font-body: 'Inter', 'Segoe UI', sans-serif;
|
|
23
|
+
--font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
|
|
24
|
+
|
|
25
|
+
/* Interactive */
|
|
26
|
+
--link: #0c66ff;
|
|
27
|
+
--link-hover: #0050cc;
|
|
28
|
+
--accent-subtle: #dbeafe;
|
|
29
|
+
|
|
30
|
+
/* Status */
|
|
31
|
+
--success: #16A34A;
|
|
32
|
+
--warning: #F59E0B;
|
|
33
|
+
--error: #DC2626;
|
|
34
|
+
--info: #0EA5E9;
|
|
35
|
+
|
|
36
|
+
/* States */
|
|
37
|
+
--disabled: #9CA3AF;
|
|
38
|
+
|
|
39
|
+
/* Effects */
|
|
40
|
+
--shadow: rgba(0, 0, 0, 0.05);
|
|
41
|
+
--shadow-hover: rgba(0, 0, 0, 0.1); /* Darker on hover */
|
|
42
|
+
--shadow-elevated: rgba(0, 0, 0, 0.08); /* Elevated cards */
|
|
43
|
+
|
|
44
|
+
/* Z-index scale */
|
|
45
|
+
--z-base: 0;
|
|
46
|
+
--z-dropdown: 100;
|
|
47
|
+
--z-sticky: 200;
|
|
48
|
+
--z-header: 300;
|
|
49
|
+
--z-sidebar: 400;
|
|
50
|
+
--z-overlay: 500; /* Modal backdrop */
|
|
51
|
+
--z-modal: 600; /* Modal, drawer */
|
|
52
|
+
--z-popover: 700; /* Tooltip, popover, select dropdown */
|
|
53
|
+
--z-toast: 800; /* Notifications */
|
|
54
|
+
--z-top: 900; /* Command palette, spotlight */
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.dark {
|
|
58
|
+
/* Backgrounds */
|
|
59
|
+
--bg-primary: #0D0D0F;
|
|
60
|
+
--bg-secondary: #1A1A1C;
|
|
61
|
+
--bg-tertiary: #27272A;
|
|
62
|
+
--bg-hover: #2E2E32; /* Lighter hover state for tables/cards */
|
|
63
|
+
--bg-sidebar: #1A1A1C;
|
|
64
|
+
|
|
65
|
+
/* Text */
|
|
66
|
+
--text-primary: #F5F5F7;
|
|
67
|
+
--text-secondary: #A1A1AA;
|
|
68
|
+
--text-tertiary: #A1A1AA;
|
|
69
|
+
--text-inverse: #1A1A1C;
|
|
70
|
+
|
|
71
|
+
/* Borders */
|
|
72
|
+
--border-primary: #3F3F46;
|
|
73
|
+
--border-secondary: #52525B;
|
|
74
|
+
|
|
75
|
+
/* Interactive */
|
|
76
|
+
--link: #60a5fa;
|
|
77
|
+
--link-hover: #93c5fd;
|
|
78
|
+
--accent-subtle: rgba(12, 102, 255, 0.15);
|
|
79
|
+
|
|
80
|
+
/* Status */
|
|
81
|
+
--success: #22C55E;
|
|
82
|
+
--warning: #EAB308;
|
|
83
|
+
--error: #EF4444;
|
|
84
|
+
--info: #38BDF8;
|
|
85
|
+
|
|
86
|
+
/* States */
|
|
87
|
+
--disabled: #52525B;
|
|
88
|
+
|
|
89
|
+
/* Effects */
|
|
90
|
+
--shadow: rgba(0, 0, 0, 0.6); /* Darker base shadow */
|
|
91
|
+
--shadow-hover: rgba(0, 0, 0, 0.8); /* Even darker on hover */
|
|
92
|
+
--shadow-elevated: rgba(255, 255, 255, 0.05); /* Subtle white glow for elevation */
|
|
93
|
+
}
|
|
94
|
+
|