@jimmyandrademusic/style-dictionary
v0.9.1
Published
Style dictionary for JimmyAndrade.com website
Downloads
64
Maintainers
Readme
Style Dictionary
Install
npm i @jimmyandrademusic/style-dictionary
Use via CDN
Using CSS variables
We recommend using jsDelivery as a CDN.
Through it, you can import the CSS on your webpage like this:
<head>
<link crossorigin="anonymous"
href="https://cdn.jsdelivr.net/npm/@jimmyandrademusic/style-dictionary/dist/variables.css"
referrerpolicy="no-referrer"
rel="stylesheet" />
</head>
Or, if you prefer, you can import it into your CSS file:
@import url("https://cdn.jsdelivr.net/npm/@jimmyandrademusic/style-dictionary/dist/variables.css");
Loading JavaScript via browser
In other situations, a JavaScript file in UMD format can be useful:
<script crossorigin="anonymous"
src="https://cdn.jsdelivr.net/npm/@jimmyandrademusic/style-dictionary/dist/umd/index.min.js">
</script>
Finally, it is possible to obtain a JSON with all properties also through a CDN:
https://cdn.jsdelivr.net/npm/@jimmyandrademusic/style-dictionary/dist/index.json
Alternative CDN
Want to use another CDN? You can try unkpg
:
- CSS: https://unpkg.com/@jimmyandrademusic/style-dictionary/dist/variables.css
- JavaScript UMD: http://unpkg.com/@jimmyandrademusic/style-dictionary
- JSON: https://unpkg.com/@jimmyandrademusic/style-dictionary/dist/index.json