Skip to content

Instantly share code, notes, and snippets.

@starryeyez024
Created August 13, 2020 17:22
Show Gist options
  • Save starryeyez024/35e5485e250b753dc5dda672bbf1854c to your computer and use it in GitHub Desktop.
Save starryeyez024/35e5485e250b753dc5dda672bbf1854c to your computer and use it in GitHub Desktop.
Redefining local CSS custom properties
:host([pfe-priority="secondary"][pfe-color="base"]) {
--pfe-cta--BackgroundColor: transparent;
--pfe-cta--BorderColor: #{pfe-color(ui-base)};
--pfe-cta--Color: #{pfe-color(ui-base)};
--pfe-cta--BackgroundColor--hover: #{pfe-color(ui-base)};
--pfe-cta--BorderColor--hover: #{pfe-color(ui-base)};
--pfe-cta--Color--hover: #{pfe-color(ui-base--text)};
--pfe-cta--BackgroundColor--focus: #{$pfe-cta--BackgroundColor--focus};
--pfe-cta__inner--BorderColor--focus: #{pfe-color(ui-base)};
--pfe-cta--BorderColor--focus: #{pfe-color(ui-base)};
--pfe-cta--Color--focus: #{pfe-color(ui-base)};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment