Skip to content

TicFrame v5.7.0-alpha.1 is available - read the changelog.

TicFrame

Components

Card

Card reference for TicFrame components, covering usage, accessibility, responsive behavior, dark mode, RTL, source examples, and production guidance.

Requirements

Card is implemented with semantic HTML, TicFrame classes, design tokens, responsive utilities, and documented data attributes. It does not require website-specific CSS.

Use the tf-* namespace consistently so the class validator can prove every visual dependency ships from TicFrame.

Usage Guidance

Start with the semantic element, add the matching TicFrame component or utility classes, and use data attributes only for behavior that TicFrame documents. Keep labels, headings, and landmarks visible to assistive technology.

Responsive

Mobile-first utilities such as md:tf-grid-cols-3 scale the layout.

Dark mode

Colors resolve through data-tf-theme and semantic tokens.

RTL

Logical spacing and direction-aware JS keep the component mirrored safely.

Live Example

Release-ready surface

Cards group related content without requiring custom CSS.

HTML
<article class="tf-card">
  <div class="tf-card-body">
    <h2 class="tf-text-lg tf-font-semibold">Release-ready surface</h2>
    <p class="tf-text-muted">Cards group related content without requiring custom CSS.</p>
  </div>
</article>

Reference

AreaContract
Classestf-container, tf-card, tf-btn, and feature-specific tf-* classes.
AccessibilityKeyboard access, visible focus, associated labels, ARIA only where native HTML needs support.
JavaScriptAutomatic initialization through TicFrame.init() and the documented data API.
Tokens--tf-color-*, --tf-space-*, --tf-radius-*, and --tf-shadow-*.