Skip to content

jianninetorres/colour-themes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colour-themes

My personal collection of dark and light themes.

usage

Install

In your target project, run

$ npm install git+https://github.com/jianninetorres/colour-themes.git

Import

In your global.css (or tailwind.css, styles.css, etc):

@import 'colour-themes/light/<theme-name>.css';
@import 'colour-themes/dark/<theme-name>.css';

Light themes target :root, :root[data-theme="light"].

Dark themes target :root[data-theme="dark"].

These themes do not set styles for code blocks. You will need to define the pre code span styles yourself within each :root[data-theme=""].

Both themes set the :root base themes:

:root {
    --theme-bg: var(--bg-hue) var(--bg-saturation) var(--bg-brightness);
    --theme-fg: var(--fg-hue) var(--fg-saturation) var(--fg-brightness);

    --theme-color-900: hsl(var(--theme-fg) / 1);
    --theme-color-850: hsl(var(--theme-fg) / 0.9675);
    --theme-color-800: hsl(var(--theme-fg) / 0.935);
    --theme-color-750: hsl(var(--theme-fg) / 0.88);
    --theme-color-700: hsl(var(--theme-fg) / 0.825);
    --theme-color-650: hsl(var(--theme-fg) / 0.785);
    --theme-color-600: hsl(var(--theme-fg) / 0.745);
    --theme-color-550: hsl(var(--theme-fg) / 0.675);
    --theme-color-500: hsl(var(--theme-fg) / 0.605);
    --theme-color-450: hsl(var(--theme-fg) / 0.5);
    --theme-color-400: hsl(var(--theme-fg) / 0.395);
    --theme-color-350: hsl(var(--theme-fg) / 0.29);
    --theme-color-300: hsl(var(--theme-fg) / 0.185);
    --theme-color-250: hsl(var(--theme-fg) / 0.15);
    --theme-color-200: hsl(var(--theme-fg) / 0.115);
    --theme-color-150: hsl(var(--theme-fg) / 0.08);
    --theme-color-100: hsl(var(--theme-fg) / 0.045);
    --theme-color-75: hsl(var(--theme-fg) / 0.03375);
    --theme-color-50: hsl(var(--theme-fg) / 0.0225);

    --code-inline-bg: var(--theme-color-150);
    --code-bg: var(--theme-special);
    --code-title-bg: var(--theme-color-200);
    --code-line-highlight: var(--theme-color-150);
    --code-line-diff-add: rgba(72, 191, 145, 0.15);
    --code-line-diff-remove: rgba(248, 85, 82, 0.15);
}

Production-ready

dark

  • Cosmic Coast
  • Jungle Nocturne
  • Morning Nautica
  • Twilight Reverie
  • Midnight Ember
  • Arctic Ember

light

  • Blushing Grove
  • Daydream Pop
  • Verdant Alloy
  • Pastel Tides
  • Arctic Ember

themes

dark

Cosmic Coast Cosmic coast colour theme

Jungle Nocturne Jungle Nocturne colour theme

Morning Nautica Morning Nautica colour theme

Twilight Reverie Twilight Reverie colour theme

Midnight Ember Midnight Ember colour theme

light

Blushing Grove Blushing Grove colour theme

Daydream Pop Twilight Reverie colour theme

Verdant Alloy Twilight Reverie colour theme

Pastel Tides Twilight Reverie colour theme

dark/light

Arctic Ember

About

My personal collection of dark and light themes.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages