legacy-paperclip icon indicating copy to clipboard operation
legacy-paperclip copied to clipboard

have some way to pull out css variables exported at the root level

Open crcn opened this issue 3 years ago • 0 comments

<style>
  :root {
    --color-background-red: red;
  }
</style>
import { vars } from "./styles.pc";

vars["--color-background-red"];

Considerations

  • nested style selectors changing var colors

crcn avatar Jan 03 '22 16:01 crcn