Blackjack is a collection of mixins, functions and helpers written in Stylus to make your front-end development easier and faster.
Blackjack is not a flattened CSS file that you include with your source. It's meant for advanced developers who understand the power of a CSS preprocessor.
Blackjack is written in Stylus and meant to be included directly into your Stylus source. By default, Blackjack will add some sensible resets to certain HTML elements, but this is meant as a starting point rather than an end-all (this is not Bootstrap). You can configure Blackjack to a point where it doesn't spit out any opinionated CSS on its own other than basic resets.
Mix it in
When you include Blackjack, you have the power to mixin parts you like and leave out the parts you don't.
More importantly, behavior stays in your stylesheets instead of leaking into your markup. Keep your HTML clean by naming your elements one time and mixing in behavior on that class. This closely fits BEM style of writing CSS.
Absorb what is useful. Discard what is not. Add what is uniquely your own.
Bruce Lee
Usage
To get the full power out of Blackjack, you must understand a few CSS preprocessor concepts.
- Mixins and block mixins
- @extend and specifically extending placeholder selectors
- Named Parameters
Features
- Doesn't overload your CSS with opinionated resets.
- Creates robust grid rows.
- Helper for creating breakpoints.
- Converts tables into a flexbox layout.
- A smart starting point for buttons, forms, and other commonly used UI.
- Don't battle a CSS framework to make your product the way you want it. Mix in Blackjack when it saves you time, ignore it when it doesn't!