Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review: alpha-aware toast bg + plain-object guards in theme check

Adam Eivy8a8a6096cc26
diff --git a/client/src/main.jsx b/client/src/main.jsx
index ff86369dc1..6ba777070c 100644
--- a/client/src/main.jsx
+++ b/client/src/main.jsx
@@ -28,7 +28,7 @@ ReactDOM.createRoot(document.getElementById('root')).render(
position="bottom-right"
toastOptions={{
style: {
- background: 'rgb(var(--port-card))',
+ background: 'rgb(var(--port-card) / var(--port-card-alpha, 1))',
color: 'rgb(var(--port-text))',
border: '1px solid rgb(var(--port-border) / var(--port-border-alpha, 1))',
borderRadius: 'var(--port-radius-lg)',
diff --git a/scripts/check-themes.js b/scripts/check-themes.js
index 6cb8eb481f..ec8c0c77a6 100644
--- a/scripts/check-themes.js
+++ b/scripts/check-themes.js
@@ -113,6 +113,15 @@ async function main() {
assert(theme.accent?.startsWith('#'), `${id} needs a hex accent`);
assert(Array.isArray(theme.swatches) && theme.swatches.length >= 4, `${id} needs at least four swatches`);
+ assert(
+ theme.colors && typeof theme.colors === 'object' && !Array.isArray(theme.colors),
+ `${id} colors must be a plain object`,
+ );
+ assert(
+ theme.tokens && typeof theme.tokens === 'object' && !Array.isArray(theme.tokens),
+ `${id} tokens must be a plain object`,
+ );
+
for (const varName of REQUIRED_COLOR_VARS) {
assertRgbChannels(theme.colors[varName], id, varName);
}