Skip to content

Object keys created as UpperCamelCase when converting properties #5

@christowiz

Description

@christowiz

When converting the following CSS the variable properties come out UpperCamelCase.

Note: This is using PostCSS and cssnext.

Source:

:root {
  --header-gray: '#c8c8c8';
  --hover-gold: '#755e1e';
  --link-color: '#8e7329';
}

Result:

root: {
  HeaderGray: '#c8c8c8',
  HoverGold: '#755e1e',
  LinkColor: '#8e7329'
}

Could this be supported or an option to select upper- or lower-case?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions