atm

Atomix

v0.4.6

    1. Home
    2. Styles System
    3. Utilities

Getting Started
  • Introduction
  • Installation
  • Quick Start
  • Migration Guide
  • CLI Reference
Design Tokens
  • Overview
  • All Tokens
  • Colors
  • Spacing
  • Typography
  • Grid
  • Elevation
Styles System
  • Architecture
  • Customization
  • Utilities
  • API Reference
Layouts
  • Grid System
  • Masonry Grid
  • Responsive Patterns
  • Customization
  • Performance
Components
  • Overview
  • Guidelines
  • Accordion
  • AtomixGlass
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • ButtonGroup
  • Card
  • Checkbox
  • Date Picker
  • Dropdown
  • Form
  • Input
  • Modal
  • Progress
  • Radio
  • Rating
  • Select
  • Slider
  • Spinner
  • Tab
  • Textarea
  • Toggle
  • Tooltip
  • Upload
  • Block
  • Callout
  • Countdown
  • Hero
  • Icon
  • List
  • Messages
  • Navbar
  • Pagination
  • Popover
  • Steps
  • SectionIntro
  • Container
  • Grid
  • GridCol
  • Row
  • River
  • MasonryGrid
  • DataTable
  • EdgePanel
  • SideMenu
  • Nav
  • NavItem
  • NavDropdown
  • VirtualizedGrid
Guides
  • Theming Guide
  • AtomixGlass Performance
  • AtomixGlass Theming
  • Theme Studio
  • Devtools
  • Theme Inspector
  • Theme Preview
  • Theme Comparator
  • Live Editor
  • CLI Tool
  • Try Live Editor
  • Try Inspector
  • Try Preview
  • Try Comparator
  • AtomixGlass Playground
Examples
  • Common Patterns
  • Landing Page
API Reference
  • React API
  • JavaScript API
  • CSS API
CLI
  • Overview
  • User Guide
  • API Reference
  • Migration Guide
  • Security Guide
Resources
  • Roadmap
  • Changelog
  • Contributing

Atomix Design System

A comprehensive design system for building modern, accessible, and performant web applications with React and vanilla JavaScript.
GitHubTwitterDiscordNPM

Getting Started

IntroductionInstallationQuick StartTheming Guide

Documentation

ComponentsDesign TokensStyles SystemLayouts

Resources

GitHub Repository↗NPM Package↗Storybook↗API Reference

Community

ContributingRoadmapChangelogReport Issue↗

© 2026 Atomix Design System. Built with ❤️ by the Shohojdhara.

Utility Classes

500+ utility classes for rapid UI development

Utility Classes

Atomix provides a comprehensive set of utility classes for rapid UI development. These classes follow a consistent naming convention and cover spacing, layout, typography, colors, and more.

Naming Convention

Atomix utilities follow a consistent, predictable pattern:

.u-{property}-{value}
.u-{property}-{breakpoint}-{value}
500+ ClassesResponsiveComposableConsistent

Utility Categories

Explore our comprehensive collection of utility classes organized by category. Each category contains a set of related utilities that help you build consistent, responsive designs faster.

Spacing

Margin and padding utilities with 0.25rem increments (0-64)

.u-m-4Margin 1rem (all sides)
.u-p-6Padding 1.5rem (all sides)
.u-mt-8Margin-top 2rem
.u-px-4Padding left & right
.u-mb-0Remove bottom margin

Layout & Flexbox

Display, flexbox, grid, and positioning utilities

.u-flexDisplay flex
.u-gridDisplay grid
.u-justify-betweenSpace between
.u-items-centerVertical center
.u-gap-4Gap 1rem

Typography

Font size, weight, line height, and text utilities

.u-text-lgFont size large (1.125rem)
.u-font-boldFont weight 700
.u-text-centerCenter align text
.u-text-uppercaseTransform uppercase
.u-lh-relaxedLine height 1.625

Colors

Semantic color system for text, backgrounds, and borders

.u-text-primary-emphasisPrimary text
.u-bg-success-subtleSuccess background
.u-border-errorError border
.u-text-secondary-emphasis-emphasisSecondary text

Borders & Radius

Border width, style, radius, and shape utilities

.u-border1px border all sides
.u-border-topTop border only
.u-roundedBorder radius 0.25rem
.u-rounded-lgLarge radius 0.5rem
.u-rounded-circle50% radius (circle)

Sizing

Width, height, min/max dimensions, and viewport units

.u-w-100Width 100%
.u-h-100Height 100%
.u-min-vh-100Min height 100vh
.u-max-w-lgMax width 960px

Position

Positioning, z-index, and placement utilities

.u-relativeRelative positioning
.u-absoluteAbsolute positioning
.u-stickySticky positioning
.u-z-index-10Z-index 10

Visibility

Display, opacity, overflow, and visibility controls

.u-noneDisplay none
.u-opacity-5050% opacity
.u-overflow-hiddenHide overflow
.u-overflow-x-autoHorizontal scroll

Interactivity

Cursor, pointer events, and user select utilities

.u-cursor-pointerPointer cursor
.u-pointer-events-noneDisable pointer events
.u-user-select-nonePrevent text selection
.u-pr-autoEnable pointer events

Effects

Shadows, opacity, blend modes, and filter utilities

.u-shadow-smSmall shadow
.u-shadow-lgLarge shadow
.u-blur-smSmall blur effect
.u-grayscaleGrayscale filter

Responsive Utilities

All utilities support responsive breakpoints, allowing you to create adaptive designs that work across all device sizes. Simply prefix any utility with a breakpoint name to apply it only at that breakpoint and above.

Breakpoint Prefixes

All utilities support responsive breakpoints:

PrefixMin WidthExample
(none)0px.u-flex
.u-sm-640px.u-sm-d-block
.u-md-768px.u-md-grid-cols-2
.u-lg-1024px.u-lg-grid-cols-3
.u-xl-1280px.u-xl-p-8

Usage Examples

See how to combine utility classes to create common UI patterns and layouts.

Responsive Grid

<div class="u-grid u-grid-cols-1 
     u-md-grid-cols-2 
     u-lg-grid-cols-3 
     u-gap-4">
  <div>Item 1</div>
  <div>Item 2</div>
  <div>Item 3</div>
</div>

Flexbox Layout

<div class="u-flex 
     u-justify-between 
     u-items-center 
     u-gap-4 u-p-4">
  <span>Left</span>
  <span>Right</span>
</div>

Best Practices

Compose utilities - Combine multiple classes for complex layouts

Mobile-first - Start with base classes, add breakpoint modifiers

Semantic colors - Use emphasis variants (subtle, emphasis) for consistency

Spacing scale - Use consistent spacing values (0, 1, 2, 3, 4, 6, 8, 10, 12, 16, 20, 24, 32, 48, 64)

Performance - Avoid excessive nesting and redundant classes

Important Notes

Specificity - Utility classes have high specificity (0,2,0) to override component styles when needed

!important - Most utilities use !important to ensure consistent behavior

Customization - Modify the utility scale in your theme configuration