radix-chakra-colors
v0.0.5
Published
A fork of `@radix-ui/colors` with chakra ui's theme support.
Downloads
4
Readme
Radix Chakra Colors
A fork of @radix-ui/colors
with chakra ui's theme support.
Installation
yarn add radix-chakra-colors
Documentation
For full documentation, visit radix-ui.com/docs/colors.
Usage with Chakra UI (addition)
import { extendTheme } from "@chakra-ui/react";
import { light, dark } from "radix-chakra-colors";
const theme = extendTheme({
colors: {
light,
dark,
},
});
export default theme;
Using specific colors
import { purple } from "radix-chakra-colors";
import { Text } from "@chakra-ui/react";
const MainComponent = () => {
return (
<>
{/*
Your component code */}
<Text color="purple.purple4">hello!</Text>
</>
);
};