| 1 |
@use 'sass:color'; |
| 2 |
|
| 3 |
$accent: #2271b1; |
| 4 |
$primary: #03c7d2; |
| 5 |
$secondary: #d46f4d; |
| 6 |
$outline: #9e9e9e; |
| 7 |
$brand-discord: #5865f2; |
| 8 |
$brand-facebook: #3b5998; |
| 9 |
$cloud: #00bcd4; |
| 10 |
$cloud-update: #ff9800; |
| 11 |
|
| 12 |
/* format: background-color [color] */ |
| 13 |
$badges: ( |
| 14 |
php: #1d97c6, |
| 15 |
html: #ef6a36, |
| 16 |
css: #9b59b6, |
| 17 |
js: #ffeb3b #1c1f20, |
| 18 |
cond: #2eae95, |
| 19 |
core: #61c5cb, |
| 20 |
pro: #f7e8e3 #df9279, |
| 21 |
cloud: $cloud, |
| 22 |
bundles: #50575e, |
| 23 |
cloud_search: #ff9800, |
| 24 |
private: #f7e6be #ca961b, |
| 25 |
public: #dbebf7 $accent, |
| 26 |
success: #d3e8d1 #447340, |
| 27 |
failure: #fad7c1 #a24b16, |
| 28 |
info: #d2e6f4 #2b71a3, |
| 29 |
neutral: #e2e5e5 #6c7e7e, |
| 30 |
special: #dfc5ef #6e249c |
| 31 |
); |
| 32 |
$notices: ( |
| 33 |
success: #d3e9d3 #377a37, |
| 34 |
warning: #f2ebc3 #b0730a, |
| 35 |
error: #f8d7da #721c24, |
| 36 |
); |
| 37 |
|
| 38 |
@function contrasting-text-color($bg-color) { |
| 39 |
$sum: 0; |
| 40 |
|
| 41 |
@each $color, $multiplier in (red 0.299, green 0.587, blue 0.114) { |
| 42 |
$sum: $sum + color.channel($bg-color, $color, $space: rgb) * $multiplier; |
| 43 |
} |
| 44 |
|
| 45 |
@return if ($sum > 186, #1c1f20, #fff) |
| 46 |
} |
| 47 |
|
| 48 |
@mixin link-colors($color, $lightness: 15%) { |
| 49 |
a { |
| 50 |
color: $color; |
| 51 |
|
| 52 |
&:hover, &:active, &:focus { |
| 53 |
color: color.adjust($color, $lightness: $lightness); |
| 54 |
} |
| 55 |
} |
| 56 |
} |
| 57 |
|