Armory is an oocss ui framework written in stylus that supports multiple skins or armors.
Should You Use Armory
Armory is for you if:
- You like to pick and choose your UI components.
- You don't like surprises. It won't overwrite default selectors.
- You want to edit it. (And enjoy doing so)
- You find crafting your site from different components fun and exciting
- You like stylus.
Armory is not for you if:
- You don't like typing. It's verbose.
- You want to just drop it into your website and have it work.
- You want javascript components.
- You don't like stylus.
Armory tries to adhere as closely to object oriented css principles as much as possible. It was created out of frustration for other all-in-one solutions such as bootstrap that are difficult to extend. Dropping armory into your site won't change a thing unless you tell it to. Every armory component is opt-in only. Seriously. This includes dropdowns, buttons and yes... even typography and links.
In order to style a link, you would write:
<a class="link">a link</a>
Likewise, if you wanted to add some text:
<p class="text">some text</p>
The upside to this approach is that later on if you decide that you want to create a new link class, you don't need to out-specify the css statements from some other selector.
Because everything in armory is opt-in, you can simply leave out the class:
<a class="new-link">new link</a>
Separation of Structure from Skin
Armory takes the preceeding examples a bit further by guarenteeing that you can attach a class to any element. This means that you could apply the "text" class to a link and it would look exactly the same as if it were attached to a paragraph or blockquote. This is possible because armory uses a very aggressive reset style sheet. Every element is the same out of the box. No suprises or random elements that are underlined or italicized.
If you write css for one element then it's guarenteed to work for all of them. This is good news, go write your semantic html, comeback later and attach some classes to make it look right.
Separation of Containers and Content
This is a fancy way of saying that armory avoids descendant selectors. This means you need to type more, sorry. Yes... it would be easier if you didn't have to assign all those nested elements an additional class. However, you'll thank armory if you ever have to refactor the html and add an extra container element that would have normally screwed up the descendant selectors.