Skip to content

Commit

Permalink
Fix dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd authored and nfcampos committed Oct 17, 2023
1 parent fd8cfc3 commit d2b9570
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions langserve/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dayjs": "^1.11.10",
"fast-json-patch": "^3.1.1",
"json-schema-defaults": "^0.4.0",
"lz-string": "^1.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
8 changes: 7 additions & 1 deletion langserve/playground/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
@tailwind utilities;

@layer base {
input,
textarea,
select {
background: transparent;
}

/* clash between MUI and Tailwind */
input:focus,
textarea:focus,
Expand All @@ -12,7 +18,7 @@
}

body {
@apply bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh];
@apply bg-gradient-to-b from-[#F9FAFB] to-[#EFF8FF] min-h-[100dvh] dark:from-[#0C111C] dark:to-[#0C111C];
}

#root {
Expand Down
4 changes: 2 additions & 2 deletions langserve/playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function App() {
const { startStream, stopStream, latest } = useStreamLog();

return schemas.config && schemas.input ? (
<div className="flex flex-col gap-4">
<div className="flex flex-col gap-4 text-ls-black">
<h1 className="text-2xl font-medium">Playground</h1>
<div className="p-4 border border-divider-700 flex flex-col gap-3 rounded-xl bg-background">
<h2 className="text-xl font-medium">Configure</h2>
Expand Down Expand Up @@ -197,7 +197,7 @@ function App() {
}
>
{stopStream ? (
<span>Stop</span>
<span className="text-white">Stop</span>
) : (
<img src={SendIcon} alt="Start" className="text-white" />
)}
Expand Down
5 changes: 5 additions & 0 deletions langserve/playground/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,11 @@ lru-cache@^6.0.0:
dependencies:
yallist "^4.0.0"

lz-string@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941"
integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==

merge2@^1.3.0, merge2@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
Expand Down

0 comments on commit d2b9570

Please sign in to comment.