Created
June 18, 2020 00:06
-
-
Save tomhodgins/425fd7c8a6699ba78d21e49849a27037 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@--custom-functions { | |
--example: 'https://path/to/some/module.js'; | |
--currency: num => | |
Number(num).toLocaleString('en', { | |
style: 'currency', | |
currency: 'USD' | |
}) | |
; | |
} | |
html { | |
background-color: --example(#fff); | |
} | |
html::before { | |
content: --currency(50); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment