Skip to content

Commit

Permalink
fix(Variants): fix colors on dark theme (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
N1MBER authored Nov 15, 2022
1 parent 4befc1c commit e1aaad8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Histogram/__stand__/Histogram.variants.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useNumber, useSelect } from '@consta/stand';
import { useThemeVars } from '@consta/uikit/useThemeVars';
import React from 'react';

import { getLegend } from '##/utils/legend';
Expand All @@ -12,10 +13,15 @@ const Variants = () => {
const colors = ['#22C38E', '#56B9F2', '#F38B00'];
const data = stackedData;

const vars = useThemeVars();

const options: HistogramProps = {
data,
binField: 'value',
stackField,
columnStyle: {
stroke: vars.color.primary['--color-bg-default'],
},
binWidth,
color: colors,
meta: {
Expand Down
8 changes: 8 additions & 0 deletions src/components/Pie/__stand__/Pie.variants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const Variants = () => {
width: '100%',
height: '100%',
}}
pieStyle={{
stroke: vars.color.primary['--color-bg-default'],
}}
data={data}
angleField="value"
colorField="type"
Expand All @@ -42,6 +45,11 @@ const Variants = () => {
color: vars.color.primary['--color-typo-primary'],
},
},
content: {
style: {
color: vars.color.primary['--color-typo-primary'],
},
},
}}
innerRadius={innerRadius}
label={{
Expand Down

0 comments on commit e1aaad8

Please sign in to comment.