Skip to content

Remove unnecessary CSS if dynamic theme switcher disabled #7

Description

@ebkalderon

Currently, we unconditionally bake in all Terminus color schemes into our generated style.css regardless of whether extra.color_scheme_switcher is set to true or not. If the dynamic theme switcher isn't enabled in the site configuration, this is incredibly wasteful. Ideally, if the site configuration doesn't turn on dynamic color scheme switching, the generated style.css should only include the CSS variables for only one color scheme.

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions