Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

# Vite config bundling temp files
vite.config.ts.timestamp-*

# Amp orb portal state
.amp/
17 changes: 17 additions & 0 deletions frontend/.ladle/components.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions frontend/.ladle/config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
/** @type {import('@ladle/react').UserConfig} */
export default {
viteConfig: ".ladle/vite.config.ts",
addons: {
// The dashboard ships dark-only (`<html class="dark">`), so match that by
// default; the theme toggle switches to the light tokens.
theme: {
enabled: true,
defaultState: "dark",
},
},
};
51 changes: 7 additions & 44 deletions frontend/.ladle/ladle.css
Original file line number Diff line number Diff line change
@@ -1,50 +1,13 @@
@import "../src/components/theme.css";

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Force dark theme for all Ladle stories. */
:root {
--background: 20 14.3% 4.1%;
--foreground: 60 9.1% 97.8%;
--card: 0 9.09% 6.47%;
--card-foreground: 60 9.1% 97.8%;
--popover: 0 9.09% 6.47%;
--popover-foreground: 60 9.1% 97.8%;
--primary: 18.5 100% 50%;
--primary-foreground: 60 9.1% 97.8%;
--secondary: 12 6.5% 15.1%;
--secondary-foreground: 60 9.1% 97.8%;
--muted: 34 10% 10%;
--muted-foreground: 24 5.4% 63.9%;
--accent: 12 6.5% 15.1%;
--accent-foreground: 60 9.1% 97.8%;
--destructive: 0 72.2% 50.6%;
--destructive-foreground: 60 9.1% 97.8%;
--warning: 47.9 95.8% 53.1%;
--border: 12 6.5% 15.1%;
--input: 12 6.5% 15.1%;
--ring: 18.59deg 100% 50%;
--background-main: 0 7.14% 5.49%;
}

@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground min-h-screen;
}
}
/*
* Use the real app stylesheet so stories render with the same tokens as the
* dashboard. Light tokens live on `:root`, dark tokens on `:root.dark`; the
* Ladle `Provider` in `components.tsx` toggles the `dark` class from Ladle's
* theme addon.
*/
@import "../src/index.css";

/* Remove Ladle story container padding and make it fill the full viewport. */
.ladle-main {
padding: 0 !important;
height: 100vh;
}

/* Dark theme for xyflow edges. */
.react-flow__edge-path {
stroke: hsl(var(--muted-foreground));
}
Loading
Loading