0.4.0 • Published 5 years ago

use-color-system v0.4.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Website | CodeSandbox

yarn add use-color-system

import { useColorSystem } from 'use-color-system'

const colors = useColorSystem({
  hueOffset: 28, // pretty random number 0-30
  invertedLightness: false, // enable for automatic Dark Mode
  highContrastMode: false // enable for accessibility
});
styledSystemTheme.colors = colors;
<Box bg="gray.9" color="gray.0">
  Hello
  <Text color="red.5">World</Text>
</Box>