mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 10:53:39 +00:00
87 lines
3.1 KiB
SCSS
87 lines
3.1 KiB
SCSS
@use 'sass:color';
|
|
@use 'functions' as *;
|
|
|
|
// Commonly used web colors
|
|
$black: #000; // Black
|
|
$white: #fff; // 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
|
|
|
|
// Variables for defaults in UI
|
|
$base-shadow-color: $black !default;
|
|
$base-border-color: $white !default;
|
|
$simple-background-color: $white !default;
|
|
|
|
// Tell UI to use selected colors
|
|
$ui-base-color: hsl(240deg, 16%, 19%) !default; // Darkest
|
|
$ui-base-lighter-color: lighten(
|
|
$ui-base-color,
|
|
26%
|
|
) !default; // Lighter darkest
|
|
$ui-primary-color: hsl(240deg, 29%, 70%) !default; // Lighter
|
|
$ui-secondary-color: hsl(255deg, 25%, 88%) !default; // Lightest
|
|
$ui-highlight-color: $blurple-500 !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-disabled-color: color.adjust(
|
|
$ui-button-background-color,
|
|
$alpha: -0.3
|
|
) !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;
|
|
|
|
// Variables for texts
|
|
$action-button-color: $ui-base-lighter-color !default;
|
|
$action-button-focus-color: lighten($ui-base-lighter-color, 4%) !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;
|
|
|
|
// Keep this filter a SCSS variable rather than
|
|
// a CSS Custom Property due to this Safari bug:
|
|
// https://github.com/mdn/browser-compat-data/issues/25914#issuecomment-2676190245
|
|
$backdrop-blur-filter: blur(10px) saturate(180%) contrast(75%) brightness(70%);
|
|
|
|
// 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-menu-breakpoint: 760px;
|
|
$mobile-breakpoint: 630px;
|
|
$no-columns-breakpoint: 600px;
|
|
|
|
$font-sans-serif: 'mastodon-font-sans-serif' !default;
|
|
$font-display: 'mastodon-font-display' !default;
|
|
$font-monospace: 'mastodon-font-monospace' !default;
|
|
|
|
$emojis-requiring-inversion: 'back' 'copyright' 'curly_loop' 'currency_exchange'
|
|
'end' 'heavy_check_mark' 'heavy_division_sign' 'heavy_dollar_sign'
|
|
'heavy_minus_sign' 'heavy_multiplication_x' 'heavy_plus_sign' 'on'
|
|
'registered' 'soon' 'spider' 'telephone_receiver' 'tm' 'top' 'wavy_dash' !default;
|