Colors

These are primary theme colors. They are used for all the elements including buttons, alerts, background, etc.

Primary
Secondary
Success
Error
Warning
Info

Background

Use the contexual class to have background with different shades. E.g. .bg-{primary|secondary|success|danger|info|warning}

.bg-primary
.bg-secondary
.bg-success
.bg-danger
.bg-warning
.bg-info

Each color has a translucent shade too. It adds a little transparency. E.g. .bg-soft-{primary|secondary|success|danger|info|warning}

.bg-soft-primary
.bg-soft-secondary
.bg-soft-success
.bg-soft-danger
.bg-soft-warning
.bg-soft-info

Text Colors

Even your text can have the contexual color. E.g. .text-{primary|secondary|success|danger|info|warning}

.text-primary
.text-secondary
.text-success
.text-danger
.text-warning
.text-info
Alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Example
                                              
                                        
Example
                                            
                                        
Accordions

Toggle the visibility of content across your project with a few classes and our JavaScript plugins.

What is Lorem Ipsum?
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Example
                                            
What is Lorem Ipsum?
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Badges

Badges scale to match the size of the immediate parent element by using relative font sizing and em units.

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New
Example heading New
Example
                                            

Example heading New

Badges can be used as part of links or buttons to provide a counter.

Add any of the below mentioned modifier classes to change the appearance of a badge.

Primary Secondary Success Danger Warning Info Orange Light Dark
Example
                                            Primary
                                        

Use the .rounded-pill modifier class to make badges more rounded (with a larger border-radius and additional horizontal padding).

Pill Badge-md Badge-lg

Use the .badge-soft-* modifier class to make badges soft

Primary Secondary Success Danger Warning Info Orange Dark
Example
                                            Primary
                                        
Buttons

Use the button classes on an <a>, <button>, or <input> element.

Example
                                                
                                            

In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-* ones to remove all background images and colors on any button.

Example
                                                
                                            

Replace the default modifier classes with the .btn-soft-* ones to have a softer background color on any button.

Example
                                                
                                            

Add a class .btn-rounded with the default modifier classes to have rounded edges.

Example
                                                
                                            

Fancy larger or smaller buttons? Add .btn-lg or .btn-sm for additional sizes.

Example
                                                
                                            

Buttons with icon - variations

Example
                                                
                                            
Cards

Bootstrap's cards provide a flexible and extensible content container with multiple variants and options. Check out Bootstrap's Doc for more examples.

Card image cap
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Button
Example
Card image cap
Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Button
...
Card title

This is a wider card with supporting text lead-in to additional content.

Last updated 3 mins ago

Card title

This is a wider card with supporting text lead-in to additional content.

Last updated 3 mins ago

...
Example
...
Card title

This is a wider card with supporting text lead-in to additional content.

Last updated 3 mins ago

Form Elements

Examples and usage guidelines for form control styles, layout options, and custom components for creating a wide variety of forms.

Example
                                            

Set heights using classes like .form-control-lg and .form-control-sm.

Custom controls including Checkboxes, Radios, Select, Range, etc.

Example
                                            
Modals

A modal plugin allows to add dialogs to your site for lightboxes, user notifications, or completely custom content, etc.

Example

Add .modal-dialog-centered to .modal-dialog to vertically center the modal.

Example

You can also create a scrollable modal that allows scroll the modal body by adding .modal-dialog-scrollable to .modal-dialog.

Example

A modal can be used to show contexual messages including success, error, warning, information messages, etc.

Example
Progress

Bootstrap custom progress bars featuring support for stacked bars, animated backgrounds, and text labels

25%
Example
                                            
25%

Add .progress-bar-striped to any .progress-bar to apply a stripe via CSS gradient over the progress bar's background color. Additionally you can add .progress-bar-animated to make it animated as well.

Example
                                            

Set a height value on the .progress. The inner .progress-bar will automatically resize accordingly.

Example
                                            
Spinners

Indicate the loading state of a component or page with Bootstrap spinners, built entirely with HTML, CSS, and no JavaScript.

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Example
                                            
Loading...

If you don't fancy a border spinner, switch to the grow spinner. While it doesn't technically spin, it does repeatedly grow!

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Example
                                            
Loading...
Offcanvas

Use the buttons below to show and hide an offcanvas element via JavaScript that toggles the .show class on an element with the .offcanvas class.

Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
Example
                                            
Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
Popovers

Add small overlays of content, like those on the iPad, to any element for housing secondary information.

Example
                                            
                                        
Tooltips

Examples for adding custom Bootstrap tooltips with CSS and JavaScript using CSS3 for animations and data-attributes for local title storage.

Example
                                            
                                        

2024 © 秋炉科技, 版权所有