Skip to content
npm ↗ GitHub ↗

Documentation

v0.1/Cobalto

Editorial components
for Tailwind CSS v4.

Components for Tailwind CSS v4 with monospaced typography, thin borders instead of shadows and a color system you change with a single variable.

Press ⌘K to search for any component or class.

In 30 seconds

Import Cobalto after Tailwind and use the cb-* classes in your HTML.

app.css
@import "tailwindcss";
@import "cobalto/tailwind";
HTML
<a class="cb-btn cb-btn--primary" href="#">Empezar ↗</a>

Principles

  1. 01

    Tokens first

    No component uses fixed colors. Everything goes through --cb-* variables.

  2. 02

    Your utilities win

    Components live in @layer components, so mt-0 or bg-cb-bg-2 always override them.

  3. 03

    Optional JS

    data-cb-* attributes, no dependencies, compatible with Livewire and Alpine.

Components

Structure

Content

Actions and labels

Forms and data

Overlays

Interaction and state