Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Compass or Bourbon (or other)? #3

Closed
chriscoyier opened this issue Jul 2, 2013 · 20 comments
Closed

Compass or Bourbon (or other)? #3

chriscoyier opened this issue Jul 2, 2013 · 20 comments

Comments

@chriscoyier
Copy link
Contributor

We kinda have to pick since we really need prefixing help.

@AaronLayton
Copy link

I'm up for Bourbon if it keeps all the prefixing nice and simple

@enjikaka
Copy link

enjikaka commented Jul 2, 2013

Both are great from what I know. I have however only used Bourbon, since it's integrated by default in Prepos, and I was very pleased with it so I'd recommend it.

@jkneb
Copy link

jkneb commented Jul 2, 2013

Does Bourbon handles the correct -prefixes- inside "prefixed keyframes"? Which is the hardest part to deal with.

@chriscoyier
Copy link
Contributor Author

I typically use Compass, but since Compass doesn't have animation/keyframe mixins at the moment in stable I'd lean toward Bourbon. Bourbon is built into CodeKit as well, for contributors wanting to use that.

@KittyGiraudel
Copy link

I personally prefer Compass since both Compass and Sass teams work together (while Bourbon is a side project). But it really doesn't make much difference in the end.

Actually, we should pick the one with the best support for @Keyframes animations.

@sindresorhus
Copy link
Member

Autoprefixer

We shouldn't have to care about prefixes.

@paulirish
Copy link
Member

autoprefixer is certainly my favorite for dealing with prefixes.

That then opens the question on if there is authoring advantage to variables and mixins beyond the prefix work.

edit: there is definitely authoring advantage.

@jkneb
Copy link

jkneb commented Jul 2, 2013

I vote for this.
http://bourbon.io/docs/#keyframes
Looks gorgeous.

@paulirish
Copy link
Member

autoprefixer for those that don't know..

  • it parses your CSS with a real parser
  • it adds the prefixes you need
    • also adds prefixes to values. For example, to calc(1em + 5px) or to property names in transition.
  • it uses caniuse prefix data so it's always up to date on which prefixes you can forget about.
    • it Removes outdated prefixes to clean libraries and legacy code.

We can do a Sass ➡️ autoprefixer workflow, no problem. I think that's a great idea.

@paulirish paulirish reopened this Jul 2, 2013
@enjikaka
Copy link

enjikaka commented Jul 2, 2013

autoprefixer sounds great!

@AaronLayton
Copy link

@paulirish I have no experience with autoprefixer, will this do keyframes aswell?

@KittyGiraudel
Copy link

So basically we just have to write Sass without thinking about prefixes and we're good?

@chriscoyier
Copy link
Contributor Author

autoprefixer sounds good to me too, but I have no experience there. Does that mean we should/need to go Grunt?

@sindresorhus
Copy link
Member

@paulirish
Copy link
Member

So basically we just have to write Sass without thinking about prefixes and we're good?

yes, you give autoprefixer this CSS:
image
and it generates
image

See https://github.com/ai/autoprefixer/tree/master/test/cases for more


grunt

nah not neccessary yet. we may evolve to a workflow that includes grunt, but let's add that barrier to entry when we need to :)

@jkneb
Copy link

jkneb commented Jul 2, 2013

Allright autoprefixer sounds great.

@joeybaker
Copy link

The only issue that I've run into with autoprefixer is sourcemaps. In that I don't know of a way to get both at the same time.

@paulirish
Copy link
Member

The only issue that I've run into with autoprefixer is sourcemaps.

Good call.. That's being tracked here: postcss/autoprefixer#37

@benschwarz
Copy link
Contributor

Yo. Autoprefixer. In master.

@chriscoyier
Copy link
Contributor Author

We moved to Grunt to do it because there was to Guard plugin for autoprefixer. Probably better moving forward anyway.

Autoprefixer is being kinda whack though in what it's prefixing. We need to tweak the config to get it just right.

Will make new thread for that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants