2017-05-08 08:57:49 -05:00
|
|
|
// Commonly used web colors
|
2023-02-12 21:57:03 -06:00
|
|
|
$black: #000000; // Black
|
|
|
|
$white: #ffffff; // White
|
2023-07-03 04:32:31 -05:00
|
|
|
$red-600: #b7253d !default; // Deep Carmine
|
|
|
|
$red-500: #df405a !default; // Cerise
|
|
|
|
$blurple-600: #563acc; // Iris
|
|
|
|
$blurple-500: #6364ff; // Brand purple
|
2023-07-21 06:20:14 -05:00
|
|
|
$blurple-400: #7477fd; // Medium slate blue
|
2023-07-03 04:32:31 -05:00
|
|
|
$blurple-300: #858afa; // Faded Blue
|
|
|
|
$grey-600: #4e4c5a; // Trout
|
|
|
|
$grey-100: #dadaf3; // Topaz
|
|
|
|
|
|
|
|
$success-green: #79bd9a !default; // Padua
|
|
|
|
$error-red: $red-500 !default; // Cerise
|
|
|
|
$warning-red: #ff5050 !default; // Sunset Orange
|
|
|
|
$gold-star: #ca8f04 !default; // Dark Goldenrod
|
2017-05-08 08:57:49 -05:00
|
|
|
|
2018-05-21 11:57:51 -05:00
|
|
|
$red-bookmark: $warning-red;
|
|
|
|
|
2017-05-08 08:57:49 -05:00
|
|
|
// Values from the classic Mastodon UI
|
2023-02-12 21:57:03 -06:00
|
|
|
$classic-base-color: #282c37; // Midnight Express
|
|
|
|
$classic-primary-color: #9baec8; // Echo Blue
|
|
|
|
$classic-secondary-color: #d9e1e8; // Pattens Blue
|
|
|
|
$classic-highlight-color: #6364ff; // Brand purple
|
2017-05-08 08:57:49 -05:00
|
|
|
|
|
|
|
// Variables for defaults in UI
|
2017-05-12 12:22:50 -05:00
|
|
|
$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;
|
2017-05-08 08:57:49 -05:00
|
|
|
|
|
|
|
// Tell UI to use selected colors
|
2023-02-12 21:57:03 -06:00
|
|
|
$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
|
2018-05-05 10:58:46 -05:00
|
|
|
$ui-highlight-color: $classic-highlight-color !default;
|
2023-07-03 04:32:31 -05:00
|
|
|
$ui-button-color: $white !default;
|
|
|
|
$ui-button-background-color: $blurple-500 !default;
|
|
|
|
$ui-button-focus-background-color: $blurple-600 !default;
|
2023-08-02 12:33:41 -05:00
|
|
|
$ui-button-focus-outline-color: $blurple-400 !default;
|
|
|
|
$ui-button-focus-outline: solid 2px $ui-button-focus-outline-color !default;
|
2023-07-03 04:32:31 -05:00
|
|
|
|
|
|
|
$ui-button-secondary-color: $grey-100 !default;
|
|
|
|
$ui-button-secondary-border-color: $grey-100 !default;
|
|
|
|
$ui-button-secondary-focus-background-color: $grey-600 !default;
|
|
|
|
$ui-button-secondary-focus-color: $white !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;
|
2018-05-05 10:58:46 -05:00
|
|
|
|
2023-08-02 12:33:41 -05:00
|
|
|
$ui-button-icon-focus-outline: $ui-button-focus-outline !default;
|
2023-07-21 06:20:14 -05:00
|
|
|
$ui-button-icon-hover-background-color: rgba(140, 141, 255, 40%) !default;
|
|
|
|
|
2018-05-05 10:58:46 -05:00
|
|
|
// 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;
|
2022-06-19 01:18:08 -05:00
|
|
|
$highlight-text-color: lighten($ui-highlight-color, 8%) !default;
|
2023-07-03 09:51:04 -05:00
|
|
|
$action-button-color: $ui-base-lighter-color !default;
|
|
|
|
$action-button-focus-color: lighten($ui-base-lighter-color, 4%) !default;
|
2020-11-12 10:43:12 -06:00
|
|
|
$passive-text-color: $gold-star !default;
|
|
|
|
$active-passive-text-color: $success-green !default;
|
2023-02-25 14:20:01 -06:00
|
|
|
|
2018-05-05 10:58:46 -05:00
|
|
|
// 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;
|
2017-06-18 17:09:03 -05:00
|
|
|
|
2018-01-13 12:41:20 -06:00
|
|
|
// Language codes that uses CJK fonts
|
|
|
|
$cjk-langs: ja, ko, zh-CN, zh-HK, zh-TW;
|
|
|
|
|
2018-04-08 17:56:59 -05:00
|
|
|
// Variables for components
|
|
|
|
$media-modal-media-max-width: 100%;
|
2023-02-25 14:20:01 -06:00
|
|
|
|
2018-04-08 17:56:59 -05:00
|
|
|
// put margins on top and bottom of image to avoid the screen covered by image.
|
|
|
|
$media-modal-media-max-height: 80%;
|
|
|
|
|
2022-10-09 08:55:32 -05:00
|
|
|
$no-gap-breakpoint: 1175px;
|
2018-07-31 15:54:18 -05:00
|
|
|
|
2018-10-01 06:13:58 -05:00
|
|
|
$font-sans-serif: 'mastodon-font-sans-serif' !default;
|
|
|
|
$font-display: 'mastodon-font-display' !default;
|
|
|
|
$font-monospace: 'mastodon-font-monospace' !default;
|
|
|
|
|
2017-06-18 17:09:03 -05:00
|
|
|
// Avatar border size (8% default, 100% for rounded avatars)
|
|
|
|
$ui-avatar-border-size: 8%;
|
2017-11-17 21:11:18 -06:00
|
|
|
|
|
|
|
// More variables
|
|
|
|
$dismiss-overlay-width: 4rem;
|
2023-06-06 14:49:49 -05:00
|
|
|
|
|
|
|
:root {
|
|
|
|
--dropdown-border-color: #{lighten($ui-base-color, 12%)};
|
|
|
|
--dropdown-background-color: #{lighten($ui-base-color, 4%)};
|
|
|
|
--dropdown-shadow: 0 20px 25px -5px #{rgba($base-shadow-color, 0.25)},
|
|
|
|
0 8px 10px -6px #{rgba($base-shadow-color, 0.25)};
|
2023-07-27 09:11:17 -05:00
|
|
|
--modal-background-color: #{darken($ui-base-color, 4%)};
|
|
|
|
--modal-border-color: #{lighten($ui-base-color, 4%)};
|
2023-06-06 14:49:49 -05:00
|
|
|
}
|