Git Product home page Git Product logo

color-palette-shade-generator's Introduction

Color Palette Shade Generator

App delivered via Firebase Hosting (static): color-palette-shade-generator.web.app

Creates multiple shades of colors for websites based on color theory schemes. Creates CSS and/or Tailwind variables with copy buttons that you can paste directly into your CSS or tailwind config file.

Features

  1. Variable outputs are easily copied via provided buttons
    • CSS variables: --color-blue-500: hsla(240, 80%, 50%, 1)
    • Tailwind/WindiCSS config (tailwind.config.js) variables with optional reference the CSS variables
  2. Customizable options:
    • Variable name, default: name based on hue --color-varname
    • Variable name prefix, default: --color-varname
    • %L shift per step, default: 7.5%; dark/light: 1/3%L
    • %S shift per step, default: 0%
    • Number of steps, default: 10
  3. HSLA based, produces your chosen color notations for web:
    • HSLA: Hue Saturation Lightness Alpha - hsla(240, 75%, 50%, 0.9)
    • RGBA: Red Green Blue Alpha - rgba(32, 32, 223, 0.9)
    • #HexA: Hexadecimal with Alpha - #2020dfe6
    • HSL: Hue Saturation Lightness - hsl(240, 75%, 50%)
    • RGB: Red Green Blue - rgb(32, 32, 223)
    • #Hex: Hexadecimal - #2020df

Schemes

  • Monochromatic (1 color): primary = φ
  • Dark/Light (3 shades): primary = φ, dark = φ-15%L, light = φ+15%L
  • Complementary (2 colors): primary = φ, complement = φ+180°
  • Analogous (3 colors): primary = φ, analogous1 = φ-30°, analogous2 = φ+30°
  • Split Complementary (3 colors): primary = φ, split1 = φ-150°, split2 = φ+150°
  • Triadic (3 colors): primary = φ, triadic1 = φ-120°, triadic2 = φ+120°
  • Tetradic (4 colors): primary = φ, tetradic1 = φ+60°, tetradic2 = φ+180°, tetradic3 = φ+240°

Learn more about color theory.

Why HSLA?

I believe HSL is the easiest for a human to understand. Thanks to Kevin Powell for explaining HSL so well: Are you using the WRONG color model in your CSS?

Why Svelte?

Svelte made developing this very fun. I've barely scratched at the surface of React and Vue apps but enough to know that Svelte provides more speed, smaller payload and a quicker app. Development spins up in under 10 seconds on my 4+ year old i5 (where React would take almost 10x the time, Vue is somewhere in between but with additional payload).

Made By TAOCODE

I thought it'd be handy to have a tool to create these custom color variables but didn't love the various shade generators that I found in the wild. I also wanted to learn Svelte and SvelteKit.

See more of my works at taocode.com.

color-palette-shade-generator's People

Contributors

taocode avatar

Stargazers

 avatar

Watchers

 avatar  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.