2023-05-11 12:08:46 +00:00
|
|
|
// nivo
|
2023-05-11 11:41:04 +00:00
|
|
|
import { Theme } from "@nivo/core";
|
|
|
|
|
|
|
|
export const CHARTS_THEME: Theme = {
|
2023-05-11 12:08:46 +00:00
|
|
|
background: "rgb(var(--color-bg-surface-1))",
|
|
|
|
textColor: "rgb(var(--color-text-secondary))",
|
2023-05-11 11:41:04 +00:00
|
|
|
axis: {
|
|
|
|
domain: {
|
|
|
|
line: {
|
2023-05-11 12:08:46 +00:00
|
|
|
stroke: "rgb(var(--color-border))",
|
2023-05-11 11:41:04 +00:00
|
|
|
strokeWidth: 0.5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tooltip: {
|
|
|
|
container: {
|
|
|
|
background: "rgb(var(--color-bg-surface-2))",
|
|
|
|
color: "rgb(var(--color-text-secondary))",
|
|
|
|
fontSize: "0.8rem",
|
2023-05-11 12:08:46 +00:00
|
|
|
border: "1px solid rgb(var(--color-border))",
|
2023-05-11 11:41:04 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
grid: {
|
|
|
|
line: {
|
|
|
|
stroke: "rgb(var(--color-border))",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DEFAULT_MARGIN = {
|
|
|
|
top: 50,
|
|
|
|
right: 50,
|
|
|
|
bottom: 50,
|
|
|
|
left: 50,
|
|
|
|
};
|