DEV Community

PostCSS Functional CSS Plugin. Generate Functional CSS with ease.

Eduard Pochtar πŸ‘¨β€πŸ’» on January 23, 2019

If you like functional css, if you would like to generate it with ease, if you would like to control the output, then this plugin is for you. ...
Collapse
 
equinusocio profile image
Mattia Astorino

Why i should put tons of css hacks in my css?

Collapse
 
iamfrntdv profile image
Eduard Pochtar πŸ‘¨β€πŸ’»

What do you mean by a css hack in this case?

Collapse
 
equinusocio profile image
Mattia Astorino

You should not put special characters inside class selectors. Every symbol you use like :@ etc is mus be escaped with \ to avoid parser errors. So in fact it’s not valid css and if vendors change their css parser you might need to rewrite all.

Thread Thread
 
iamfrntdv profile image
Eduard Pochtar πŸ‘¨β€πŸ’»

it's just an example, you can use what you prefer, that's why there is a config.)

But it's a valid class in html... ;)
You can even use emojis in your class names, because why not?)

Thread Thread
 
equinusocio profile image
Mattia Astorino • Edited

Is a common practice to use not valid characters in functional css (or acss). It’s not just about this example. Nothing personal. Btw, emoji are valid characters for css selectors, symbols aren’t .

Thread Thread
 
iamfrntdv profile image
Eduard Pochtar πŸ‘¨β€πŸ’»

what separator do you suggest?

Thread Thread
 
equinusocio profile image
Mattia Astorino

Any valid charcter that doesn’t require escaping

Thread Thread
 
iamfrntdv profile image
Eduard Pochtar πŸ‘¨β€πŸ’»

ok, I'll update example here, on github and later on npm.

Collapse
 
gorango profile image
Goran Spasojevic

This is pretty dope.

When do you think you'll be close to Tailwind with your features?

Is there a roadmap? I see you're light on issues on gh.. what's the best way to contribute?

Collapse
 
iamfrntdv profile image
Eduard Pochtar πŸ‘¨β€πŸ’»

I've started to work on this plugin not so long ago. So I started with those features that I thought are more important.

When do I think I'll be close to Tailwind? It depends on many things. But to be honest I don't know. If I will get some help at list with desired features, I'll be able to go faster with that. For now I plan to release from one to several features a week.

The best way to contribute is to open an issue on gh and discus. Pull requests are also welcomed. I'm opened to any ideas that will improve the plugin.