Color utilities - Utilities - Spectre.css CSS Framework
Author: Yan Zhu
Description: Color utilities are used for changing colors for text, link and background. Spectre.css CSS Framework is a lightweight, responsive and modern CSS framework for faster and extensible development.

PayPal GitHub

## SPECTRE

DOCS
Getting started

- Installation
- Custom version
- Browser support
- What's new

Elements

- Typography
- Tables
- Buttons
- Forms
- Icons.css
- Labels
- Code
- Media

Layout

- Flexbox grid
- Responsive
- Hero
- Navbar

Components

- Accordions
- Avatars
- Badges
- Bars
- Breadcrumbs
- Cards
- Chips
- Empty states
- Menu
- Modals
- Nav
- Pagination
- Panels
- Popovers
- Steps
- Tabs
- Tiles
- Toasts
- Tooltips

Utilities

- Colors
- Cursors
- Display
- Divider
- Loading
- Position
- Shapes
- Text

Experimentals

- 360-Degree Viewer
- Autocomplete
- Calendars
- Carousels
- Comparison sliders
- Filters
- Meters
- Off-canvas
- Parallax
- Progress
- Sliders
- Timelines

### Color utilities#

Color utilities are used for changing colors for text, link and background.

#### Text colors#

primary color

secondary color

dark color

gray color

light color

success color

warning color

error color

    <span class="text-primary">primary color</span>
    <span class="text-secondary">secondary color</span>
    <span class="text-dark">dark color</span>
    <span class="text-gray">gray color</span>
    <span class="text-light">light color</span>
    <span class="text-success">success color</span>
    <span class="text-warning">warning color</span>
    <span class="text-error">error color</span>

primary link

secondary link

dark link

gray link

light link

success link

warning link

error link

    <a class="text-primary" href="#">primary color</a>
    <a class="text-secondary" href="#">secondary color</a>
    <a class="text-dark" href="#">dark color</a>
    <a class="text-gray" href="#">gray color</a>
    <a class="text-light" href="#">light color</a>
    <a class="text-success" href="#">success color</a>
    <a class="text-warning" href="#">warning color</a>
    <a class="text-error" href="#">error color</a>

#### Background colors#

primary bg

secondary bg

dark bg

gray bg

success bg

warning bg

error bg

    <div class="bg-primary">primary bg</div>
    <div class="bg-secondary">secondary bg</div>
    <div class="bg-dark">dark bg</div>
    <div class="bg-gray">gray bg</div>
    <div class="bg-success">success bg</div>
    <div class="bg-warning">warning bg</div>
    <div class="bg-error">error bg</div>

GitHub · Twitter · PayPal Donate · Patreon Sponsor · Version

Designed and built with ♥ by Yan Zhu. Licensed under the MIT License.