feat: nivo graphs

This commit is contained in:
TrèsAbhi committed 2024-10-22 15:08:23 -05:00
1 parent f2da3994e4
commit 5e6f0e5d18
13 files changed
+157 -364

No files matched your search

+36 -7
View File
@@ -1,10 +1,39 @@
import type { Theme } from '@nivo/core';
import { Var } from '../radix/var';
export const nivoTheme = {
theme: {
text: { fill: 'var(--gray-11)' },
grid: { line: { stroke: 'var(--gray-3)' } },
} satisfies Theme,
borderRadius: 2,
innerPadding: 1,
};
background: Var('color-background'),
text: {
fill: Var('gray-contrast'),
fontFamily: 'inherit',
},
axis: {
ticks: {
text: {
fill: Var('gray-indicator'),
},
line: {
stroke: Var('gray-indicator'),
},
},
},
grid: {
line: {
stroke: Var('gray-indicator'),
},
},
tooltip: {
container: {
background: Var('color-overlay'),
backdropFilter: 'blur(4rem)',
WebkitBackdropFilter: 'blur(4rem)',
color: Var('gray-contrast'),
borderRadius: Var('radius-2'),
},
},
labels: {
text: {
fill: Var('gray-1'),
},
},
} satisfies Theme;