In any user interface or website, the button element is most frequently used because it can be used to initiate an action as well as link to other pages.

Skewind provides a large variety of styles and sizes for the button component, including outlined buttons, multiple colors, sizes, buttons with icons, and more.

Overviews

These are some overviews of the buttons. Use the options to switch between various styles, sizes, and variants.

Buttons

Variants
Size
Icons

Basic Usage

The button class can be used on <a>, <button>, <input type"submit">, etc. Example:

Anchor

Color Schemes

To change the color schemes, use Skewind's scheme-{color} utility classes. You can also switch to a softer scheme by appending the button--soft class to the button element. Take a look at these examples:

Button Variants

The variant of the button is button--solid by default, just like the examples above. We provide a few more styles that are listed below. Append the button--{style} class to set button styles.

Outline

button--outline

Softer Outline

button--outline button--soft

Flat

button--flat

Softer Flat

button--flat button--soft

More Examples

With Icons

Let's add some icons to make it look more interesting. Wrap button text with an element. And finally, add the icon element as the first or/and last child of the button. For example:


                            

Icon Only

Sometimes you need a button to indicate an action using only an icon.


                            

Button Pills

You can also use TailwindCSS rounded-full utility to make pill-shaped buttons.


                            

Button Sizes

Set the button size to your needs with the button--{size} class. button--md is the default.