UIKit Playground
Load Examples:
Live Preview:
Note: UIKit components require UIKit JS for interactivity. The preview includes UIKit CSS & JS from CDN.
Chapter 1Framework Foundations

UIKit CSS Introduction & Architecture

UIKit is an ultra-lightweight, modular front-end framework engineered by YOOtheme to deliver fast, visually striking web experiences. It bridges the gap between atomic CSS utilities and fully styled component frameworks.

What Makes UIKit Architecture Unique?

Unlike traditional CSS libraries that require heavy overriding or complex configuration scripts, UIKit adheres to clean Scandinavian design principles. It provides high-contrast typography, refined borders, and subtle shadow elevations out of the box, while remaining modular enough to customize completely through Sass and Less variables.

Every visual element in UIKit uses an isolated namespace prefix (uk-*), preventing CSS naming collisions when embedding widgets into existing legacy websites or third-party CMS platforms.

Core Modular Components

1
Layout & Scaffolding

Grid, Section, Container, Flex, and Column utilities for structured responsive page architecture.

uk-grid, uk-container, uk-section, uk-flex
2
Navigation & Menus

Navbar, Subnav, Breadcrumb, Pagination, Dotnav, and Slidenav for seamless user journeys.

uk-navbar, uk-subnav, uk-breadcrumb, uk-pagination
3
Interactive Components

Modal dialogs, Dropdowns, Offcanvas drawers, Lightbox galleries, and Accordions.

uk-modal, uk-dropdown, uk-offcanvas, uk-accordion
4
Micro-Interactions & Motion

Scrollspy animations, Sticky positioning, Parallax effects, and Smooth Scroll triggers.

uk-scrollspy, uk-sticky, uk-parallax, uk-scroll

UIKit vs Leading Frameworks: Side-by-Side Comparison

FeatureUIKitBootstrapBulma
Minified Bundle Size~120KB~200KB~80KB
Component Variety40+ Rich Modules30+ Components35+ Components
JS DependenciesPure Vanilla JS (0 dependencies)Pure Vanilla JSNone (CSS Only)
Icon SystemNative dynamic SVG iconsExternal Bootstrap IconsRequires FontAwesome
Animation SuiteBuilt-in Scrollspy, ParallaxBasic transitions onlyMinimal transitions

Declarative HTML Data Attribute Syntax

In UIKit, dynamic components are invoked by attaching custom HTML5 data attributes starting with uk-*. You do not need to write custom JavaScript event listeners to instantiate accordions or modals:

<!-- Trigger Button -->
<button class="uk-button uk-button-default" uk-toggle="target: #my-modal">
  Open Modal
</button>

<!-- Modal Dialog Component -->
<div id="my-modal" uk-modal>
  <div class="uk-modal-dialog uk-modal-body">
    <h2 class="uk-modal-title">UIKit Interactive Dialog</h2>
    <p>This modal is fully managed by UIKit's zero-dependency JavaScript engine!</p>
    <button class="uk-modal-close-default" type="button" uk-close></button>
  </div>
</div>

Next Step: Installation & Setup

Learn how to install UIKit via CDN, NPM, and configure custom Sass builds for your web application.

Explore Related Tools

Hand-picked utilities and calculators related to this tool.

Related Tools