The System
OmniCSS Installation
https://cdn.jsdelivr.net/gh/skpaul/omnicss@14.0.7/omni.min.css
https://cdn.jsdelivr.net/gh/skpaul/omnicss@14.0.7/omni.js
Container
System-Based Dark & Light Themes
@media (prefers-color-scheme: dark).
No JavaScript or manual toggles required—just pure CSS that respects your OS settings.
Example:
@media (prefers-color-scheme: dark) { :root { --primary-surface-bg: #292a2d; }}
Responsive Breakpoints & Media Queries
OmniCSS uses a desktop approach with six responsive breakpoints. Each breakpoint has corresponding utility class suffixes and Sass mixins for custom styling.
Breakpoint Values
min-width: 1400px
min-width: 1200px
max-width: 992px
max-width: 768px
max-width: 576px
max-width: 480px
Responsive Utility Class Suffixes
Append breakpoint suffixes to any utility class to apply styles at specific screen sizes. Examples:
.fs-20-smFont size 2.0rem on small devices
.pa-10-mdPadding 1.0rem on medium devices
.mb-20-xsMargin bottom 2.0rem on extra small devices
.grid.fr3-sm3-column grid on small devices
.grid.fr1-xsSingle column on extra small devices
.hide-mdHide element on medium devices and below
Sass Mixins for Custom Styles
Use these mixins in your custom SCSS to write responsive styles:
Available Mixins
@include xl { ... }- Extra Large devices (min-width: 1400px)@include lg { ... }- Large devices (min-width: 1200px)@include md { ... }- Medium devices (max-width: 992px)@include sm { ... }- Small devices (max-width: 768px)@include xs { ... }- Extra Small devices (max-width: 576px)@include us { ... }- Ultra Small devices (max-width: 480px)
Surface Hierarchy
- Purpose: Define visual layering (z-axis depth) for UI containers.
- Use Case: Backgrounds, cards, panels, and structural elements.
Color System
OmniCSS has the following color system-
-
Brand/Functional Colors
- Primary Brand Color
- Secondary Brand Color
-
Semantic Colors
- Success
- Caution
- Info
- Critical
-
Surface Hierarchy Colors
See more details and examples in the respective section below.