Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

[Feature request] Option for adding prefix/suffix to custom property names #217

Open

Description

@SevenOutman

I'm writing styles for a react component library and we're going to adopt custom properties. One thing I'm worrying is that global custom properties defined in my library may pollute those in the user application. One possible solution is adding a unique prefix for every custom properties in my library, e.g. --btn-bg -> --rs-btn-bg. So I wonder if I can have this option that allow adding prefixes/suffixes.

API Proposal

renameProperties: { test: RegExp, handler(originalName: string) => string }

Allows user to rename properties that matches the pattern they want.

prefix: string/suffix: string

Short for predefined renaming rules with '*' test pattern.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions