Commit graph

93 commits

Author SHA1 Message Date
Jonathan Reinink
8b3cbbd7a7 Add text smooth utility. 2017-10-03 21:06:12 -04:00
Jonathan Reinink
e5f603bba2 Fix border style issues. 2017-10-02 16:59:18 -04:00
Adam Wathan
0f71f688cf Rename pull helpers to 2017-09-18 17:54:36 -04:00
David Hemphill
8863065b97 Rework Babel setup to be more node-y less browser-y 2017-09-09 10:23:53 -04:00
Jonathan Reinink
8b214a6229 Add .flex-1 utility. 2017-09-05 14:59:33 -04:00
Adam Wathan
2d41a67b29 Add basic set of opacity utilities 2017-09-03 18:26:59 -04:00
Adam Wathan
033522347b Add PostCSS z-index utilities 2017-08-28 09:32:08 -04:00
Adam Wathan
4c2b0a6f69 Make text colors hoverable by default 2017-08-27 21:02:34 -04:00
Adam Wathan
b936532414 Make border colors hoverable by default 2017-08-27 21:01:08 -04:00
Adam Wathan
8163761b7d Make background colors hoverable by default 2017-08-27 20:59:20 -04:00
Adam Wathan
148dac12eb Add PostCSS spacing utilities 2017-08-27 18:03:01 -04:00
Adam Wathan
e9f2e98726 Add PostCSS sizing utilities 2017-08-27 18:03:01 -04:00
Adam Wathan
4c562522d0 Add PostCSS wrap utilities
Renamed a bunch of these, totally up for discussing alternative naming
still.
2017-08-27 18:02:42 -04:00
Adam Wathan
989c68a01b Add PostCSS text style utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
a16ffbae70 Add PostCSS vertical align utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
1d9c36816f Add PostCSS text align utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
4251aa60de Add PostCSS tracking/letter-spacing utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
e88b07c712 Add PostCSS leading utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
f0dda61e76 Add PostCSS text color utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
c9e4652065 Add PostCSS font family utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
58d435ae82 Add PostCSS text weight utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
422cac0733 Add PostCSS text size utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
6967b54ef6 Add PostCSS display utilities 2017-08-27 18:02:42 -04:00
Adam Wathan
cef883b8a1 Remove unused imports 2017-08-27 18:02:41 -04:00
Adam Wathan
46493f0098 Add PostCSS border style utilities 2017-08-27 18:02:41 -04:00
Adam Wathan
c20d971bfa Add PostCSS rounded utilities
.pill is now .rounded-pill by default; we could bake this in as a
mandatory utility but using it as a modifier makes it easier for people
to exclude or change. Not opposed to hard-coding it though.
2017-08-27 18:02:41 -04:00
Adam Wathan
ccc9edf605 Add PostCSS overflow utilities 2017-08-27 18:02:41 -04:00
Adam Wathan
454be69804 Don't kebabCase property names
Because it breaks stuff sadly, like any vendor prefixed properties that
start with `-`.
2017-08-27 18:02:41 -04:00
Adam Wathan
7f506ff041 Refactor shadow generator to map object directly instead of converting to pairs 2017-08-27 18:02:41 -04:00
Adam Wathan
3b93b0e655 Add PostCSS position utilities 2017-08-27 18:02:41 -04:00
Adam Wathan
1c3e36a1df Add PostCSS constrain utilities 2017-08-27 18:02:41 -04:00
Adam Wathan
000eefd609 Don't change case of class names
This is unfortunate but it totally fucks up things that have numbers in
them.
2017-08-27 18:02:41 -04:00
Adam Wathan
d2b2722b2e Simplify backgroundColor generator 2017-08-27 18:02:41 -04:00
Adam Wathan
7ae71315f9 Add PostCSS border color utilities 2017-08-27 18:02:41 -04:00
David Hemphill
2ef01837a9 Convert new stuff to use ES6 modules 2017-08-27 18:02:41 -04:00
Adam Wathan
c57b43a47d Add PostCSS border width utilities 2017-08-27 18:02:41 -04:00
Adam Wathan
a594a861e9 Add background size utilities 2017-08-27 18:02:41 -04:00
Adam Wathan
525146fb32 Format everything uses 2 spaces instead of 4 2017-08-27 18:02:41 -04:00
Adam Wathan
1b1139ec0b Standardize on camelCase module names 2017-08-27 18:02:41 -04:00
Adam Wathan
a3196a5358 Add shadows and flex generators, extract defineClass(es) 2017-08-27 18:02:40 -04:00
Adam Wathan
c04a3b26c6 Add support for mixed "plain color string" and "color map" background defintitions
Lets you do this:

```
  backgroundColors: [
    'blue',
    'purple',
    'pink',
    {
      primary: 'white',
      secondary: 'orange',
    },
  ]
```
2017-08-27 18:02:40 -04:00
Adam Wathan
c84f0ec4b7 Support colors not in map
If you specify a background color that isn't a key in the colors map,
we just assume it's an actual color value and let you use it.
2017-08-27 18:02:40 -04:00
Adam Wathan
8e7b2dc1fa Add basic background color generator
Supports specifying background colors as an array of colors, or an
object where the label is what you want to name that color as a
background utility, and the value is the color to use.

Everything can be specified as either camelCase or kebab-case so you
don't need to quote the shit out of everything but classes will always
be rendered as kebab-case.
2017-08-27 18:02:40 -04:00
Adam Wathan
cacff2ac21 Move Less files
Keep them around for easy reference right now but don't want them in my
JS bizniz.
2017-08-27 18:02:40 -04:00
Adam Wathan
53bec217a8 Remove grid generator file 2017-08-27 18:00:48 -04:00
Adam Wathan
ad36272906 Replace grid with percent width helpers 2017-08-27 18:00:04 -04:00
Adam Wathan
eac5577c5e Remove flex-basis definition from constrain helpers 2017-08-23 14:39:12 -04:00
Adam Wathan
fdcdc97d18 Add border hovers 2017-08-19 10:01:56 -04:00
Adam Wathan
8b515020d8 Use @ instead of hover- 2017-08-18 14:57:38 -04:00
Adam Wathan
1b048a1f10 Make buttons generatable, add text hovers 2017-08-18 14:44:08 -04:00