cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              :root {
	--hue: 0;
	--lightness: 50;
	--saturation: 80;
// I ensure the --color and --h, --s, --l custom properties are re-evaluated for every element by using the * selector.  This means their calculations will consider the local value or the --darken property. 
* {	
	--s: calc(var(--saturation) * calc(1 -  var(--desaturate, 0)));
	--h: calc(var(--hue) + var(--hue-rotate, 0));
	--l: calc(var(--lightness) * calc( 1 - var(--darken, 0)));
	--color: hsl(var(--h), calc(var(--s) * 1%), calc(var(--l) * 1%));

body {
	// Modify these:
	--darken: -0.25; // -1 : 1 negative=lighten positive=darken
	--desaturate: .2;  // -1 : 1 negative=saturate positive=desaturate
	--hue-rotate: 100;  // +/- hue
	// You can also directly modify --saturation, --hue and --lightness
  background: var(--color);
Loading ..................