Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 4 hex colors for rails app [closed]

Does anyone know where to find a list of bootstrap 4 colors in hex? i looked at the docs, maybe i missed it?

My issue is that I'm trying to match some colors on my site to the bootstrap 4 "bg-primary", "btn-primary", etc... colors.

like image 926
random_user_0891 Avatar asked Dec 07 '17 20:12

random_user_0891


People also ask

Is hex web color?

Designers and developers use HEX colors in web design. A HEX color is expressed as a six-digit combination of numbers and letters defined by its mix of red, green and blue (RGB). Basically, a HEX color code is shorthand for its RGB values with a little conversion gymnastics in between.

Which colors are associated to bootstrap primary success Info warning and danger keywords?

$primary: $blue; $secondary: $gray-600; $success: $green; $info: $cyan; $warning: $yellow; $danger: $red; $light: $gray-100; $dark: $gray-900; Grayscale colors are also available, but only a subset are used to generate any utilities.


1 Answers

The easiest way to get the default values used in Bootstrap is to check the scss variables in the source. Since the package is available publicly from Github you can do this even without installing it. The variables are set in the bootstrap/scss/_variables.scss file.

The default colors are as follows:

// Colors
$blue:    #007bff !default; // primary
$indigo:  #6610f2 !default;
$purple:  #6f42c1 !default;
$pink:    #e83e8c !default;
$red:     #dc3545 !default; // danger
$orange:  #fd7e14 !default;
$yellow:  #ffc107 !default; // warning
$green:   #28a745 !default; // success
$teal:    #20c997 !default;
$cyan:    #17a2b8 !default; // info

// Grays
$white:    #fff !default;
$gray-100: #f8f9fa !default; // light
$gray-200: #e9ecef !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #adb5bd !default;
$gray-600: #868e96 !default; // secondary
$gray-700: #495057 !default;
$gray-800: #343a40 !default; // dark
$gray-900: #212529 !default;
$black:    #000 !default;
like image 186
dferenc Avatar answered Oct 08 '22 01:10

dferenc