Article Title
This is an article inside a main element.
Semantic CSS library for the modern web
Lightweight, CSS-3 styling with native HTMX integration. Loading states, swap transitions, and smooth animations.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/madeonawave/semtx@main/semtx.css">
<script src="https://unpkg.com/htmx.org"></script>
Just add the CSS file.
Quick Start
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/madeonawave/semtx@main/semtx.css">
Light & Dark themes.
CSS-3 variables for easy theming.
Multiple variants, sizes, and states.
Variants
Sizes
States
Text, select, checkboxes, and more.
Text Inputs
Select & Textarea
Checkboxes & Radio
Switch
Content containers with header and footer.
This is the card body content. Cards are great for grouping related content.
No shadow, just borders. Useful for denser layouts.
Transparent background with border only.
Navbar, tabs, breadcrumb, and pagination.
Tabs (HTMX)
Breadcrumb (HTMX)
Pagination
Badges
Info, success, warning, and error messages.
This is an informational message.
Your changes have been saved.
Your session will expire soon.
Something went wrong. Please try again.
Striped, hoverable, and responsive tables.
| Name | Role | Status | |
|---|---|---|---|
| Alice Johnson | alice@example.com | Admin | Active |
| Bob Smith | bob@example.com | User | Active |
| Carol White | carol@example.com | Editor | Pending |
| David Brown | david@example.com | User | Inactive |
CSS-driven modals with data attributes.
Loading placeholders with wave animation.
Text Skeleton
Avatar Skeleton
Ready-to-use patterns for common HTMX patterns.
Determinate Progress Bar
Click to simulate progress
Indeterminate Progress Bar
Click to animate
Slim Progress Bar
Active Search (HTMX)
| Alice Johnson | alice@example.com |
| Bob Smith | bob@example.com |
| Carol White | carol@example.com |
Load More Button (HTMX)
Uses hx-swap="beforeend" to append items to container
Infinite Scroll Trigger (HTMX)
| Alice Johnson | alice@example.com |
| Bob Smith | bob@example.com |
| Loading more... |
Fixed height with overflow. Auto-loads via hx-trigger="intersect" when sentinel scrolls into view.
Pending Load (HTMX)
Headings, code, blockquotes, figures, and prose.
This is a paragraph with bold and italic text.
This is a blockquote. It's great for quotes.
Inline code example.
.btn {
color: var(--primary);
}
Figures
Native HTML elements that describe their meaning.
Main, Article, Section
This is an article inside a main element.
<main>
<article>
<h3>Title</h3>
<p>Content...</p>
</article>
</main>
Aside (Sidebar)
<aside class="sidebar">
<nav>
<a href="#">Dashboard</a>
<a href="#">Projects</a>
</nav>
</aside>
Figure with Figcaption
<figure>
<img src="...">
<figcaption>Caption</figcaption>
</figure>
Header & Footer
Content goes here.
<header>
<h1>Title</h1>
</header>
<footer>
<p>Copyright</p>
</footer>
Common utility classes.
Spacing
Text
text-primary
text-sm
font-bold
text-center
Flex
Display