mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 05:11:08 +08:00
16 lines
337 B
JavaScript
16 lines
337 B
JavaScript
import colorPairsPicker from 'color-pairs-picker';
|
|
import chroma from 'chroma-js';
|
|
|
|
import { config } from 'config';
|
|
|
|
export const colors = colorPairsPicker(config.baseColor, {
|
|
contrast: 5.5,
|
|
});
|
|
|
|
const darker = chroma(config.baseColor)
|
|
.darken(10)
|
|
.hex();
|
|
export const activeColors = colorPairsPicker(darker, {
|
|
contrast: 7,
|
|
});
|