gullu-css 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,35 +28,18 @@ npm install gullu-css
|
|
|
28
28
|
|
|
29
29
|
Because it's an ES6 module, you can easily drop it into standard HTML, React, Vue, Next.js, or any modern framework.
|
|
30
30
|
|
|
31
|
-
### Vanilla
|
|
32
|
-
|
|
31
|
+
### ⚡ Vanilla HTML (Via CDN)
|
|
32
|
+
The easiest way to get started is to import Gullu CSS straight from `unpkg` as a module directly in your HTML. No build step required!
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
|
-
<!-- Register local NPM package in Import Map -->
|
|
36
|
-
<script type="importmap">
|
|
37
|
-
{
|
|
38
|
-
"imports": {
|
|
39
|
-
"gullu-css": "./node_modules/gullu-css/main.js"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
35
|
<script type="module">
|
|
45
|
-
|
|
46
|
-
import { initEngine } from "gullu-css";
|
|
36
|
+
import { initEngine } from "https://unpkg.com/gullu-css@1.0.1/main.js";
|
|
47
37
|
initEngine();
|
|
48
38
|
</script>
|
|
49
39
|
```
|
|
50
40
|
|
|
51
|
-
|
|
52
|
-
Don't want to use NPM at all? You can load Gullu CSS straight from `unpkg` as a module directly in your HTML!
|
|
41
|
+
---
|
|
53
42
|
|
|
54
|
-
```html
|
|
55
|
-
<script type="module">
|
|
56
|
-
import { initEngine } from "https://unpkg.com/gullu-css@1.0.1/main.js";
|
|
57
|
-
initEngine();
|
|
58
|
-
</script>
|
|
59
|
-
```
|
|
60
43
|
|
|
61
44
|
### React / Next.js
|
|
62
45
|
You can trigger the engine during page mount or context initialization:
|