philomena/assets/css/themes/base/light.css
2024-07-02 21:32:39 +02:00

83 lines
2.6 KiB
CSS

$text-color: #121212;
$danger-color: #e78f82;
$warning-color: #edb76c;
$success-color: #8de3b1;
$information-color: #90dce7;
$special-color: #dc77e9;
$upvote-color: #67af2b;
$downvote-color: #cf0001;
$fave-color: #c4b246;
$comment-color: #9273d0;
$hide-color: #cf0001;
$tag-default-color: #84dd96;
$tag-error-color: #eb848c;
$tag-rating-color: #9cc6f0;
$tag-origin-color: #b5b0ed;
$tag-character-color: #b6e4ed;
$tag-oc-color: #efaaf2;
$tag-species-color: #e1997a;
$tag-body-type-color: #bcbcbc;
$tag-content-fanmade-color: #e388c2;
$tag-content-official-color: #ebe9b3;
$tag-spoiler-color: #dcb879;
$spoiler-color: #0f0f0f;
@define-mixin tag-color $tagname, $color, $text-percentage: 40, $border-percentage: 15 {
--tag-$(tagname)-color: $(color);
--tag-$(tagname)-border-color: hsl(from $color h s calc(l - $border-percentage));
--tag-$(tagname)-text-color: hsl(from $color h s calc(l - $text-percentage));
}
@define-mixin type-color $type, $color {
--$(type)-color: $color;
--$(type)-border-color: hsl(from $color h calc(s - 20) calc(l + 5));
--$(type)-muted-color: hsl(from $color h calc(s - 7) calc(l - 12));
--$(type)-dark-color: hsl(from $color h calc(s - 25) calc(l + 20));
--$(type)-link-color: hsl(from $color h calc(s + 50) calc(l - 47));
}
:root {
/* Main colors */
--text-color: $text-color;
/* Link colors */
--link-hover-color: $text-color;
/* Interaction (vote) colors */
--upvote-color: $upvote-color;
--downvote-color: $downvote-color;
--fave-color: $fave-color;
--comment-color: $comment-color;
--hide-color: $hide-color;
/* Spoiler colors */
--spoiler-color: $spoiler-color;
--spoiler-revealed-color: hsl(from $spoiler-color h s calc(l + 20));
/* The invisible color */
--invisible-color: #00000000;
/* Type (information category) colors */
@mixin type-color success, $success-color;
@mixin type-color warning, $warning-color;
@mixin type-color danger, $danger-color;
@mixin type-color information, $information-color;
@mixin type-color special, $special-color;
/* Tag colors */
@mixin tag-color default, $tag-default-color;
@mixin tag-color error, $tag-error-color, 37;
@mixin tag-color rating, $tag-rating-color, 37;
@mixin tag-color origin, $tag-origin-color, 42;
@mixin tag-color character, $tag-character-color;
@mixin tag-color oc, $tag-oc-color, 40;
@mixin tag-color species, $tag-species-color, 37;
@mixin tag-color body-type, $tag-body-type-color, 45, 12;
@mixin tag-color content-fanmade, $tag-content-fanmade-color, 40;
@mixin tag-color content-official, $tag-content-official-color;
@mixin tag-color spoiler, $tag-spoiler-color;
}