diff --git a/src/components/Sections/Defi/SelectCoinDialog.tsx b/src/components/Sections/Defi/SelectCoinDialog.tsx
index b8abe35..43bc853 100644
--- a/src/components/Sections/Defi/SelectCoinDialog.tsx
+++ b/src/components/Sections/Defi/SelectCoinDialog.tsx
@@ -2,6 +2,7 @@ import React, { type Dispatch, type SetStateAction } from 'react';
import { Dialog, DialogContent } from '../../SimularInvestment/ui/dialog';
import ChartLineUp from '../../../assets/ChartLineUp';
+import { cn } from '../../../lib/utils';
import type { BestCoin } from '../../../model/business';
import { formatPercentage } from '../../../utils/formats';
import { MAPPING_RETURNS } from '../../../utils/returnsMapping';
@@ -47,6 +48,7 @@ const ContentDialog = ({
options: BestCoin[];
onClick: (x: BestCoin) => void;
}) => {
+ const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
return (
@@ -54,7 +56,10 @@ const ContentDialog = ({
{options
.sort((a, b) => b.apy - a.apy)
diff --git a/src/components/SimularInvestment/globals.css b/src/components/SimularInvestment/globals.css
index 4dd163c..9599cb4 100644
--- a/src/components/SimularInvestment/globals.css
+++ b/src/components/SimularInvestment/globals.css
@@ -78,7 +78,7 @@ input[type='number'] {
-moz-appearance: textfield;
appearance: textfield;
}
-.pocketShadow {
+.pocketShadowDark {
background:
linear-gradient(rgba(17, 24, 39, 1) 1%, rgba(255, 255, 255, 0)),
linear-gradient(rgba(255, 255, 255, 0), rgba(17, 24, 39, 1) 99%) 0 100%,
@@ -101,3 +101,27 @@ input[type='number'] {
100% 10px;
background-attachment: local, local, scroll, scroll;
}
+
+.pocketShadowLight {
+ background:
+ linear-gradient(rgba(255, 255, 255, 1) 1%, rgba(255, 255, 255, 1)),
+ linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 99%) 0 100%,
+ radial-gradient(
+ farthest-side at 50% 0,
+ rgba(99, 102, 241, 1),
+ rgba(99, 102, 241, 0)
+ ),
+ radial-gradient(
+ farthest-side at 50% 100%,
+ rgba(99, 102, 241, 1),
+ rgba(99, 102, 241, 0)
+ )
+ 0 100%;
+ background-repeat: no-repeat;
+ background-size:
+ 100% 40px,
+ 100% 40px,
+ 100% 10px,
+ 100% 10px;
+ background-attachment: local, local, scroll, scroll;
+}