Skip to content

css: migrate from styled comps to plan css or css-modules #792

@jorgeorpinel

Description

@jorgeorpinel

Extracted from #776 (comment)

Our styled components tend to be defined after the exported component in each file (pages/, src/) so it could be confusing to find them in the JSX of previously defined components.

However we want to keep them in the bottom of each file given their strange code format. The idea then is to RENAME them so it's more obvious that they are styled components. My proposal is to simply add the name of the HTML tag they use in CamelCase. For example a Container component that styles a div tag would be renamed ContainerDiv and look like this in JSX.

UPDATE: Probably going for extracting and not renaming. See #792 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: websiteArea: websitetype: enhancementSomething is not clear, small updates, improvement suggestions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions