About 26,000 results
Open links in new tab
  1. css - Adding a color class to Bootstrap - Stack Overflow

    Jul 23, 2016 · I have looked into Bootstrap, and noticed that there are few "color classes" included (primary, success, danger etc.) I would like to know if there is a way to add more classes like those mentioned in easy way. For example: "primary" can be used with many elements, and will apply the defined color, and so does the other color classes.

  2. Available text color classes in Bootstrap - Stack Overflow

    Nov 14, 2018 · The text at the navigation bar is normally colored by using one of the two following css classes in the bootstrap.css file. Firstly, in case of using a default navigation bar (the gray one), the .navbar-default class will be used and the text is colored as dark gray .

  3. Bootstrap 5.3 generate alternative color classes using Sass

    Oct 22, 2023 · My plan is to generate "orange-as-primary.css", "purple-as-primary.css", etc, and include those after the standard "bootstrap.css" to override the classes dynamically (say a dropdown menu in the frontend). The Bootstrap documentation shows how to generate custom text color classes (e.g., .text-purple-500) using Sass:

  4. css - is there a way to use bootstrap 5 custom color directly in the ...

    Mar 28, 2021 · Bootsstrap is build to be extended: Using SASS you can extend Bootstrap and create the helper classes on the fly. NOTE: The SASS code example below is done to YOUR QUESTION (= all colors = 900 additional helper classes). Maybe you may like to reduce that huge amount of additional code by building the color classes only to your indeed needed colors.

  5. How to change the bootstrap primary color? - Stack Overflow

    Aug 5, 2016 · It's also possible to change the primary color with CSS only but it requires a lot of additional CSS since there are many -primary variations (btn-primary, alert-primary, bg-primary, text-primary, table-primary, border-primary, etc...) and some of these classes have slight colors variations on borders, hover, and active states.

  6. css - How to change btn color in Bootstrap - Stack Overflow

    Feb 1, 2015 · A better option is to use SASS to regenerate the btn-* CSS classes as desired using the appropriate SASS mixins... Bootstrap 5 (update 2023) Bootstrap 5 has the same button-variant and button-outline-variant SASS mixins which can be used to customize the button color after bootstrap is imported...

  7. css - How to extend Bootstrap color classes - Stack Overflow

    when using Bootstrap, I invite any color-savvy person to scientifically come up with an extension that would extend these color classes. It shouldn't be that difficult - but there is a science to color-codification (of which I am not particularly trained in) and if it is to be a proper extension, then it should be done per these standards so ...

  8. How to extend/modify (customize) Bootstrap with SASS

    May 9, 2023 · 2a (optional) - Also, you can extend existing Bootstrap classes after the @import "bootstrap"; to create new custom classes. For example, here is a new .row-dark class that extends (inherits from) the Bootstrap .row class and then add a background-color.

  9. How can I override Bootstrap CSS styles? - Stack Overflow

    Update 2021 - Bootstrap 4 and Bootstrap 5. There are 3 rules to follow when overriding Bootstrap CSS.. import/include bootstrap.css before your CSS rules (overrides) use more CSS Specificity (or equal) than the Bootstrap CSS selectors; if any rule is overridden, use !important attribute to force your rules.

  10. Bootstrap color classes, icons, and dropdown not working

    Sep 10, 2023 · I have been trying to use bootstrap classes like bg-body-tertiary, or bg-secondary-subtle, as well as the dropdown functions and the icons. When I try to test code from the manual it doesn't appear the same as in the website. For example...