mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-05 14:49:03 +01:00
119 lines
4.8 KiB
SCSS
119 lines
4.8 KiB
SCSS
// Commonly used web colors
|
|
$black: #000000; // Black
|
|
$white: #ffffff; // White
|
|
$red-600: #b7253d !default; // Deep Carmine
|
|
$red-500: #df405a !default; // Cerise
|
|
$blurple-600: #563acc; // Iris
|
|
$blurple-500: #6364ff; // Brand purple
|
|
$blurple-400: #7477fd; // Medium slate blue
|
|
$blurple-300: #858afa; // Faded Blue
|
|
$grey-600: hsl(240deg, 8%, 33%); // Trout
|
|
$grey-100: hsl(240deg, 51%, 90%); // Topaz
|
|
|
|
$success-green: #79bd9a !default; // Padua
|
|
$error-red: $red-500 !default; // Cerise
|
|
$warning-red: #ff5050 !default; // Sunset Orange
|
|
$gold-star: #ca8f04 !default; // Dark Goldenrod
|
|
|
|
$red-bookmark: $warning-red;
|
|
|
|
// Values from the classic Mastodon UI
|
|
$classic-base-color: hsl(240deg, 16%, 19%);
|
|
$classic-primary-color: hsl(240deg, 29%, 70%);
|
|
$classic-secondary-color: hsl(255deg, 25%, 88%);
|
|
$classic-highlight-color: $blurple-500;
|
|
|
|
// Variables for defaults in UI
|
|
$base-shadow-color: $black !default;
|
|
$base-overlay-background: $black !default;
|
|
$base-border-color: $white !default;
|
|
$simple-background-color: $white !default;
|
|
$valid-value-color: $success-green !default;
|
|
$error-value-color: $error-red !default;
|
|
|
|
// Tell UI to use selected colors
|
|
$ui-base-color: $classic-base-color !default; // Darkest
|
|
$ui-base-lighter-color: lighten(
|
|
$ui-base-color,
|
|
26%
|
|
) !default; // Lighter darkest
|
|
$ui-primary-color: $classic-primary-color !default; // Lighter
|
|
$ui-secondary-color: $classic-secondary-color !default; // Lightest
|
|
$ui-highlight-color: $classic-highlight-color !default;
|
|
$ui-button-color: $white !default;
|
|
$ui-button-background-color: $blurple-500 !default;
|
|
$ui-button-focus-background-color: $blurple-600 !default;
|
|
$ui-button-focus-outline-color: $blurple-400 !default;
|
|
$ui-button-focus-outline: solid 2px $ui-button-focus-outline-color !default;
|
|
|
|
$ui-button-secondary-color: $blurple-500 !default;
|
|
$ui-button-secondary-border-color: $blurple-500 !default;
|
|
$ui-button-secondary-focus-border-color: $blurple-300 !default;
|
|
$ui-button-secondary-focus-color: $blurple-300 !default;
|
|
|
|
$ui-button-tertiary-color: $blurple-300 !default;
|
|
$ui-button-tertiary-border-color: $blurple-300 !default;
|
|
$ui-button-tertiary-focus-background-color: $blurple-600 !default;
|
|
$ui-button-tertiary-focus-color: $white !default;
|
|
|
|
$ui-button-destructive-background-color: $red-500 !default;
|
|
$ui-button-destructive-focus-background-color: $red-600 !default;
|
|
|
|
$ui-button-icon-focus-outline: $ui-button-focus-outline !default;
|
|
$ui-button-icon-hover-background-color: rgba(140, 141, 255, 40%) !default;
|
|
|
|
// Variables for texts
|
|
$primary-text-color: $white !default;
|
|
$darker-text-color: $ui-primary-color !default;
|
|
$dark-text-color: $ui-base-lighter-color !default;
|
|
$secondary-text-color: $ui-secondary-color !default;
|
|
$highlight-text-color: lighten($ui-highlight-color, 8%) !default;
|
|
$action-button-color: $ui-base-lighter-color !default;
|
|
$action-button-focus-color: lighten($ui-base-lighter-color, 4%) !default;
|
|
$passive-text-color: $gold-star !default;
|
|
$active-passive-text-color: $success-green !default;
|
|
|
|
// For texts on inverted backgrounds
|
|
$inverted-text-color: $ui-base-color !default;
|
|
$lighter-text-color: $ui-base-lighter-color !default;
|
|
$light-text-color: $ui-primary-color !default;
|
|
|
|
// Language codes that uses CJK fonts
|
|
$cjk-langs: ja, ko, zh-CN, zh-HK, zh-TW;
|
|
|
|
// Variables for components
|
|
$media-modal-media-max-width: 100%;
|
|
|
|
// put margins on top and bottom of image to avoid the screen covered by image.
|
|
$media-modal-media-max-height: 80%;
|
|
|
|
$no-gap-breakpoint: 1175px;
|
|
$mobile-breakpoint: 630px;
|
|
|
|
$font-sans-serif: 'mastodon-font-sans-serif' !default;
|
|
$font-display: 'mastodon-font-display' !default;
|
|
$font-monospace: 'mastodon-font-monospace' !default;
|
|
|
|
:root {
|
|
--dropdown-border-color: #{lighten($ui-base-color, 4%)};
|
|
--dropdown-background-color: #{rgba(darken($ui-base-color, 8%), 0.9)};
|
|
--dropdown-shadow: 0 20px 25px -5px #{rgba($base-shadow-color, 0.25)},
|
|
0 8px 10px -6px #{rgba($base-shadow-color, 0.25)};
|
|
--modal-background-color: #{rgba(darken($ui-base-color, 8%), 0.7)};
|
|
--modal-background-variant-color: #{rgba($ui-base-color, 0.7)};
|
|
--modal-border-color: #{lighten($ui-base-color, 4%)};
|
|
--background-border-color: #{lighten($ui-base-color, 4%)};
|
|
--background-filter: blur(10px) saturate(180%) contrast(75%) brightness(70%);
|
|
--background-color: #{darken($ui-base-color, 8%)};
|
|
--background-color-tint: #{rgba(darken($ui-base-color, 8%), 0.9)};
|
|
--surface-background-color: #{darken($ui-base-color, 4%)};
|
|
--surface-variant-background-color: #{$ui-base-color};
|
|
--surface-variant-active-background-color: #{lighten($ui-base-color, 4%)};
|
|
--on-surface-color: #{transparentize($ui-base-color, 0.5)};
|
|
--avatar-border-radius: 8px;
|
|
--media-outline-color: #{rgba(#fcf8ff, 0.15)};
|
|
--overlay-icon-shadow: drop-shadow(0 0 8px #{rgba($base-shadow-color, 0.25)});
|
|
--error-background-color: #{darken($error-red, 16%)};
|
|
--error-active-background-color: #{darken($error-red, 12%)};
|
|
--on-error-color: #fff;
|
|
}
|