Getting Started
Add Semanticus CSS to your project either via CDN, manual download, or importing from Node.
Install
Include these lines directly from a CDN in your HTML <head>:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@goncalvesjoao/semanticus-css@0.1.0/dist/semanticus.css">
<!-- costumize it with a palette or size variation if needed -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@goncalvesjoao/semanticus-css@0.1.0/dist/semanticus.palette.blue.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@goncalvesjoao/semanticus-css@0.1.0/dist/semanticus.size.slim.css">Looking for alternative color palettes or sizing options? Check out the Palettes & Sizes guide.
Usage
Semanticus CSS is built on three principles:
1. Semantic Styling
Beautiful default styles for plain ARIA-centric HTML — no classes needed. See the Semantic Styling guide for more details.
<article>
<h1>Hello World</h1>
<p>This is a paragraph with <strong>bold</strong> and <em>italic</em> text.</p>
<button>Click me</button>
</article>
2. Variants
Minimal set of CSS classes that add visual variation to the Semantic Styling. See the Variants guide for more details.
<button class="ghost">Ghost</button>
<button class="secondary">Secondary</button>
<button class="contrast">Contrast</button>
3. Utilities
Utility classes for spacing, layout, colors, and more — adapted to the Semantic Styling and Variants values for a consistent design. See the Utilities guide for more details.
<footer class="py-4 text-center text-bg-contrast-subtle">
<p class="mb-0">Star us on GitHub!</p>
</footer>
LandingPage example
Here's a starter HTML template using semantic styling, its variants, and utilities:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="semanticus.css">
</head>
<body>
<header class="container">
<nav>
<ul>
<li><a href="#">Home</a></li>
</ul>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main class="container">
<hgroup>
<h1>Welcome to Semanticus CSS</h1>
<p>A lightweight CSS framework for modern web development.</p>
</hgroup>
<button class="secondary">Get Started</button>
</main>
<footer class="mt-5 py-4 text-center text-bg-contrast-subtle">
<p class="mb-0">© 2026 <your brand>. All rights reserved.</p>
</footer>
</body>
</html>