Navigation: uCss > Source > Modules > Base > HTML
Modules: Config | Base | Layout | Theming | Typography | Patterns | Utilities
The Semantic Skeleton. A classless CSS engine that makes raw HTML look beautiful by default. It handles vertical rhythm ("Smart Flow"), typographic hierarchy, and interactive states without a single class name.
The HTML Submodule is the "Reset + Normalize + Typography" layer.
<h1> is automatically Bold and sized fluidly via --t-fs.<a>, <input>, <button>) get accessible focus rings by default.--p).Most frameworks require you to add classes to everything.
<h1 class="text-3xl font-bold mb-4">.
uCss believes HTML is UI.
You should be able to dump a raw Markdown file into a page, and it should look perfect.
We use a lobotomized owl selector (* + *) strategy, but smarter.
0.75em).1em). (More space before a new section).<div class="sf"> (Start Flow).<article class="sf">
<h1>My Post</h1>
<p>Intro...</p>
<ul>
<li>Point 1</li>
<li>Point 2</li>
</ul>
</article>
| File | Full (Raw) | Clean | Min | Gzip | Brotli |
|---|---|---|---|---|---|
html.css (Aggregator) |
19 KB | 17 KB | 15 KB | 3.8 KB | 3.3 KB |
flow.css |
- | - | - | - | - |
reset.css |
- | - | - | - | - |
See Base Module for installation. This submodule is included in base.css.
| File | Description | Download |
|---|---|---|
reset.css |
Normalization. Focus rings and box sizing. | src |
flow.css |
Rhythm. The Smart Flow engine logic. | src |
typography.css |
Type. Default styles for H1-H6, P, Blockquote. | src |
lists.css |
Markers. Styling for UL/OL/DL. | src |
The engine watches the relationships between elements.
It doesn't just say margin-bottom: 20px.
It says: "If a Paragraph is followed by a List, add Space. If a Heading is followed by a Paragraph, add less Space."
We map standard HTML tags to our variable system.
<h1> -> --t-fs--s (Small Title).<h2> -> --t-fs--xs (Extra Small Title).<small> -> 0.875em.<code> -> font-family: monospace..sf): Used for Content (Blog posts, Legal pages). Turning this ON enables vertical margins..s): Used for Apps (Dashboards, Navbars). Turning this ON (or default) removes vertical margins so you can control layout with Flexbox/Grid explicitly.| Tag | Default | Variable |
|---|---|---|
<h1> |
2.625rem (Fluid) | --h-fs |
<p> |
65ch width | --flow-max-width |
<a> |
Underlined | --link |
<blockquote> |
Border Left | --bq-bd-c |
<hr> |
1px Line | --hr-c |
| Class | Name | Behavior |
|---|---|---|
.sf |
Start Flow | Enables vertical rhythm. |
.s |
Stop Flow | Disables vertical rhythm (sets vars to 0). |
| Class | Description |
|---|---|
.cl |
Clear List. Removes bullets and padding. |
If you are using WordPress or a headless CMS:
the_content() in .sf (Smart Flow).<div class="content sf">
{post.body}
</div>
If you want ALL H1s to be Massive:
:root {
--h1-fs: var(--t-fs--xxl);
}
If spacing looks wrong:
margin-block-start.0, check if you are inside a .s container..sf.Navigation: uCss > Source > Modules > Base > HTML
Modules: Config | Base | Layout | Theming | Typography | Patterns | Utilities
License: MPL-2.0 Copyright: Β© 2025 Shukhrat (Alive π) β€» UNQA
src/lib/
βββ config/ # 1. CONFIGURATION (The Brain)
β βββ root/ # - Semantic Modules
β β βββ colors.css # - Palettes & Themes
β β βββ typography.css # - Fonts & Scales
β β βββ layout.css # - Radius & Spacing
β β βββ patterns.css # - Component Vars
β βββ adapters/ # - CMS Adapters
β β βββ blocksy.css # - Blocksy Theme
β β βββ gutenberg.css # - WordPress Block Editor
β βββ root.css # - Entry Point
β
βββ base/ # 2. BASE (The Foundation)
β βββ html/ # - HTML Engine <== YOU ARE HERE
β β βββ reset.css # - Normalization
β β βββ typography.css # - Text Defaults
β β βββ flow.css # - Smart Flow Engine
β β βββ lists.css # - List Styles
β β βββ forms.css # - Input Styling
β β βββ helpers.css # - HTML Utilities
β βββ html.css # - Entry Point
β
βββ patterns/ # 3. PATTERNS (The Components)
β βββ button/ # - Atomic Component
β β βββ base.css
β β βββ group.css
β βββ card/ # - Card Component
β β βββ base.css
β β βββ content.css # - Slots & Padding
β β βββ media.css # - Full-bleed Media
β β βββ subgrid.css # - Subgrid Support
β βββ button.css # - Aggregator
β βββ card.css # - Aggregator
β βββ media.css # - Media Wrapper
β βββ link.css # - Link Wrapper
β βββ patterns.css # - Entry Point
β
βββ layout/ # 4. LAYOUT (The Skeleton)
β βββ grid/ # - Grid Engine
β β βββ base.css # - Core Logic
β β βββ columns.css # - Presets
β β βββ subgrid.css # - Smart Grid
β β βββ recipes.css # - Smart Logic (.masonry .g-row)
β β βββ item.css # - Child Logic
β βββ flex/ # - Flex Engine
β β βββ base.css # - Core Logic
β β βββ alignment.css # - Alignment Tools
β β βββ gaps.css # - Smart Gaps
β β βββ item.css # - Child Logic
β βββ container.css # - Container Queries (.c)
β βββ flex.css # - Entry Point
β βββ grid.css # - Entry Point
β βββ section.css # - Structural Layout
β
βββ theming/ # 5. THEMING (The Skin)
β βββ set.css
β βββ overlay.css
β
βββ typography/ # 6. TYPOGRAPHY (The Voice)
β βββ title.css
β βββ text.css
β βββ text-align.css
β
βββ utilities/ # 7. UTILITIES (The Tools)
βββ display.css
βββ position.css
βββ overflow.css
βββ margin.css
βββ padding.css
βββ radius.css
βββ size.css # - Size Utilities
βββ blur.css
βββ utilities.css