Skip to content

dom1n1k/oklch-picker

This branch is 304 commits behind evilmartians/oklch-picker:main.

Folders and files

NameName
Last commit message
Last commit date
Feb 22, 2023
Feb 22, 2023
Aug 9, 2022
Feb 20, 2023
Feb 18, 2023
May 5, 2022
May 8, 2022
Feb 19, 2022
May 4, 2022
Feb 22, 2022
Jun 30, 2022
Feb 19, 2022
Jan 24, 2023
Aug 19, 2022
Feb 22, 2023
May 18, 2022
Jan 23, 2023
Feb 19, 2023
Feb 15, 2023
Feb 15, 2023
May 31, 2022
May 31, 2022
Aug 9, 2022
May 8, 2022
Feb 20, 2023
Feb 20, 2023
Feb 19, 2022
Feb 19, 2022
Feb 22, 2023
May 5, 2022

Repository files navigation

OKLCH & LCH Color Picker

Color picker and converter for OKLCH and LCH color space.

OKLCH is a new way to encode colors (like hex, RGBA, or HSL):

  • OKLCH has native browser support.
  • It can encode more colors for modern screens (P3, Rec. 2020, and beyond).
  • Unlike HSL, OKLCH always has predictable contrast after color transformation.
  • In contrast with LCH and Lab, no hue shift on chroma changes.
  • Provides great accessibility on palette generation.

Additional links about Oklab and OKLCH:

Development

To run a local copy for development:

  1. Install correct versions of Node.js and pnpm. There are two ways:

    1. With asdf version manager:
      1. Install asdf and asdf plugins for Node.js and pnpm
      2. Run asdf install
    2. Manually (check needed versions in .tool-versions)
  2. Install dependencies:

    pnpm install
  3. Run local server:

    pnpm start

We recommend to install Prettier and EditorConfig plugins to your text editor.

About

Color Picker for LCH

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 65.1%
  • CSS 24.2%
  • Pug 9.1%
  • Other 1.6%