mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: nivo graphs
This commit is contained in:
1 parent
f2da3994e4
commit
5e6f0e5d18
13 files changed
+157
-364
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user