4079 Commits

Author SHA1 Message Date
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
2759872ce0 Convert all property values to strings
Allows using unquoted numeric values. Tricky to test because only
breaks when trying to run the whole thing through cssnext in the full
chain. Will figure it out later :)
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
20eb5adb8f Fix grey scale color names 2017-08-27 18:02:41 -04:00
Adam Wathan
36b8878c14 Switch remaining modules to ES6 2017-08-27 18:02:41 -04:00
Adam Wathan
baeb02ebb7 Don't normalize color names on look up 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
David Hemphill
e375d9caae Add a sublime project file to hide /lib from searches 2017-08-27 18:02:41 -04:00
David Hemphill
19068596f4 Add watch task 2017-08-27 18:02:41 -04:00
David Hemphill
ccbe282a76 speed up build using babel-node instead of manually babelifying 2017-08-27 18:02:41 -04:00
David Hemphill
3ceba8ef52 fix tests and switch them to es6 syntax 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
Adam Wathan
9d3f26a50e Hide more finished Less files 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
c6784117ad Move converted Less files to more easily keep track of what's left 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
d7d21f9f31 Replace responsive at-rules in a separate step 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
94be330cde Dup tailwind dependencies into docs, remove extra cssnext plugin 2017-08-27 18:02:41 -04:00
Adam Wathan
882f391bd6 Add browserslist config to avoid rem -> px fallback generation 2017-08-27 18:02:41 -04:00
Adam Wathan
1e1d45e092 Break Tailwind out into 3 private plugins, bake in cssnext and stylefmt 2017-08-27 18:02:41 -04:00
Adam Wathan
b33c76efe4 Switch to two spaces in build.js; tweak formatting 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
fc6ae8d07a Don't kebabCase property values in defineClass 2017-08-27 18:02:41 -04:00
David Hemphill
444da7577f Remove temporary variable 2017-08-27 18:02:41 -04:00
David Hemphill
9302d3213f Clean up commented lines 2017-08-27 18:02:41 -04:00
David Hemphill
bd1766a020 Test define-class and define-classes functions 2017-08-27 18:02:41 -04:00
David Hemphill
aa46fb9211 Restructure and add build process 2017-08-27 18:02:41 -04:00
Adam Wathan
0876d2ac1c Extract function for cloning nodes 2017-08-27 18:02:41 -04:00
Adam Wathan
01e920dccf WIP 2017-08-27 18:02:41 -04:00
Adam Wathan
f42bb0b2bc Combine rulesets from all matching mixins 2017-08-27 18:02:40 -04:00
Adam Wathan
308499dcad Always generate responsive rules at end of stylesheet 2017-08-27 18:02:40 -04:00
Adam Wathan
a3196a5358 Add shadows and flex generators, extract defineClass(es) 2017-08-27 18:02:40 -04:00
Adam Wathan
fbcda827c2 Throw better error if no class found for mixin 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