dark mode improvements

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-02 11:37:11 +02:00
parent 715867678a
commit 1a0d9d9e9d
4 changed files with 9 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ export function ReportAreaChart({
strokeDasharray="3 3"
horizontal={true}
vertical={false}
className="stroke-slate-300"
/>
</AreaChart>
)}

View File

@@ -47,7 +47,11 @@ export function ReportHistogramChart({
<ResponsiveContainer>
{({ width, height }) => (
<BarChart width={width} height={height} data={rechartData}>
<CartesianGrid strokeDasharray="3 3" vertical={false} />
<CartesianGrid
strokeDasharray="3 3"
vertical={false}
className="stroke-slate-300"
/>
<Tooltip content={<ReportChartTooltip />} cursor={<BarHover />} />
<XAxis
fontSize={12}

View File

@@ -54,6 +54,7 @@ export function ReportLineChart({
strokeDasharray="3 3"
horizontal={true}
vertical={false}
className="stroke-slate-300"
/>
{references.map((ref) => (
<ReferenceLine
@@ -93,6 +94,7 @@ export function ReportLineChart({
return (
<React.Fragment key={serie.name}>
<Line
dot={false}
type={lineType}
key={serie.name}
name={serie.name}

View File

@@ -75,7 +75,7 @@ const TableHead = React.forwardRef<
<th
ref={ref}
className={cn(
'h-10 border-b border-border bg-slate-50 px-4 text-left align-middle text-sm font-medium text-muted-foreground text-slate-500 shadow-[0_0_0_0.5px] shadow-border [&:has([role=checkbox])]:pr-0',
'h-10 border-b border-border bg-slate-100 px-4 text-left align-middle text-sm font-medium text-muted-foreground shadow-[0_0_0_0.5px] shadow-border [&:has([role=checkbox])]:pr-0',
className
)}
{...props}