|
| 1 | +// Bootstrap 5 Color Variables |
| 2 | +// Extracted from https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss |
| 3 | +// Copyright (c) 2011-2022 Twitter, Inc. |
| 4 | +// Copyright (c) 2011-2022 The Bootstrap Authors |
| 5 | + |
| 6 | +// Tint a color: mix a color with white |
| 7 | +@function tint-color($color, $weight) { |
| 8 | + @return mix(white, $color, $weight); |
| 9 | +} |
| 10 | + |
| 11 | +// Shade a color: mix a color with black |
| 12 | +@function shade-color($color, $weight) { |
| 13 | + @return mix(black, $color, $weight); |
| 14 | +} |
| 15 | + |
| 16 | +// Color system |
| 17 | + |
| 18 | +$white: #fff !default; |
| 19 | +$gray-100: #f8f9fa !default; |
| 20 | +$gray-200: #e9ecef !default; |
| 21 | +$gray-300: #dee2e6 !default; |
| 22 | +$gray-400: #ced4da !default; |
| 23 | +$gray-500: #adb5bd !default; |
| 24 | +$gray-600: #6c757d !default; |
| 25 | +$gray-700: #495057 !default; |
| 26 | +$gray-800: #343a40 !default; |
| 27 | +$gray-900: #212529 !default; |
| 28 | +$black: #000 !default; |
| 29 | + |
| 30 | +$blue: #0d6efd !default; |
| 31 | +$indigo: #6610f2 !default; |
| 32 | +$purple: #6f42c1 !default; |
| 33 | +$pink: #d63384 !default; |
| 34 | +$red: #dc3545 !default; |
| 35 | +$orange: #fd7e14 !default; |
| 36 | +$yellow: #ffc107 !default; |
| 37 | +$green: #198754 !default; |
| 38 | +$teal: #20c997 !default; |
| 39 | +$cyan: #0dcaf0 !default; |
| 40 | + |
| 41 | +$blue-100: tint-color($blue, 80%) !default; |
| 42 | +$blue-200: tint-color($blue, 60%) !default; |
| 43 | +$blue-300: tint-color($blue, 40%) !default; |
| 44 | +$blue-400: tint-color($blue, 20%) !default; |
| 45 | +$blue-500: $blue !default; |
| 46 | +$blue-600: shade-color($blue, 20%) !default; |
| 47 | +$blue-700: shade-color($blue, 40%) !default; |
| 48 | +$blue-800: shade-color($blue, 60%) !default; |
| 49 | +$blue-900: shade-color($blue, 80%) !default; |
| 50 | + |
| 51 | +$indigo-100: tint-color($indigo, 80%) !default; |
| 52 | +$indigo-200: tint-color($indigo, 60%) !default; |
| 53 | +$indigo-300: tint-color($indigo, 40%) !default; |
| 54 | +$indigo-400: tint-color($indigo, 20%) !default; |
| 55 | +$indigo-500: $indigo !default; |
| 56 | +$indigo-600: shade-color($indigo, 20%) !default; |
| 57 | +$indigo-700: shade-color($indigo, 40%) !default; |
| 58 | +$indigo-800: shade-color($indigo, 60%) !default; |
| 59 | +$indigo-900: shade-color($indigo, 80%) !default; |
| 60 | + |
| 61 | +$purple-100: tint-color($purple, 80%) !default; |
| 62 | +$purple-200: tint-color($purple, 60%) !default; |
| 63 | +$purple-300: tint-color($purple, 40%) !default; |
| 64 | +$purple-400: tint-color($purple, 20%) !default; |
| 65 | +$purple-500: $purple !default; |
| 66 | +$purple-600: shade-color($purple, 20%) !default; |
| 67 | +$purple-700: shade-color($purple, 40%) !default; |
| 68 | +$purple-800: shade-color($purple, 60%) !default; |
| 69 | +$purple-900: shade-color($purple, 80%) !default; |
| 70 | + |
| 71 | +$pink-100: tint-color($pink, 80%) !default; |
| 72 | +$pink-200: tint-color($pink, 60%) !default; |
| 73 | +$pink-300: tint-color($pink, 40%) !default; |
| 74 | +$pink-400: tint-color($pink, 20%) !default; |
| 75 | +$pink-500: $pink !default; |
| 76 | +$pink-600: shade-color($pink, 20%) !default; |
| 77 | +$pink-700: shade-color($pink, 40%) !default; |
| 78 | +$pink-800: shade-color($pink, 60%) !default; |
| 79 | +$pink-900: shade-color($pink, 80%) !default; |
| 80 | + |
| 81 | +$red-100: tint-color($red, 80%) !default; |
| 82 | +$red-200: tint-color($red, 60%) !default; |
| 83 | +$red-300: tint-color($red, 40%) !default; |
| 84 | +$red-400: tint-color($red, 20%) !default; |
| 85 | +$red-500: $red !default; |
| 86 | +$red-600: shade-color($red, 20%) !default; |
| 87 | +$red-700: shade-color($red, 40%) !default; |
| 88 | +$red-800: shade-color($red, 60%) !default; |
| 89 | +$red-900: shade-color($red, 80%) !default; |
| 90 | + |
| 91 | +$orange-100: tint-color($orange, 80%) !default; |
| 92 | +$orange-200: tint-color($orange, 60%) !default; |
| 93 | +$orange-300: tint-color($orange, 40%) !default; |
| 94 | +$orange-400: tint-color($orange, 20%) !default; |
| 95 | +$orange-500: $orange !default; |
| 96 | +$orange-600: shade-color($orange, 20%) !default; |
| 97 | +$orange-700: shade-color($orange, 40%) !default; |
| 98 | +$orange-800: shade-color($orange, 60%) !default; |
| 99 | +$orange-900: shade-color($orange, 80%) !default; |
| 100 | + |
| 101 | +$yellow-100: tint-color($yellow, 80%) !default; |
| 102 | +$yellow-200: tint-color($yellow, 60%) !default; |
| 103 | +$yellow-300: tint-color($yellow, 40%) !default; |
| 104 | +$yellow-400: tint-color($yellow, 20%) !default; |
| 105 | +$yellow-500: $yellow !default; |
| 106 | +$yellow-600: shade-color($yellow, 20%) !default; |
| 107 | +$yellow-700: shade-color($yellow, 40%) !default; |
| 108 | +$yellow-800: shade-color($yellow, 60%) !default; |
| 109 | +$yellow-900: shade-color($yellow, 80%) !default; |
| 110 | + |
| 111 | +$green-100: tint-color($green, 80%) !default; |
| 112 | +$green-200: tint-color($green, 60%) !default; |
| 113 | +$green-300: tint-color($green, 40%) !default; |
| 114 | +$green-400: tint-color($green, 20%) !default; |
| 115 | +$green-500: $green !default; |
| 116 | +$green-600: shade-color($green, 20%) !default; |
| 117 | +$green-700: shade-color($green, 40%) !default; |
| 118 | +$green-800: shade-color($green, 60%) !default; |
| 119 | +$green-900: shade-color($green, 80%) !default; |
| 120 | + |
| 121 | +$teal-100: tint-color($teal, 80%) !default; |
| 122 | +$teal-200: tint-color($teal, 60%) !default; |
| 123 | +$teal-300: tint-color($teal, 40%) !default; |
| 124 | +$teal-400: tint-color($teal, 20%) !default; |
| 125 | +$teal-500: $teal !default; |
| 126 | +$teal-600: shade-color($teal, 20%) !default; |
| 127 | +$teal-700: shade-color($teal, 40%) !default; |
| 128 | +$teal-800: shade-color($teal, 60%) !default; |
| 129 | +$teal-900: shade-color($teal, 80%) !default; |
| 130 | + |
| 131 | +$cyan-100: tint-color($cyan, 80%) !default; |
| 132 | +$cyan-200: tint-color($cyan, 60%) !default; |
| 133 | +$cyan-300: tint-color($cyan, 40%) !default; |
| 134 | +$cyan-400: tint-color($cyan, 20%) !default; |
| 135 | +$cyan-500: $cyan !default; |
| 136 | +$cyan-600: shade-color($cyan, 20%) !default; |
| 137 | +$cyan-700: shade-color($cyan, 40%) !default; |
| 138 | +$cyan-800: shade-color($cyan, 60%) !default; |
| 139 | +$cyan-900: shade-color($cyan, 80%) !default; |
0 commit comments