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
36 changes: 1 addition & 35 deletions frontend/apps/inspector/src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../../packages/components/public/theme.css";
@import "../../../src/index.css";

@tailwind base;
@tailwind components;
Expand Down Expand Up @@ -42,37 +42,3 @@
}
}

:root {
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-color-text: theme("colors.white");
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-token-constant: theme("colors.violet.300");
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-token-string: theme("colors.violet.300");
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-token-comment: theme("colors.zinc.500");
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-token-keyword: theme("colors.sky.300");
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-token-parameter: theme("colors.pink.300");
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-token-function: theme("colors.violet.300");
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-token-string-expression: theme("colors.violet.300");
/* biome-ignore lint/correctness/noUnknownFunction: tailwind functions */
--shiki-token-punctuation: theme("colors.zinc.200");

--spacing: 0.25rem;

::-webkit-scrollbar {
@apply w-2.5 h-2.5;
}

::-webkit-scrollbar-track {
@apply bg-transparent;
}

::-webkit-scrollbar-thumb {
@apply rounded-full bg-border border-[1px] border-transparent border-solid bg-clip-padding;
}
}
42 changes: 41 additions & 1 deletion frontend/src/components/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,44 @@

.shiki .highlighted {
@apply bg-secondary/50;
}
}

/* Dark theme overrides for xyflow Controls. */
.react-flow__controls {
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: 6px;
box-shadow: none;
}

.react-flow__controls-button {
background: transparent;
border-bottom: 1px solid hsl(var(--border));
fill: hsl(var(--foreground));
}

.react-flow__controls-button:hover {
background: hsl(var(--accent));
}

.react-flow__controls-button:last-child {
border-bottom: none;
}

/* Dark theme overrides for xyflow MiniMap. */
.react-flow__minimap {
background: hsl(var(--card)) !important;
border: 1px solid hsl(var(--border));
border-radius: 6px;
}

/* 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));
}
2 changes: 1 addition & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "@/components/theme.css";
@import "../packages/components/public/theme.css";

@tailwind base;
@tailwind components;
Expand Down
Loading