Skip to content
This repository was archived by the owner on Oct 15, 2023. It is now read-only.

roman01la/postcss-camel-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

PostCSS plugin to convert CSS selector names to camelCase

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •