All Projects â†’ nitin42 â†’ React Color Tools

nitin42 / React Color Tools

A set of tools as React components for working with colors 🎨

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Color Tools

Html Sketchapp Cli
Quickly generate Sketch libraries from HTML documents and living style guides, powered by html-sketchapp
Stars: ✭ 631 (+625.29%)
Mutual labels:  design, design-systems, design-tools
Pagebot
Scripted page layout framework for Python.
Stars: ✭ 103 (+18.39%)
Mutual labels:  graphics, design, design-tools
Tachyons Verbose
Functional CSS for humans. Verbose edition.
Stars: ✭ 102 (+17.24%)
Mutual labels:  design, design-systems, design-tools
Prism
Gett's Design System code generator. Use Zeplin Styleguides as your R&D's Single Source of Truth.
Stars: ✭ 308 (+254.02%)
Mutual labels:  design, design-systems, design-tools
Tachyons
Functional css for humans
Stars: ✭ 11,057 (+12609.2%)
Mutual labels:  design, design-systems, design-tools
Awesome Design Tools
The best design tools and plugins for everything 👉
Stars: ✭ 23,754 (+27203.45%)
Mutual labels:  design, design-systems, design-tools
Uswds
The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
Stars: ✭ 5,912 (+6695.4%)
Mutual labels:  design, design-systems
Design System Components
🛠 Component code and tests for the Australian Government design system
Stars: ✭ 696 (+700%)
Mutual labels:  design, design-systems
Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+8090.8%)
Mutual labels:  design-systems, colors
Silex
Silex is a static website builder in the cloud.
Stars: ✭ 958 (+1001.15%)
Mutual labels:  design, design-tools
Awesome React Design Systems
A collection of awesome React-based design systems
Stars: ✭ 552 (+534.48%)
Mutual labels:  design, design-systems
Fonts
A collection of rad, open-source typefaces that everyone needs in their lives.
Stars: ✭ 24 (-72.41%)
Mutual labels:  graphics, design
Bjango Templates
Design templates for Android, iOS, macOS, Apple TV (tvOS), Apple Watch (watchOS), Windows, Windows Phone and web favicons.
Stars: ✭ 988 (+1035.63%)
Mutual labels:  design, design-tools
Allsketchs
Processing sketches, in which I have worked in the last years; images, videos, prototypes, experiments, tools, works, concepts... Everything is unfinished, some may not work, When I had no ideas, I would open one to see what it was...
Stars: ✭ 666 (+665.52%)
Mutual labels:  tools, design
Steroidesign
Themes based on the biggest StartUps (buttons, color palette, components, etc.) ready to use in your own projects.
Stars: ✭ 786 (+803.45%)
Mutual labels:  design, design-tools
Awesome Design Tools
Stars: ✭ 567 (+551.72%)
Mutual labels:  design, design-tools
Awesome React Framer X
A collection of awesome links to learn React, ES6 & Framer X
Stars: ✭ 880 (+911.49%)
Mutual labels:  design, design-tools
Materialdesigncolor
This project shows the color in material design
Stars: ✭ 55 (-36.78%)
Mutual labels:  design, colors
Ant Ux
🎸 A sitemap template for ux design
Stars: ✭ 1,077 (+1137.93%)
Mutual labels:  design, design-systems
Animockup
Create animated mockups in the browser 🔥
Stars: ✭ 1,152 (+1224.14%)
Mutual labels:  design, design-tools

react-color-tools

Build Status

A set of tools as React components for working with colors

Table of contents

Introduction

react-color-tools provides a set of tools as React components for working with colors. These tools can be used to manipulate a color for example controlling the intensity or purity of color, extracting swatches from an image, creating a gradienty defining color stop positions, choosing from variety of shades and tints or choosing a color scheme.

Motivation

react-color-tools is inspired from react-color. I was using react-color for my projects and felt the need for more features like image color extraction, generating shades and tints, creating gradients, and advance color tools for controlling the intensity and value of the color. So I decided to build react-color-tools with these features while keeping the API surface minimal and easy to use.

Features

  • Image color extraction

  • Generate shades and tints

  • Built-in color manipulation tools

  • Create gradient by controlling the color stop positions

  • API for color conversions

  • Color scheme picker

Use cases

  • Managing color schemes

  • Design systems & creating design tools

Theory

A little bit about different color terms and color harmonies that you will be using while working with react-color-tools.

Image taken from Canva

Color terms

  • Hue - A hue is name of particular color, or it is also one of the 12 colors on the color wheel.

  • Shade - A shade is a hue darkened with black.

  • Tint - A tint is a hue lightened with gray.

  • Saturation - Describes the intensity or purity of color.

  • Desaturation - Desaturation makes a color look more muted (hue approaches closer to gray).

Color schemes

  • Monochromatic - This color scheme contains tints, shades and tones of a color.

  • Analogous - This color scheme contains the hues that are located side by side on the color wheel.

  • Split Complementary - This scheme represent any color on the color wheel plus two colors that are it's complement.

  • Triadic - This color scheme has three colors that are evenly spaced on the color wheel.

  • Tetradic - Two pairs of colors which are opposite on the color wheel

Install

npm install react-color-tools

or if you use yarn,

yarn add react-color-tools

This package also depends on React so make sure you've it installed.

Usage

import React from 'react'
import { render } from 'react-dom'
import { BasicPicker } from 'react-color-tools'

class App extends React.Component {
  state = {
    color: 'hotpink'
  }

  render() {
    return (
      <div>
        <BasicPicker
          color={this.state.color}
          onChange={color => this.setState({ color })}
        />
        <h1 style={{ color: this.state.color }}>React Color Tools</h1>
      </div>
    )
  }
}

This will render -

Examples

Basic Picker

Edit jj7jpl5xvv

Gradient Picker

Edit wqln38j8wk

Scheme Picker

Edit 935ppx461o

or checkout the examples folder

Documentation

Check out the detailed documentation

TODO

  • [ ] Use a monorepo format to store different pickers and color tools

  • [ ] Tweak rollup config to reduce bundle size

  • [ ] Remove tooltip styles and use react-emotion to create tooltip component

  • [ ] Add bezier easing to gradient picker component

Contributing

If you'd like to contribute to this project, then follow the below instructions to setup the project locally on your machine.

git clone https://github.com/<your_username_here>/react-color-tools

cd react-color-tools

yarn

Linting

Run eslint using yarn lint

Building the source code

Run yarn build to build the source code. To use the watch mode, run the cmd yarn build:watch

Formatting with Prettier

Run yarn formatall to format the source code.

Storybook

Run yarn storybook to start the storybook development environment.

Test

Run yarn test to test the pickers.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].