Open In App

Spectre Button colors

The button is an important feature of any website or in any app. The Spectre Button color class is used to define the color of the button.

Button Color Class:



Note: If you need more button colors, please use button mixins to create your own button color variants.

Example: Below example illustrate the Button Color in Spectre.






<!DOCTYPE html>
<html>
  
<head>
    <title>SPECTRE Buttons Class</title>
    <link rel="stylesheet" 
          href=
    <link rel="stylesheet" 
          href=
    <link rel="stylesheet" 
          href=
</head>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1
        <strong>SPECTRE Button Color Class</strong>
        <br>
        <button class="btn btn-primary">Primary Color</button>
        <button class="btn btn-success">Success Color</button>
        <button class="btn btn-error">Error Color</button>
    </center>
</body>
  
</html>

Output:

Reference: https://picturepan2.github.io/spectre/elements/buttons.html#buttons-colors


Article Tags :