Features Videos Help About Updates
Menu Buy Now

Nib

First Steps:
Getting Started
Live-Reload Browsers
Browser Sync
Set Language Options
Set Output Paths & Action
Second Steps:
Defaults For New Projects
Build Your Project
Set Target Browsers
Stuff To Know:
CodeKit + Git
Troubleshooting
License Recovery
PostCSS Tools:
Autoprefixer
PurgeCSS
Custom PostCSS Plugins
Other Tools:
npm
Babel — (JS Transpiler)
Terser — (JS Minifier)
Rollup — (JS Bundler)
Cache-Buster
HTML-Minifier
LightningCSS
Bless
Languages:
Sass
Less
Stylus
JavaScript
CoffeeScript
TypeScript
Pug
Haml
Slim
Kit
Markdown
JSON
Image Optimizers:
WebP
PNG
JPEG
SVG
GIF
Frameworks:
CodeKit Frameworks
Tailwind
Bootstrap
Bourbon
Bitters
Zurb Foundation
Susy
Nib
Jeet
Syntax Checkers:
ESLint
Advanced:
Hooks
Environment Variables
Adding Custom Languages
Team Workflows
Scripting CodeKit
Editor Plugins:
Nova
Atom
Sublime Text
Coda 2
More
Read-Only Mode
Upgrading From 2.0
FAQ

What's Nib?

Nib is a CSS3 mixin library for the Stylus language. Read the official documentation for details.


Using Nib

Just add this line to the top of your main Stylus stylesheet, then save:

@import 'nib'
That's It?

Yes. Just start using Nib features in your Stylus file. You can even copy the import statement from the Nib category of Project Settings if you're feeling lazy:

a screenshot of the Nib category of Project Settings in the CodeKit window
How Does The Magic Work?

CodeKit contains a bundled copy of Nib. When the app sees the above @import statement in your stylesheet, CodeKit tells the Stylus compiler where it can find Nib's files, even though they aren't in your project.


Note: Gradient PNGs

For background gradients, Nib can create fallback PNG images for compatibility with older browsers that do not support CSS3 gradient syntax. This feature is not available in CodeKit for two reasons:

  1. All browsers in use today understand CSS3 gradients.
  2. This feature requires that you install special software libraries on your Mac.

Made in San Diego, CA

Follow the Developer on Twitter

Email Support

Report a Bug

Privacy Policy