FeaturedIcon

<FeaturedIcon>TailwindCSS Modules

Featured icons draw attention to specific features, empty states, or alerts. They use geometric containers to provide visual anchor points across spacious layouts.

InstallationColoxo CLI
npx coloxo add featured-icon --style coloxo-css
ES Module ImportPlayground / npm package
import { FeaturedIcon } from '@coloxo/ui';

Design Tokens:

--cx-brand-100: #E0E7FF--cx-brand-600: #2348FF--cx-warning-500: #F59E0B--cx-radius-full: 9999px

1. Variant Matrix

Every color rendered across all container types.

Colorlight-circledark-circleoutlinemodernmodern-neue
brand
gray——
error——
warning——
success——

2. Control heights (Sizes)

Sizes match logical steps in typographic scale to ensure optical balance when placed next to headings.

Sizes

size="sm"
Dimensions: 32px (2rem)

Compact list items, inline alerts

size="md"DEFAULT
Dimensions: 40px (2.5rem)

Standard forms, standard empty states

size="lg"
Dimensions: 48px (3rem)

Modals, feature highlights, large cards

size="xl"
Dimensions: 56px (3.5rem)

Hero sections, primary empty states

3. Interactive Props Configurator

Visual Render CanvasHEIGHT: 40PX | TYPE: LIGHT-CIRCLE
tsx
<FeaturedIcon  type="light-circle"  color="brand">  <Zap /></FeaturedIcon>

4. Dark theme

FeaturedIcons gracefully adapt to dark backgrounds by shifting their alpha layers and borders.

Success
light-circle
Warning
outline
Brand
dark-circle
Modern
modern-neue

5. Enterprise layout compositions

Using FeaturedIcons for empty states, billing prompts, and inline dialogs.

No team members yet

Invite your colleagues to collaborate, share dashboards, and manage billing together.

Payment method failed

We were unable to process your last invoice for $24.00. Please update your billing information to avoid service interruption.

Accessibility

Decorative Nature

FeaturedIcons are strictly decorative. They should always be paired with descriptive text.

ARIA Hidden

Icons inside FeaturedIcon should typically be hidden from screen readers using aria-hidden='true' (which most icon libraries do by default) to prevent redundant announcements.

Contrast

Backgrounds are deliberately designed to have soft contrast. Do not rely on their color alone to convey critical state.

Props

NameTypeDefaultDescription
type"light-circle" | "dark-circle" | "modern" | "modern-neue" | "outline"light-circleContainer style.
color"brand" | "gray" | "error" | "warning" | "success"brandTone.
size"sm" | "md" | "lg" | "xl"mdBox size.