You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/index.md
+13-18
Original file line number
Diff line number
Diff line change
@@ -61,30 +61,15 @@ A [ponyfill](https://ponyfill.com/) that provides client-side support for [CSS c
61
61
npm install css-vars-ponyfill
62
62
```
63
63
64
-
```js
65
-
importcssVarsfrom'css-vars-ponyfill';
66
-
67
-
cssVars({
68
-
// Options...
69
-
});
70
-
```
64
+
**CDN**
71
65
72
-
**CDN** ([jsdelivr.com](https://www.jsdelivr.com/) shown, also on [unpkg.com](https://unpkg.com/))
66
+
Available on [jsdelivr](https://www.jsdelivr.com/package/npm/css-vars-ponyfill) (below), [unpkg](https://unpkg.com/browse/css-vars-ponyfill/), and other CDN services that auto-publish npm packages.
!> Note the `@` version lock in the URLs above. This prevents breaking changes in future releases from affecting your project and is therefore the safest method of loading dependencies from a CDN. When a new major version is released, you will need to manually update your CDN URLs by changing the version after the `@` symbol.
88
73
89
74
## Usage
90
75
@@ -131,6 +116,16 @@ div {
131
116
}
132
117
```
133
118
119
+
Call the ponyfill with your preferred [options](#options):
0 commit comments