Skip to content

Commit 703d9a8

Browse files
updated color palette
1 parent 389facf commit 703d9a8

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

app/app/globals.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@
2222
--color-input: hsl(240 5.9% 90%);
2323
--color-ring: hsl(346.8 77.2% 49.8%);
2424
--radius: 0.65rem;
25+
--color-menu: #eee;
2526
}
2627

2728
@layer base {
2829
.dark {
29-
--color-background: hsl(20 14.3% 4.1%);
30-
--color-foreground: hsl(0 0% 95%);
31-
--color-popover: hsl(0 0% 9%);
30+
--color-menu: #1b1b1f;
31+
--color-background: #16161a;
32+
--color-foreground: #94a1b2;
33+
--color-popover: #16161ad6;
3234
--color-popover-foreground: hsl(0 0% 95%);
3335
--color-card: hsl(24 9.8% 10%);
3436
--color-card-foreground: hsl(0 0% 95%);

app/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ export default function Home() {
106106
{selectedItem ? (
107107
<KeyDetailsContent selectedItem={selectedItem} view={view} />
108108
) : (
109-
<div className="flex flex-col items-center justify-center gap-2 h-screen opacity-70">
109+
<div className="flex flex-col items-center justify-center gap-2 h-screen opacity-50">
110110
<MousePointerClickIcon size={130} className="opacity-50" />
111-
<div>Select a key to view details</div>
111+
<div className="text-sm">Select a key to view details</div>
112112
</div>
113113
)}
114114
<Cluster

app/components/key/list.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export function KeyList({
6767
onClick={() => setSelectedItem(item)}
6868
className={cn(
6969
"p-2 rounded hover:bg-primary/30 cursor-pointer text-sm font-mono w-[280px] rounded-md",
70-
selectedItem?.key === item.key ? "bg-primary" : ""
70+
selectedItem?.key === item.key
71+
? "bg-primary text-white"
72+
: ""
7173
)}
7274
>
7375
<div className="flex items-center gap-2">
@@ -83,6 +85,7 @@ export function KeyList({
8385
<Button
8486
variant="secondary"
8587
className="w-full"
88+
size="lg"
8689
onClick={() => {
8790
const last = keys[keys.length - 1];
8891
if (last) {

app/components/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function Sidebar({
3636
};
3737
return (
3838
<>
39-
<div className="p-4 border-r border-border flex flex-col justify-between items-center">
39+
<div className="p-4 flex flex-col justify-between items-center bg-menu">
4040
<a href="">
4141
<Image src={TiKV.src} alt="Logo" width={32} height={32} />
4242
</a>

app/tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
colors: {
1010
background: "var(--background)",
1111
foreground: "var(--foreground)",
12+
menu: "var(--color-menu)",
1213
card: {
1314
DEFAULT: "var(--card)",
1415
foreground: "var(--card-foreground)",

0 commit comments

Comments
 (0)