Last active
August 29, 2015 14:22
-
-
Save KittyGiraudel/651b47182c7e985306b0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
@function o-proof-quote($value) { | |
@return '"' + $value + '"'; | |
} | |
@function o-json-encode-bool($boolean) { | |
@return $boolean; | |
} | |
@function o-json-encode-color($color) { | |
@return o-proof-quote($color); | |
} | |
@function o-json-encode-list($list) { | |
$str: ''; | |
@each $item in $list { | |
$str: $str + ', ' + o-json-encode($item); | |
} | |
@return '[' + str-slice($str, 3) + ']'; | |
} | |
@function o-json-encode-map($map) { | |
$str: ''; | |
@each $key, $value in $map { | |
$str: $str + ', ' + o-json-encode($key) + ': ' + o-json-encode($value); | |
} | |
@return '{' + str-slice($str, 3) + '}'; | |
} | |
@function o-json-encode-number($number) { | |
@return if(unitless($number), $number, o-proof-quote($number)); | |
} | |
@function o-json-encode-string($string) { | |
@return o-proof-quote($string); | |
} | |
@function o-json-encode--null($null) { | |
@return "null"; | |
} | |
@function o-json-encode($value) { | |
$type: type-of($value); | |
@if function_exists('o-json-encode-#{$type}') { | |
@return quote(call('o-json-encode-#{$type}', $value)); | |
} | |
@error "Unknown type for #{$value} (#{$type})."; | |
} | |
$o-colors-palette: ( | |
// Non-colour CSS values | |
transparent: transparent, | |
'transparent': transparent, | |
'inherit': inherit, | |
// Primary Palette | |
pink: #fff1e0, // v2 | |
'pink': #fff1e0, // v3 | |
black: #000000, // v2 | |
'black': #000000, // v3 | |
white: #ffffff, // v2 | |
'white': #ffffff, // v3 | |
blue: #2e6e9e, // v2 | |
'blue': #2e6e9e, // v3 | |
'dark-blue': #275e86, | |
'claret': #9e2f50, | |
orange: #d66d06, // v2 | |
'orange': #d66d06, // v3 | |
// Colours | |
'grey-tint1': #b0b0b0, | |
'grey-tint2': #999999, | |
'grey-tint3': #777777, | |
'grey-tint4': #505050, | |
'grey-tint5': #333333, | |
'pink-tint1': #f6e9d8, | |
'pink-tint2': #e9decf, | |
'pink-tint3': #cec6b9, | |
'pink-tint4': #a7a59b, | |
'pink-tint5': #74736c, | |
// Colours | |
red: #cc0000, // v2 | |
'red': #cc0000, // v3 | |
green: #458b00, // v2 | |
'green': #458b00, // v3 | |
// Highlight tints | |
'orange-tint1': #eda45e, | |
'brown-tint1': #94826b, | |
'yellow-tint1': #eed485, | |
'green-tint1': #a6a471, | |
'bluegreen-tint1': #819e9a, | |
'silver-tint1': #c1b8b4, | |
'purple-tint1': #936971, | |
'purple-tint2': #737e7e, | |
'red-tint1': #b1493f, | |
'red-tint2': #c36256, | |
'red-tint3': #d17c70, | |
'red-tint4': #df9c92, | |
'red-tint5': #ebbcb3, | |
'blue-tint1': #598caf, | |
'blue-tint2': #75a5c2, | |
'blue-tint3': #8ab5cd, | |
'blue-tint4': #a9cadc, | |
'blue-tint5': #bcd7e5, | |
// Sections colours | |
'section-purple': #92288f, | |
'section-light-purple': #ebcaec, | |
'section-blue': #0e6dcc, | |
'section-light-blue': #c5d4e8, | |
'section-green': #09a25c, | |
'section-light-green': #a1dbb2, | |
'section-red': #cc0033, | |
); | |
@error o-json-encode($o-colors-palette); |
This file contains hidden or 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
{"transparent": "transparent", "transparent": "transparent", "inherit": "inherit", "pink": "#fff1e0", "pink": "#fff1e0", "black": "#000000", "black": "#000000", "white": "#ffffff", "white": "#ffffff", "blue": "#2e6e9e", "blue": "#2e6e9e", "dark-blue": "#275e86", "claret": "#9e2f50", "orange": "#d66d06", "orange": "#d66d06", "grey-tint1": "#b0b0b0", "grey-tint2": "#999999", "grey-tint3": "#777777", "grey-tint4": "#505050", "grey-tint5": "#333333", "pink-tint1": "#f6e9d8", "pink-tint2": "#e9decf", "pink-tint3": "#cec6b9", "pink-tint4": "#a7a59b", "pink-tint5": "#74736c", "red": "#cc0000", "red": "#cc0000", "green": "#458b00", "green": "#458b00", "orange-tint1": "#eda45e", "brown-tint1": "#94826b", "yellow-tint1": "#eed485", "green-tint1": "#a6a471", "bluegreen-tint1": "#819e9a", "silver-tint1": "#c1b8b4", "purple-tint1": "#936971", "purple-tint2": "#737e7e", "red-tint1": "#b1493f", "red-tint2": "#c36256", "red-tint3": "#d17c70", "red-tint4": "#df9c92", "red-tint5": "#ebbcb3", "blue-tint1": "#598caf", "blue-tint2": "#75a5c2", "blue-tint3": "#8ab5cd", "blue-tint4": "#a9cadc", "blue-tint5": "#bcd7e5", "section-purple": "#92288f", "section-light-purple": "#ebcaec", "section-blue": "#0e6dcc", "section-light-blue": "#c5d4e8", "section-green": "#09a25c", "section-light-green": "#a1dbb2", "section-red": "#cc0033"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment