FIX: Fix css var issues + button :active gradient (PR #10469)

  • Adds ability for published page to use css var() + import the var() definitions
  • Fixes :active gradient swap on buttons in dark mode

GitHub

This will have unexpected side effects for users in a dark OS on a site that has disabled dark mode, the theme will honor this specific rule, but no other dark scheme colors will be used. It’s not a big deal, the active state is very quick and barely visible, but I would prefer not to include this, we should not rely on prefers-color-scheme in regular stylesheets and having this in core would encourage future code readers to use this pattern.

This change also doesn’t fit with the rest of the PR, which addresses custom vars in the published pages endpoint.