0.0.5 • Published 2 years ago

radix-chakra-colors v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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>
    </>
  );
};
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago