Skip to content

Instantly share code, notes, and snippets.

@danielguillan
Created August 2, 2013 08:32
Show Gist options
  • Save danielguillan/6138348 to your computer and use it in GitHub Desktop.
Save danielguillan/6138348 to your computer and use it in GitHub Desktop.
Sass - Get Random Color
module Sass::Script::Functions
def getRandomColor()
Sass::Script::String.new("#%06x" % (rand * 0xffffff))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment