Start
Link one stylesheet and write plain HTML.
Starter template
Once Iris CSS is installed, this is all a page needs.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="css/iris.min.css">
<title>Hello Iris!</title>
</head>
<body>
<main class="container">
<h1>Hello Iris!</h1>
</main>
</body>
</html>
Key ideas
- Classless first
- Forms, buttons, tables, cards, modals and navigation are styled from plain HTML.
- Optional classes with no prefix
- Short modifiers like
.primary,.outlinedor.largework on most elements. - HTML and ARIA attributes
aria-busy="true"shows a spinner,aria-invalid="true"marks a field with an error,data-tooltipadds a tooltip.- Light and dark mode
- Every color is a
light-dark()pair. Iris follows the system setting, anddata-theme="light"ordata-theme="dark"forces a scheme on the page or on any element. - Your CSS wins
- Every Iris rule sits in a cascade layer, so your own styles override Iris without specificity tricks or
!important. - Customize with variables
- Every value comes from a
--i-custom property. Override it on:rootto change it everywhere, or on one element to change it locally.
Try it
Everything below is plain HTML with no classes.
Subscribe
Next steps
- Classless HTML shows what plain markup looks like.
- Colors and sizes cover the classes you will use most.
- CSS variables and themes explain how to make it your own.