Skip to content

CSS custom properties set color modes via a class selector #257

Description

@alex-page

As mentioned in #235 (comment) it would be nice to have a way to set color modes via a css class.

colors: {
    default: {
        text: '#000',
        background: '#fff',
        primary: '#07c',
        secondary: '#05a',
        accent: '#609',
        muted: '#f6f6f6',
    },
    dark: { ... },
    extraDark: { ... },
    pink: { ... }
},
<body>
<body class="dark">
<body class="pink">
<body class="extra-dark">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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