Skip to content

Commit cac3f5b

Browse files
committed
feat: update component styles for improved UI consistency and responsiveness
1 parent 059bf42 commit cac3f5b

File tree

11 files changed

+51
-46
lines changed

11 files changed

+51
-46
lines changed

src/components/SmartLinkGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function SmartLinkGroup({
7676
{!isCurrentPage ? (
7777
<Button
7878
variant="link"
79-
className="h-auto gap-1 p-0 text-sm text-orange-200"
79+
className="h-auto gap-1 p-0 text-sm"
8080
asChild
8181
>
8282
<Link

src/components/Stepper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const Stepper: React.FC<StepperProps> = ({
4343
className={cn(
4444
'mx-auto flex size-8 items-center justify-center rounded-full',
4545
isActive ? 'bg-foreground text-background' : 'bg-muted',
46-
isCompleted && 'bg-primary text-background'
46+
isCompleted && 'bg-brand text-background'
4747
)}
4848
aria-label={`Step ${index + 1}`}
4949
>

src/components/icons/IexecAccountIcon.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,43 @@ const IexecAccountIcon = ({ size = 20, className = '' }) => (
1111
fillRule="evenodd"
1212
clipRule="evenodd"
1313
d="M15.4675 11.3324H15.3194C14.5782 11.4065 14.0593 11.9995 14.1334 12.7406C14.1334 12.8888 14.0593 13.1112 13.911 13.1853C13.8369 13.2594 13.7628 13.2594 13.6144 13.2594C13.5404 13.2594 13.4663 13.2594 13.392 13.1853C13.1696 13.0371 12.9474 12.9629 12.6509 12.9629H12.5027C11.7615 13.037 11.2426 13.63 11.3167 14.3711C11.3167 14.5936 11.2426 14.7417 11.0943 14.8158C11.0202 14.8899 10.9461 14.8899 10.7978 14.8899C10.7237 14.8899 10.6496 14.8899 10.5753 14.8158C10.3529 14.6676 10.1307 14.5934 9.90827 14.5934C9.1671 14.5934 8.5741 15.1864 8.5741 15.9275C8.5741 16.6687 9.1671 17.2617 9.90827 17.2617H10.0564C10.7235 17.1876 11.1682 16.6687 11.2424 16.0757V15.8533C11.2424 15.7051 11.3165 15.4827 11.4649 15.4086C11.5389 15.3345 11.613 15.3345 11.7614 15.3345C11.8354 15.3345 11.9095 15.3345 11.9838 15.4086C12.2062 15.5568 12.4284 15.631 12.7249 15.631H12.8731C13.5402 15.557 13.9848 15.038 14.0591 14.445V14.2226C14.0591 14.0002 14.1332 13.852 14.2815 13.7779C14.3556 13.7039 14.4297 13.7039 14.578 13.7039C14.6521 13.7039 14.7262 13.7039 14.8005 13.7779C15.0229 13.9261 15.2451 14.0004 15.5416 14.0004C16.2828 14.0004 16.8758 13.4074 16.8758 12.6662C16.8017 11.925 16.2087 11.332 15.4675 11.332"
14-
fill="#FCD15A"
14+
fill="currentColor"
1515
/>
1616
<path
1717
fillRule="evenodd"
1818
clipRule="evenodd"
1919
d="M15.4674 11.3324H15.3193C14.5781 11.4065 14.0592 11.9995 14.1333 12.7406C14.1333 12.8888 14.0592 13.1112 13.9108 13.1853C13.8367 13.2594 13.7627 13.2594 13.6143 13.2594C13.5402 13.2594 13.4662 13.2594 13.3919 13.1853C13.1695 13.0371 12.9472 12.9629 12.6507 12.9629H12.5026C11.7614 13.037 11.2425 13.63 11.3166 14.3711C11.3166 14.5936 11.2425 14.7417 11.0942 14.8158C11.0201 14.8899 10.946 14.8899 10.7976 14.8899C10.7236 14.8899 10.6495 14.8899 10.5752 14.8158C10.3528 14.6676 10.1306 14.5934 9.90814 14.5934C9.16698 14.5934 8.57397 15.1864 8.57397 15.9275C8.57397 16.6687 9.16698 17.2617 9.90814 17.2617H10.0563C10.7234 17.1876 11.168 16.6687 11.2423 16.0757V15.8533C11.2423 15.7051 11.3164 15.4827 11.4647 15.4086C11.5388 15.3345 11.6129 15.3345 11.7612 15.3345C11.8353 15.3345 11.9094 15.3345 11.9837 15.4086C12.2061 15.5568 12.4283 15.631 12.7248 15.631H12.873C13.5401 15.557 13.9847 15.038 14.059 14.445V14.2226C14.059 14.0002 14.1331 13.852 14.2814 13.7779C14.3555 13.7039 14.4296 13.7039 14.5779 13.7039C14.652 13.7039 14.7261 13.7039 14.8003 13.7779C15.0228 13.9261 15.245 14.0004 15.5415 14.0004C16.2827 14.0004 16.8757 13.4074 16.8757 12.6662C16.8016 11.925 16.2086 11.332 15.4674 11.332"
20-
fill="#FCD15A"
20+
fill="currentColor"
2121
/>
2222
<path
2323
fillRule="evenodd"
2424
clipRule="evenodd"
2525
d="M12.6508 9.62518H12.5027C11.7615 9.69926 11.2426 10.2923 11.3167 11.0334C11.3167 11.2559 11.2426 11.404 11.0943 11.4781C11.0202 11.5522 10.9461 11.5522 10.7978 11.5522C10.7237 11.5522 10.6496 11.5522 10.5753 11.4781C10.3529 11.3299 10.1307 11.2557 9.83417 11.2557H9.68601C9.01892 11.3298 8.5 11.9228 8.5 12.5898C8.5 13.331 9.093 13.924 9.83417 13.924H9.98233C10.6494 13.8499 11.0941 13.331 11.1683 12.738V12.5156C11.1683 12.2932 11.2424 12.145 11.3908 12.0709C11.4648 11.9968 11.5389 11.9968 11.6873 11.9968C11.7613 11.9968 11.8354 11.9968 11.9097 12.0709C12.1321 12.2191 12.3543 12.2933 12.6508 12.2933H12.799C13.4661 12.2193 13.985 11.6263 13.985 10.9592C13.985 10.218 13.392 9.625 12.6508 9.625"
26-
fill="#FCD15A"
26+
fill="currentColor"
2727
/>
2828
<path
2929
fillRule="evenodd"
3030
clipRule="evenodd"
3131
d="M12.6508 9.62518H12.5027C11.7615 9.69926 11.2426 10.2923 11.3167 11.0334C11.3167 11.2559 11.2426 11.404 11.0943 11.4781C11.0202 11.5522 10.9461 11.5522 10.7978 11.5522C10.7237 11.5522 10.6496 11.5522 10.5753 11.4781C10.3529 11.3299 10.1307 11.2557 9.83417 11.2557H9.68601C9.01892 11.3298 8.5 11.9228 8.5 12.5898C8.5 13.331 9.093 13.924 9.83417 13.924H9.98233C10.6494 13.8499 11.0941 13.331 11.1683 12.738V12.5156C11.1683 12.2932 11.2424 12.145 11.3908 12.0709C11.4648 11.9968 11.5389 11.9968 11.6873 11.9968C11.7613 11.9968 11.8354 11.9968 11.9097 12.0709C12.1321 12.2191 12.3543 12.2933 12.6508 12.2933H12.799C13.4661 12.2193 13.985 11.6263 13.985 10.9592C13.985 10.218 13.392 9.625 12.6508 9.625"
32-
fill="#FCD15A"
32+
fill="currentColor"
3333
/>
3434
<path
3535
fillRule="evenodd"
3636
clipRule="evenodd"
3737
d="M8.5 9.33417C8.5 10.0753 9.093 10.6683 9.83417 10.6683C10.5753 10.6683 11.1683 10.0753 11.1683 9.33417C11.1683 8.593 10.5753 8 9.83417 8C9.093 8 8.5 8.593 8.5 9.33417Z"
38-
fill="#FCD15A"
38+
fill="currentColor"
3939
/>
4040
<path
4141
fillRule="evenodd"
4242
clipRule="evenodd"
4343
d="M8.5 9.33417C8.5 10.0753 9.093 10.6683 9.83417 10.6683C10.5753 10.6683 11.1683 10.0753 11.1683 9.33417C11.1683 8.593 10.5753 8 9.83417 8C9.093 8 8.5 8.593 8.5 9.33417Z"
44-
fill="#FCD15A"
44+
fill="currentColor"
4545
/>
4646
<path
4747
fillRule="evenodd"
4848
clipRule="evenodd"
4949
d="M12.0031 4C7.33814 4 3.5 7.77913 3.5 12.4441C3.5 17.1091 7.33829 20.8882 12.0031 20.8882C13.125 20.8882 14.2471 20.652 15.31 20.2387C18.4396 18.9396 20.5064 15.869 20.5064 12.5031C20.5654 7.77913 16.7271 4 12.0031 4Z"
50-
stroke="#FCD15A"
50+
stroke="currentColor"
5151
strokeWidth="1.59441"
5252
strokeLinecap="round"
5353
stroke-linejoin="round"

src/components/icons/WalletIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ const WalletIcon = ({ size = 20, className = '' }) => (
99
>
1010
<path
1111
d="M18.9617 5.46094H5.03832C3.9126 5.46094 3 6.37354 3 7.49926V16.4993C3 17.625 3.9126 18.5376 5.03832 18.5376H18.9617C20.0874 18.5376 21 17.625 21 16.4993V7.49926C21 6.37354 20.0874 5.46094 18.9617 5.46094Z"
12-
stroke="#FCD15A"
12+
stroke="currentColor"
1313
strokeWidth="1.56"
1414
strokeLinecap="round"
1515
stroke-linejoin="round"
1616
/>
1717
<path
1818
d="M21 9.96019C21 8.83447 20.0874 7.92188 18.9617 7.92188H5.03832C3.9126 7.92188 3 8.83447 3 9.96019"
19-
stroke="#FCD15A"
19+
stroke="currentColor"
2020
strokeWidth="1.56"
2121
strokeLinecap="round"
2222
stroke-linejoin="round"
2323
/>
2424
<path
2525
d="M21 12.5383C21 11.4126 20.0874 10.5 18.9617 10.5H15.4116C15.1471 10.5 14.8924 10.6001 14.6986 10.7802L12.713 12.6257C12.311 12.9992 11.689 12.9992 11.287 12.6257L9.30144 10.7802C9.10764 10.6001 8.853 10.5 8.5884 10.5H5.03832C3.9126 10.5 3 11.4126 3 12.5383"
26-
stroke="#FCD15A"
26+
stroke="currentColor"
2727
strokeWidth="1.56"
2828
strokeLinecap="round"
2929
stroke-linejoin="round"

src/components/navbar/AddressChip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function AddressChip({ address }: { address: string }) {
4040
<Tooltip open={showTooltip}>
4141
<TooltipTrigger asChild>
4242
<Button
43-
className="bg-popover hover:bg-muted text-primary duration-200"
43+
className="dark:bg-popover bg-brand-foreground hover:bg-muted text-primary dark:text-brand duration-300"
4444
variant="secondary"
4545
onClick={handleCopy}
4646
onMouseEnter={handleMouseEnter}

src/components/ui/button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const buttonVariants = cva(
88
{
99
variants: {
1010
variant: {
11-
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
11+
default: 'bg-brand text-brand-foreground hover:bg-brand/90',
1212
destructive:
1313
'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/30 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
1414
outline:
15-
'border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
15+
'border bg-background hover:bg-accent hover:text-accent-foreground',
1616
secondary:
1717
'bg-secondary text-secondary-foreground hover:bg-secondary/80',
1818
ghost:
@@ -21,7 +21,7 @@ const buttonVariants = cva(
2121
'gradient-outline':
2222
'from-grey-400 hover:before:bg-muted relative z-0 overflow-hidden bg-gradient-to-b to-transparent before:absolute before:inset-px before:-z-10 before:rounded-[29px] before:bg-secondary dark:before:bg-[#15151B] before:duration-200',
2323
'gradient-outline-active':
24-
'from-primary text-primary hover:before:bg-muted relative z-0 overflow-hidden bg-gradient-to-b to-primary before:absolute before:inset-px before:-z-10 before:rounded-[29px] before:bg-secondary dark:before:bg-[#322B1E] before:duration-200',
24+
'from-brand text-brand hover:before:bg-muted relative z-0 overflow-hidden bg-gradient-to-b to-brand before:absolute before:inset-px before:-z-10 before:rounded-[29px] before:bg-secondary dark:before:bg-[#322B1E] before:duration-200',
2525
},
2626
size: {
2727
xs: 'h-6 rounded-full px-2 text-xs has-[>svg]:px-1.5 gap-1',

src/components/ui/select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function SelectTrigger({
3434
data-slot="select-trigger"
3535
data-size={size}
3636
className={cn(
37-
"border-secondary data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
37+
"border-border data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive hover:bg-muted flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3838
className
3939
)}
4040
{...props}
@@ -58,7 +58,7 @@ function SelectContent({
5858
<SelectPrimitive.Content
5959
data-slot="select-content"
6060
className={cn(
61-
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-muted relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md',
61+
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-muted relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border',
6262
position === 'popper' &&
6363
'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
6464
className

src/components/ui/table.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Table({ className, ...props }: React.ComponentProps<'table'>) {
55
return (
66
<div
77
data-slot="table-container"
8-
className="border-secondary relative w-full overflow-x-auto rounded-3xl border"
8+
className="relative w-full overflow-x-auto rounded-3xl border"
99
>
1010
<table
1111
data-slot="table"
@@ -20,7 +20,7 @@ function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {
2020
return (
2121
<thead
2222
data-slot="table-header"
23-
className={cn('[&_tr]:border-muted [&_tr]:border-b', className)}
23+
className={cn('[&_tr]:border-b', className)}
2424
{...props}
2525
/>
2626
);
@@ -38,7 +38,7 @@ function TableBody({
3838
<tbody
3939
data-slot="table-body"
4040
className={cn(
41-
'[&_tr]:border-muted *:bg-background [&_tr]:hover:*:bg-tooltip dark:[&_tr]:hover:*:bg-muted [&_tr:last-child]:border-0',
41+
'*:bg-background [&_tr]:hover:*:bg-tooltip dark:[&_tr]:hover:*:bg-muted [&_tr:last-child]:border-0',
4242
zebra &&
4343
'dark:[&_tr]:odd:*:bg-tooltip [&_tr]:hover:*:bg-tooltip dark:[&_tr]:odd:hover:*:bg-muted [&_tr]:odd:*:bg-[#fafaff]',
4444
className

src/index.css

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@
149149
--color-tooltip: var(--tooltip);
150150
--color-tooltip-foreground: var(--tooltip-foreground);
151151

152+
--color-brand: var(--brand);
153+
--color-brand-foreground: var(--brand-foreground);
154+
152155
--color-primary: var(--primary);
153156
--color-primary-foreground: var(--primary-foreground);
154157

@@ -215,8 +218,11 @@
215218
--tooltip-foreground: var(--color-grey-800);
216219
--tooltip-border: var(--color-grey-700);
217220

218-
--primary: var(--color-yellow-300);
219-
--primary-foreground: var(--primary-foreground);
221+
--brand: var(--color-yellow-300);
222+
--brand-foreground: var(--primary-foreground);
223+
224+
--primary: #183ee9;
225+
--primary-foreground: #f4f7fc;
220226

221227
--secondary: oklch(0.97 0 0);
222228
--secondary-foreground: oklch(0.205 0 0);
@@ -230,8 +236,8 @@
230236
--accent: oklch(0.97 0 0);
231237
--accent-foreground: oklch(0.205 0 0);
232238

233-
--destructive: oklch(0.577 0.245 27.325);
234-
--border: oklch(0.922 0 0);
239+
--destructive: var(--color-red-400);
240+
--border: var(--color-grey-200);
235241
--input: oklch(0.922 0 0);
236242
--ring: oklch(0.708 0 0);
237243
}
@@ -240,36 +246,35 @@
240246
--background: var(--color-grey-900);
241247
--foreground: var(--color-grey-50);
242248

243-
--card: oklch(0.208 0.042 265.755);
244-
--card-foreground: oklch(0.984 0.003 247.858);
249+
--card: oklch(0.208 0.042 265.755);
250+
--card-foreground: oklch(0.984 0.003 247.858);
251+
252+
--popover: var(--color-grey-800);
253+
--popover-foreground: var(--color-grey-50);
245254

246-
--popover: var(--color-grey-800);
247-
// used in footer ! addressChip ! and Select
248-
--popover-foreground: var(--color-grey-50);
255+
--tooltip: var(--color-grey-800);
256+
--tooltip-foreground: var(--color-grey-50);
249257

250-
--tooltip: var(--color-grey-800);
251-
// used in Table ! and Tooltip
252-
--tooltip-foreground: var(--color-grey-50);
253-
// used in Tooltip
258+
--brand: var(--color-yellow-300);
259+
--brand-foreground: var(--color-grey-900);
254260

255-
--primary: var(--color-yellow-300);
256-
--primary-foreground: var(--color-grey-900);
261+
--primary: #c0cbff;
262+
--primary-foreground: #f4f7fc;
257263

258-
--secondary: var(--color-grey-600);
259-
--secondary-foreground: var(--color-grey-50);
264+
--secondary: var(--color-grey-600);
265+
--secondary-foreground: var(--color-grey-50);
260266

261267
--muted: var(--color-grey-700);
262-
--muted-foreground: var(--color-grey-300);
268+
--muted-foreground: var(--color-grey-200);
263269

264-
--intermediate: var(--color-grey-500); // used in scrollbar
265-
--intermediate-foreground: var(--color-grey-200); // used in footer
270+
--intermediate: var(--color-grey-500);
271+
--intermediate-foreground: var(--color-grey-200);
266272

267273
--accent: var(--color-grey-600);
268274
--accent-foreground: var(--color-white);
269275

270276
--destructive: var(--color-red-500);
271-
/* --border: var(--color-white); */
272-
--border: var(--color-grey-600);
277+
--border: var(--color-grey-600);
273278
--input: var(--color-grey-400);
274279
--ring: var(--color-primary);
275280
}

src/modules/datasets/SchemaSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function SchemaSearch({
4444
};
4545

4646
return (
47-
<div className="rounded-2xl border border-[#303038]">
47+
<div className="rounded-2xl border">
4848
<button
4949
className={cn('flex w-full items-center gap-2 px-10 py-6 duration-200')}
5050
onClick={() => setIsOpen(!isOpen)}

0 commit comments

Comments
 (0)