I've utilized the following css variables, within hex.blue.
--first, --second, --third, --fourth.
Whenever a user goes to the website a color is generated from one side, to the other side of a gradient. That gradient is split into a pieces, in this case I only show 4. Within those colors I add the values of those colors to the CSS variables, so they're easy to use everywhere within the page.
In the example above, there are four inline elements, called hex.
Using the :nth-of-type() selector, I'm passing in those CSS variables. I've added those colors in the CSS, that I've placed directly into the HTML, within the style tag.
Consider elements that are easy to understand where the colors are seperated from, and fun besides just a few squares that gradient downward. e.g.
Use the following css variables:
--first, --second, --third, --fourth
, to create additional examples, like the ones displayed here:To contribute your examples that will be added to hex.blue:
css
,enhancement
, andhtml
.css
file with your Github username as the name for the file, example:calvinmorett.css
An example of how the post should look:
Here's an example:
I've utilized the following css variables, within hex.blue.
--first, --second, --third, --fourth.
Whenever a user goes to the website a color is generated from one side, to the other side of a gradient. That gradient is split into a pieces, in this case I only show 4. Within those colors I add the values of those colors to the CSS variables, so they're easy to use everywhere within the page.
In the example above, there are four inline elements, called
hex
.Using the
:nth-of-type()
selector, I'm passing in those CSS variables. I've added those colors in the CSS, that I've placed directly into the HTML, within thestyle
tag.Consider elements that are easy to understand where the colors are seperated from, and fun besides just a few squares that gradient downward. e.g.