Skip to content

Commit 8a8ba69

Browse files
committed
ui: update colors and design
1 parent 33c2be1 commit 8a8ba69

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

packages/www/components/GettingStarted/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ curl --request POST \
177177
<Heading>Get started with Livepeer Studio</Heading>
178178
</Box>
179179
<Grid className="grid-cols-1 gap-5 lg:grid-cols-2">
180-
<Box className="w-full h-full flex bg-card flex-col justify-between p-4 rounded-md">
180+
<Box className="w-full h-full flex bg-background border border-input flex-col justify-between p-4 rounded-lg">
181181
<Box>
182182
<TerminalIcon
183183
strokeWidth={1}
@@ -269,7 +269,7 @@ const Card = ({
269269
link: string;
270270
}) => {
271271
return (
272-
<Box className="w-full h-full flex bg-card flex-col justify-between p-4 rounded-md">
272+
<Box className="w-full h-full flex bg-background flex-col justify-between p-4 rounded-lg border border-input">
273273
<Box>
274274
{icon ? (
275275
<Box>{icon}</Box>

packages/www/components/Header/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ const Header = ({ breadcrumbs = [] }) => {
8080
height: 60,
8181
width: "100%",
8282
margin: "0 auto",
83-
maxWidth: "1520px",
8483
}}>
8584
<Breadcrumbs aria-label="breadcrumb">
8685
{breadcrumbs.map((breadcrumb, i) => {

packages/www/components/Sidebar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const Sidebar = ({ id }: { id: SidebarId }) => {
225225

226226
return (
227227
<>
228-
<Flex className="bg-background flex-col min-h-0 border-r border-input md:w-[270px] h-full p-2">
228+
<Flex className=" flex-col min-h-0 md:w-[270px] h-full p-2">
229229
<Flex className="p-1 mb-1 gap-2 flex items-center justify-between">
230230
<DropdownMenu>
231231
<DropdownMenuTrigger className="flex w-full items-center p-2 bg-transparent border-0 gap-2 hover:bg-accent data-[state=open]:bg-accent rounded-lg">

packages/www/components/ui/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Card = React.forwardRef<
99
<div
1010
ref={ref}
1111
className={cn(
12-
"rounded-lg border bg-card text-card-foreground shadow-sm",
12+
"rounded-lg border bg-red-500 text-card-foreground shadow-sm",
1313
className,
1414
)}
1515
{...props}

packages/www/css/tailwind.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:root {
77
--background: 0 0% 100%;
88
--foreground: 240 10% 3.9%;
9-
--card: 0 0% 97.5%;
9+
--card: 0 0% 99%;
1010
--card-foreground: 240 10% 3.9%;
1111
--popover: 0 0% 100%;
1212
--popover-foreground: 240 10% 3.9%;
@@ -33,7 +33,7 @@
3333
}
3434

3535
.dark-theme-green {
36-
--background: 240 10% 3.9%;
36+
--background: 0 0% 7%;
3737
--foreground: 0 0% 98%;
3838
--card: 240 3% 8.2%;
3939
--card-foreground: 0 0% 98%;
@@ -65,9 +65,11 @@
6565
* {
6666
@apply border-border;
6767
}
68+
6869
html {
6970
@apply scroll-smooth;
7071
}
72+
7173
body {
7274
@apply bg-background text-foreground;
7375
/* font-feature-settings: "rlig" 1, "calt" 1; */

packages/www/layouts/dashboard.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,23 @@ function DashboardLayout({
7777

7878
return (
7979
<>
80-
<Flex className="min-w-0 min-h-0 flex-1 w-full h-full max-h-full">
80+
<div className="flex min-w-0 min-h-0 flex-1 w-full h-full max-h-full">
8181
<Elements stripe={stripePromise}>
8282
{!isExport() && <NextSeo {...seo} />}
8383
<Sidebar id={id} />
84-
<Flex className="w-full min-w-0 flex-col max-h-full h-full min-h-0 overflow-auto">
84+
<div
85+
style={{
86+
margin: 25,
87+
}}
88+
className="border border-input flex w-full min-w-0 flex-col max-h-auto h-auto bg-card rounded-md min-h-0 overflow-auto">
8589
<Header breadcrumbs={breadcrumbs} />
86-
<Flex className="w-full flex-col mx-auto max-w-[1200px] h-full">
90+
<div className="w-full flex flex-col mx-auto max-w-[1200px] h-full">
8791
{children}
88-
</Flex>
89-
</Flex>
92+
</div>
93+
</div>
9094
<FileUpload />
9195
</Elements>
92-
</Flex>
96+
</div>
9397
</>
9498
);
9599
}

0 commit comments

Comments
 (0)