Tailwind OKLCH examples

View on github - View on npm

Button example

Button with changing colors example

Badge example

Button

Outlined badge example

Button

Named colors example

The following configuration was used to make use of the primary color:

/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    extend: {
      colors: {
        primary: `oklch(var(--color-primary-l) var(--color-primary-c) var(--color-primary-h) / <alpha-value>)`,
      },
    },
  },
};
@layer base {
  :root {
    --color-primary-l: .32;
    --color-primary-c: .1;
    --color-primary-h: 150;
  }
}

Automatic dark/light themes

Placeholder image
The placeholder title

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, nulla! Maiores et perferendis eaque, exercitationem praesentium nihil.

#lorem #ipsum