Skip to content

Instantly share code, notes, and snippets.

@samrdev
Forked from bastianallgeier/hsl.php
Created January 15, 2012 21:43
Show Gist options
  • Save samrdev/1617575 to your computer and use it in GitHub Desktop.
Save samrdev/1617575 to your computer and use it in GitHub Desktop.
<?php $hsl = rand(0, 240) . ',' . rand(50, 80) . '%,60%'; ?>
<style type="text/css">
a {
color: hsl(<?php echo $hsl ?>);
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment