Skip to content

Instantly share code, notes, and snippets.

@ffoodd
Last active August 29, 2015 14:19
Show Gist options
  • Save ffoodd/6de55f5471c980ce82b6 to your computer and use it in GitHub Desktop.
Save ffoodd/6de55f5471c980ce82b6 to your computer and use it in GitHub Desktop.
Couleurs et variables
/**
* Couleurs et variables
*/
:root {
--ma-teinte: 10;
}
body {
font-family: monospace;
}
h1 {color: hsla(var(--ma-teinte), 100%, 50%, 1);}
h2 {color: hsla(var(--ma-teinte), 80%, 50%, 1);}
h3 {color: hsla(var(--ma-teinte), 60%, 50%, 1);}
h4 {color: hsla(var(--ma-teinte), 40%, 50%, 1);}
h5 {color: hsla(var(--ma-teinte), 20%, 50%, 1);}
h6 {color: hsla(var(--ma-teinte), 0%, 50%, 1);}
<h1>The quick brown fox jumps over the lazy dog</h1>
<h2>The quick brown fox jumps over the lazy dog</h2>
<h3>The quick brown fox jumps over the lazy dog</h3>
<h4>The quick brown fox jumps over the lazy dog</h4>
<h5>The quick brown fox jumps over the lazy dog</h5>
<h6>The quick brown fox jumps over the lazy dog</h6>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment