Code Monkey home page Code Monkey logo

demo-oklch-color-palette's Introduction

Demo for CSS Color Palettes

oklch() Color Function Level 4

Screenshot of the app

My personal start in order to try to simplify my workflow for creating color palettes by using the oklch() color function. Based on the Youtube GUI Challenge by Adam Argyleink (Youtube-Link) and recommendations for color palettes by Jordan Bowman (Youtube-Link). This demo contains some dummy areas like a navbar, a hero section and several cards which are influenced by the color choice represented by the hue-value. Use the dark/light-Button next to the Subscribe-Button in order to switch between the dark and light color mode. The implementation of the Dark Mode Switcher is based on the Envato Tuts+ published on Youtube and made by Adi Purdila (Youtube-Link), which uses localStorage for checking the preferences set by the user.

What is oklch()?

One of the new CSS color Level 4 functions is the oklch() function which uses the Oklch cylindrical coordinate model. It is specified by Oklab Lightness in percent, by an radius representing chroma and an hue angle. The opacity can be set additionally.

oklch(Lightness Chroma Hue / Opacity)

Create Your Color-Palettes

As recommended by Jordan Bowman, colors used in webprojects are distinguished in brand, accent and supporting colors.

  • Brand Colors: should be used for buttons, links, navigation and icons.
  • Accent Colors: recommended for headlines and design elements.
  • Supporting Colors: which should be used for feedbacks to an user like success or error messages.

Not mentioned, but very useful, are neutral colors like white and black and different shades of grey, which should be used as supporting colors to the design of an application.

Opacity was not taken into account in this project at this point.

Additional Sources

Icons downloaded as SVG from: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools

demo-oklch-color-palette's People

Contributors

dahatta avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.