bulma/sass/utilities/derived-variables.scss

187 lines
4.6 KiB
SCSS
Raw Normal View History

2022-11-23 17:44:02 +00:00
@import "initial-variables";
@import "functions";
2022-12-14 17:15:51 +00:00
@import "css-variables";
2022-11-23 17:44:02 +00:00
$primary: $turquoise !default;
$info: $cyan !default;
$success: $green !default;
$warning: $yellow !default;
$danger: $red !default;
$light: $white-ter !default;
$dark: $grey-darker !default;
// Invert colors
$orange-invert: findColorInvert($orange) !default;
$yellow-invert: findColorInvert($yellow) !default;
$green-invert: findColorInvert($green) !default;
$turquoise-invert: findColorInvert($turquoise) !default;
$cyan-invert: findColorInvert($cyan) !default;
$blue-invert: findColorInvert($blue) !default;
$purple-invert: findColorInvert($purple) !default;
$red-invert: findColorInvert($red) !default;
$primary-invert: findColorInvert($primary) !default;
$primary-light: findLightColor($primary) !default;
$primary-dark: findDarkColor($primary) !default;
$info-invert: findColorInvert($info) !default;
$info-light: findLightColor($info) !default;
$info-dark: findDarkColor($info) !default;
$success-invert: findColorInvert($success) !default;
$success-light: findLightColor($success) !default;
$success-dark: findDarkColor($success) !default;
2022-12-14 17:15:51 +00:00
$warning-invert: #{getVar("white")} !default;
2022-11-23 17:44:02 +00:00
$warning-light: findLightColor($warning) !default;
$warning-dark: findDarkColor($warning) !default;
$danger-invert: findColorInvert($danger) !default;
$danger-light: findLightColor($danger) !default;
$danger-dark: findDarkColor($danger) !default;
$light-invert: findColorInvert($light) !default;
$dark-invert: findColorInvert($dark) !default;
// General colors
2022-12-14 17:15:51 +00:00
$scheme-main: #{getVar("white")} !default;
$scheme-main-bis: #{getVar("white-bis")} !default;
$scheme-main-ter: #{getVar("white-ter")} !default;
$scheme-invert: #{getVar("text-00")} !default;
$scheme-invert-bis: #{getVar("text-05")} !default;
$scheme-invert-ter: #{getVar("text-10")} !default;
2022-11-23 17:44:02 +00:00
2022-12-14 17:15:51 +00:00
$background: #{getVar("text-90")} !default;
2022-11-23 17:44:02 +00:00
2022-12-14 17:15:51 +00:00
$border: #{getVar("text-85")} !default;
$border-hover: #{getVar("text-80")} !default;
$border-light: #{getVar("text-90")} !default;
$border-light-hover: #{getVar("text-85")} !default;
2022-11-23 17:44:02 +00:00
// Text colors
2022-12-14 17:15:51 +00:00
$text: #{getVar("text-25")} !default;
$text-invert: #{getVar("white")} !default;
$text-light: #{getVar("text-55")} !default;
$text-strong: #{getVar("text-10")} !default;
2022-11-23 17:44:02 +00:00
// Code colors
2022-12-14 17:15:51 +00:00
$code: #{getVar("danger-60")} !default;
$code-background: #{getVar("text-90")} !default;
2022-11-23 17:44:02 +00:00
2022-12-14 17:15:51 +00:00
$pre: #{getVar("text-40")} !default;
$pre-background: #{getVar("text-90")} !default;
2022-11-23 17:44:02 +00:00
// Link colors
$link: $blue !default;
$link-invert: findColorInvert($link) !default;
$link-visited: $purple !default;
2022-12-14 17:15:51 +00:00
$link-hover: #{getVar("text-20")} !default;
$link-hover-border: #{getVar("text-70")} !default;
2022-11-23 17:44:02 +00:00
2022-12-14 17:15:51 +00:00
$link-focus: #{getVar("text-20")} !default;
$link-focus-border: #{getVar("link")} !default;
2022-11-23 17:44:02 +00:00
2022-12-14 17:15:51 +00:00
$link-active: #{getVar("text-20")} !default;
$link-active-border: #{getVar("text-30")} !default;
2022-11-23 17:44:02 +00:00
// Typography
$family-primary: $family-sans-serif !default;
$family-secondary: $family-sans-serif !default;
$family-code: $family-monospace !default;
$size-small: $size-7 !default;
$size-normal: $size-6 !default;
$size-medium: $size-5 !default;
$size-large: $size-4 !default;
// Effects
2022-12-14 17:15:51 +00:00
$shadow-color: $black !default;
$shadow: 0 0.5em 1em -0.125em rgba(var(--bulma-shadow-color-rgb), 0.1),
0 0px 0 1px rgba(var(--bulma-shadow-color-rgb), 0.02) !default;
2022-11-23 17:44:02 +00:00
// Lists and maps
$custom-colors: null !default;
$custom-shades: null !default;
2022-12-05 23:15:28 +00:00
$colors: mergeColorMaps(
(
"white": (
$white,
$black
),
"black": (
$black,
$white
),
"light": (
$light,
$light-invert
),
"dark": (
$dark,
$dark-invert
),
"primary": (
$primary,
$primary-invert,
$primary-light,
$primary-dark
),
"link": (
$link,
$link-invert,
),
"info": (
$info,
$info-invert,
$info-light,
$info-dark
),
"success": (
$success,
$success-invert,
$success-light,
$success-dark
),
"warning": (
$warning,
$warning-invert,
$warning-light,
$warning-dark
),
"danger": (
$danger,
$danger-invert,
$danger-light,
$danger-dark
2022-12-14 17:15:51 +00:00
),
"text": (
hsl(221, 14%, 29%),
#fff
2022-12-05 23:15:28 +00:00
)
),
$custom-colors
) !default;
$shades: mergeColorMaps(
(
"black-bis": $black-bis,
"black-ter": $black-ter,
"grey-darker": $grey-darker,
"grey-dark": $grey-dark,
"grey": $grey,
"grey-light": $grey-light,
"grey-lighter": $grey-lighter,
"white-ter": $white-ter,
"white-bis": $white-bis
),
$custom-shades
) !default;
2022-11-23 17:44:02 +00:00
$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 !default;