atm

Atomix

v0.4.6

    1. Home
    2. Styles System
    3. API Reference

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.

API Reference

Complete technical reference for SCSS variables, mixins, and functions

API Documentation

Comprehensive reference for all CSS classes, custom properties, and mixins available in Atomix.

SCSS Variables

Comprehensive set of SCSS variables for customization

ColorsSpacingTypographyBreakpoints
// Color scales (1-10)
$primary-6: #7c3aed;  // Base
$red-6: #ef4444;
$green-6: #22c55e;
$blue-6: #3b82f6;
$gray-6: #6b7280;

// Spacing
$spacer: 0.25rem;
$spacing-4: 1rem;

// Typography
$font-family-base: sans-serif;
$font-size-base: 1rem;

SCSS Mixins

Responsive Breakpoints

Media query mixins for responsive design

@include media-breakpoint-up(md) {
  // Styles for medium and up
}

Focus Ring

Accessible focus styles

@include focus-ring();
@include focus-ring-primary();

Utility Generator

Generate custom utility classes

@include generate-utility($utility);

SCSS Functions

Color Functions

Access and manipulate colors

color('primary', 6);
tint($primary, 20%);
shade($primary, 20%);

Spacing Functions

Calculate spacing values

space(4);  // 1rem
space(8);  // 2rem

Breakpoint Functions

Get breakpoint values

breakpoint-min('md');
breakpoint-max('lg');

CSS Custom Properties

Color Properties

Runtime color customization

:root {
  --atomix-primary: #7c3aed;
  --atomix-success: #22c55e;
  --atomix-error: #ef4444;
}

Theme Switching

Dynamic theme changes

// JavaScript
document.documentElement
  .setAttribute('data-theme', 'dark');

Usage Example

Combining SCSS and CSS custom properties:

// SCSS
.c-button {
  --btn-bg: #{$primary-6};
  background: var(--btn-bg);
  
  @include media-breakpoint-up(md) {
    padding: space(6);
  }
}