csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 457 forks source link

CSS custom properties (aka variables) #460

Closed jhnns closed 5 years ago

jhnns commented 8 years ago

First of all: Thanks for this awesome tool. I use it every day :+1:

Is there a way to specify where to put all CSS custom properties? For instance, I would like to put all custom properties at the end of the property list:

.button {
    height: 2rem;
    --button-background-color: hotpink;
    padding: 0.2rem;
}

should be reformatted like

.button {
    height: 2rem;
    padding: 0.2rem;
    --button-background-color: hotpink;
}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

tonyganch commented 8 years ago

Hey @jhnns! Unfortunately, currently there is no way to specify order of css variables. But I think it's worth implementing, so I'll keep the issue open.

jhnns commented 8 years ago

Nice! 👍

beingmrkenny commented 8 years ago

Came here to raise this specific issue. Would be very handy to make sure to specify how native CSS Variables should be sorted.

jdalton commented 5 years ago

Hi All!

I'm closing this because unless a PR is created it won't likely be addressed. If you feel strongly about this request I encourage you to dig in and submit a PR 😸