Skip to content

Proposal: Use a base set of CSS variables across PureScript resources #147

Open
@thomashoneyman

Description

@thomashoneyman

CSS variables have 95% support on caniuse.com. These variables are particularly useful for theming: a set of variables representing colors, fonts, font sizes, spacing units, and more can be used when styling HTML elements; changing the value of a variable will update values throughout the CSS.

What if we had a set of CSS variables representing the PureScript theme or brand? We could use these variables to implement the CSS across PureScript resources (the homepage, Try PureScript, Pursuit, and so on) and it could be reused by other resources that want to look PureScript-y, like Halogen Storybook or other documentation sites.

Admittedly, the PureScript CSS doesn't change much. But it still seems useful to be able to rely on a consistent base of colors, fonts, sizing, and so on when working on any core PureScript resource or implementing third-party sites. It would also make it easy to support a light / dark theme on core resources if we ever want that.

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