Skip to content

Ability to write full path to a component's file in className #209

@rifler

Description

@rifler

Hi there!

Our common pattern is to write template in index.tsx (or view.tsx) and styles in styles.tsx. So the most common component dir structure looks like:
client/components/AwesomeComponent:

  • index.tsx
  • styles.tsx

That's why classes looks like styles__Header-sc-1ei6mxn-18 and you can't easily identify what Header is it, from Component1/styles.tsx or from Component2/styles.tsx. It would be great for us to write full path to a file from cwd in className, like so client_components_component1_styles__Header-sc-1ei6mxn-18.

What do you think?

btw we absolutely love styled components

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions