:root {
/* Base color using HSL */
--hue: 207;
--saturation: 64%;
--light: 44%;
/* Base color in variable */
--primary-color: hsl(var(--hue), var(--saturation), var(--light));
/* Base color lighten using calc */
View country-name-to-iso.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isoCode = { | |
'Afghanistan': 'AF', | |
'Aland Islands': 'AX', | |
'Albania': 'AL', | |
'Algeria': 'DZ', | |
'American Samoa': 'AS', | |
'Andorra': 'AD', | |
'Angola': 'AO', | |
'Anguilla': 'AI', | |
'Antarctica': 'AQ', |
View CSS-color-var.md
View How to couple Sass and CSS Variables.md
How to couple Sass and CSS Var
If you use Sass extension, you can work with CSS variables.
First, let's create our css variable.
\:root
--MyColor: #5966D2