axis-twelve
v1.0.1
Published
Build faster, center easier. The 12-column solution. Professional CSS framework with grid, flexbox, centering, and spacing utilities.
Maintainers
Readme
Axis Twelve
Build faster, center easier. The 12-column solution.
Axis Twelve is a professional CSS framework with SCSS support featuring a powerful 12-column grid system, comprehensive flexbox utilities, powerful centering components, and extensive spacing utilities.
Key Features
- 12-Column Grid System - Responsive, flexible, and easy to use
- Complete Flexbox Utilities - Direction, alignment, and gap controls
- Powerful Centering - Multiple methods for perfect alignment
- Extensive Spacing Scale - Named sizes (xs-3xl) and consistent numeric mapping
- Full SCSS Support - Customizable variables and modular architecture
- Responsive Breakpoints - xs, sm, md, lg, xl, xxl
- Ultra-Lightweight - Only 40.6 KB CSS (6.0 KB gzipped) - Significantly optimized
Documentation
Quick Links
- 📖 Interactive Documentation - Full documentation site on GitHub Pages
- Changelog - View all releases and updates
- Scripts & CLI Guide - All available commands (./axis)
- Release Process - How to create releases
Quick Start
1. Installation
Via npm:
npm install axis-twelveVia pnpm:
pnpm install axis-twelveOr use the compiled CSS directly:
<link rel="stylesheet" href="https://unpkg.com/axis-twelve/dist/axis-twelve.css">Then include in your HTML:
<link rel="stylesheet" href="node_modules/axis-twelve/dist/axis-twelve.css">Or if using SCSS imports:
@import "node_modules/axis-twelve/src/scss/style";2. Explore Examples
Open index.html in your browser to see all available examples:
- Complete Feature Demo - All framework features in one showcase
- Grid Layouts - Master the 12-column grid system
- Flexbox Utilities - Learn all alignment options
- Centering Components - Multiple centering methods
- Spacing Utilities - Padding, margin, and gap reference
- Real-World Examples - Practical website layouts
See /examples folder for focused, use-case specific demonstrations.
3. Read Documentation
Visit the /docs folder for complete interactive documentation:
npm start
# Then open http://localhost:3000/docs/Or run the server directly:
pnpm start
# Server runs on http://localhost:3000/Documentation guides:
- Getting Started
- Installation
- Quick Start Guide
- Grid System Reference
- Flexbox Utilities
- Centering Components
- Spacing Utilities
- SCSS Variables
- Responsive Breakpoints
- Best Practices
Folder Structure
axis-twelve/
├── src/scss/ # SCSS source files
├── dist/axis-twelve.css # Compiled minified CSS
├── index.html # Landing page with links to examples
├── examples/ # Focused example files
│ ├── style.css # Shared styles for all examples
│ ├── 00-all-features-demo.html
│ ├── 01-grid-layouts.html
│ ├── 02-flexbox.html
│ ├── 03-centering.html
│ ├── 04-spacing.html
│ └── 05-real-world.html
├── docs/ # Interactive framework documentation
│ ├── index.html
│ ├── getting-started.md
│ ├── grid.md
│ ├── flexbox.md
│ ├── centering.md
│ ├── spacing.md
│ └── *.md # Other framework guides
├── project/ # Project management (development tools)
│ ├── scripts/ # CLI helper scripts
│ │ ├── install-hooks.sh
│ │ ├── publish-npm.sh
│ │ ├── create-release.sh
│ │ └── release-github.sh
│ ├── hooks/ # Git hook definitions
│ │ └── pre-commit
│ └── docs/ # Project documentation
│ ├── SCRIPTS.md # CLI wrapper guide
│ ├── RELEASE.md # Release process
│ └── CHANGELOG.md # Version history
├── axis # CLI wrapper script
└── package.jsonProject Documentation
All project management docs are in project/docs/:
SCRIPTS.md - Complete guide to the
./axisCLI wrapper- Development commands (build, watch, start, lint, format, check)
- Publishing to npm
- Creating releases
- Git hooks management
RELEASE.md - How to create releases and publish
- Manual git releases
- Automated GitHub releases
- Semantic versioning
CHANGELOG.md - Version history and updates
Development
Using the CLI Wrapper
All development commands are available through the axis CLI wrapper:
./axis help # Show all available commands
./axis build # Build CSS
./axis watch # Watch SCSS for changes
./axis start # Start dev server
./axis check # Run quality checksSee project/docs/SCRIPTS.md for complete command reference.
Setup
pnpm installBuild Commands
# Compile SCSS to CSS (production)
./axis build
# Watch SCSS for changes during development
./axis watch
# Development mode (no source maps)
./axis dev
# Start local development server
./axis start
# Server runs on http://localhost:3000/Code Quality
# Check SCSS for style violations
./axis lint
# Auto-fix SCSS style issues
./axis lint:fix
# Format SCSS files with prettier
./axis format
# Run lint + build (quality gate check)
./axis checkPublishing
# Publish to npm (requires NPM_TOKEN in .env)
./axis publishReleases
# Create git tag + dist asset
./axis release
# Automated GitHub release (requires gh CLI)
./axis release:githubSee project/docs/RELEASE.md for detailed release guide.
Run Development Server
./axis startThen visit:
http://localhost:3000/- Landing pagehttp://localhost:3000/examples/- Example fileshttp://localhost:3000/docs/- Documentation
Quick Code Examples
Grid Layout
<div class="grid gap-lg">
<div class="col-6">Half width</div>
<div class="col-6">Half width</div>
</div>
<div class="grid gap-lg">
<div class="col-4">1/3 width</div>
<div class="col-4">1/3 width</div>
<div class="col-4">1/3 width</div>
</div>Flexbox Layouts
<div class="flex justify-center items-center gap-md">
<div>Item 1</div>
<div>Item 2</div>
</div>
<div class="flex flex-column gap-lg">
<div>Stack vertically</div>
<div>With spacing</div>
</div>Centering Content
<!-- Horizontal center -->
<div class="row center">
<div>Centered horizontally</div>
</div>
<!-- Both horizontal and vertical -->
<div class="box center-both">
<div>Centered both ways</div>
</div>
<!-- Column centering -->
<div class="column center">
<div>Item 1</div>
<div>Item 2</div>
</div>Spacing Utilities
<div class="p-lg m-xl">Large padding and margin</div>
<div class="py-sm px-md">Small vertical padding, medium horizontal</div>
<div class="mt-lg mb-sm">Margin top large, margin bottom small</div>Responsive Breakpoints
- xs: 0px (mobile, default)
- sm: 576px (small devices)
- md: 768px (tablets)
- lg: 992px (small desktops)
- xl: 1200px (desktops)
- xxl: 1400px (large desktops)
Use responsive column classes: col-md-6, col-lg-4, etc.
Where to Start
- New to CSS Frameworks? → Start with
/docsdocumentation - Want to See Examples? → Open
index.htmlto browse examples - Ready to Code? → Check
/examplesfor focused, real-world patterns - Customizing? → Edit variables in
src/scss/_variables.scssand rebuild
License
MIT
