Fix Konsisten Warna Bg 2

This commit is contained in:
2026-03-25 17:02:18 +08:00
parent 366c08fbaa
commit 519a14adaa
4 changed files with 13 additions and 9 deletions

View File

@@ -15,11 +15,11 @@ const MetricCard = ({ title, value, trend }: MetricCardProps) => {
return ( return (
<Group justify="space-between" align="center"> <Group justify="space-between" align="center">
<Text size="sm" c={dark ? "dark.3" : "dimmed"} fw={500}> <Text size="sm" c={dark ? "white" : "dimmed"} fw={500}>
{title} {title}
</Text> </Text>
<Stack gap={0} align="flex-end"> <Stack gap={0} align="flex-end">
<Text size="lg" fw={700} c={dark ? "dark.0" : "#1e3a5f"}> <Text size="lg" fw={700} c={dark ? "white" : "#1e3a5f"}>
{value} {value}
</Text> </Text>
{trend && ( {trend && (

View File

@@ -209,7 +209,7 @@ export const SalesTable = ({ data, onDetailClick }: SalesTableProps) => {
</Text> </Text>
</Table.Td> </Table.Td>
<Table.Td> <Table.Td>
<Text size="sm" c={dark ? "dark.3" : "dimmed"}> <Text size="sm" c={dark ? "white" : "dimmed"}>
{formatCurrency(product.bulanLalu)} {formatCurrency(product.bulanLalu)}
</Text> </Text>
</Table.Td> </Table.Td>

View File

@@ -55,7 +55,11 @@ const KpiCard = ({
withBorder withBorder
shadow="sm" shadow="sm"
bg={dark ? "#1E293B" : "white"} bg={dark ? "#1E293B" : "white"}
style={{ borderColor: dark ? "#141D34" : "#e5e7eb" }} style={{
borderColor: dark ? "#334155" : "white",
boxShadow: "0 1px 3px 0 rgb(0 0 0 / 0.1)",
transition: "transform 0.15s ease, box-shadow 0.15s ease",
}}
> >
<Group justify="space-between" align="center"> <Group justify="space-between" align="center">
<Stack gap={2}> <Stack gap={2}>

View File

@@ -105,20 +105,20 @@ export const TopProducts = ({ products }: TopProductsProps) => {
{product.rank} {product.rank}
</Badge> </Badge>
<Stack gap={0}> <Stack gap={0}>
<Text fw={600} c={dark ? "dark.0" : "#1e3a5f"}> <Text fw={600} c={dark ? "white" : "#1e3a5f"}>
{product.name} {product.name}
</Text> </Text>
<Text size="sm" c={dark ? "dark.3" : "dimmed"}> <Text size="sm" c={dark ? "white" : "dimmed"}>
{product.umkmName} {product.umkmName}
</Text> </Text>
<Group gap="xs" mt={2}> <Group gap="xs" mt={2}>
<Text size="xs" c={dark ? "dark.4" : "gray.6"}> <Text size="xs" c={dark ? "white" : "gray.6"}>
Rp {formatCurrency(product.revenue)} Rp {formatCurrency(product.revenue)}
</Text> </Text>
<Text size="xs" c={dark ? "dark.4" : "gray.6"}> <Text size="xs" c={dark ? "white" : "gray.6"}>
</Text> </Text>
<Text size="xs" c={dark ? "dark.4" : "gray.6"}> <Text size="xs" c={dark ? "white" : "gray.6"}>
{formatNumber(product.quantitySold)} terjual {formatNumber(product.quantitySold)} terjual
</Text> </Text>
</Group> </Group>