Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/roman01la/postcss-camel-case

PostCSS plugin to convert CSS selector names to camelCase
https://github.com/roman01la/postcss-camel-case

postcss-camel-case postcss-plugins

Last synced: about 2 months ago
JSON representation

PostCSS plugin to convert CSS selector names to camelCase

Awesome Lists containing this project

README

        

# postcss-camel-case
PostCSS plugin to convert CSS selector names to camelCase

Turns `.block_element--modifier` into `.blockElementModifier`. Basically the plugin does convert any class names with `-`, `_` punctuations into `camelCase` style.

## Warnings
Removing `-` and `_` characters from CSS class names may cause naming conflits:
```
.my-class -> .myClass
.my_class -> .myClass
```

## Why?
Because camel cased properties feels more natural in JavaScript. It is mainly built for [CSS Modules](https://github.com/css-modules/css-modules).