@dmkishi/css-reset 1.3.0 → 1.3.2

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 CHANGED
@@ -4,13 +4,13 @@ CSS Reset
4
4
 
5
5
  Install
6
6
  --------------------------------------------------------------------------------
7
+ ### Add this package to your project
7
8
  ```sh
8
9
  pnpm add @dmkishi/css-reset
9
10
  npm install @dmkishi/css-reset
10
11
  ```
11
12
 
12
- Usage
13
- --------------------------------------------------------------------------------
13
+ ### Add this reset to your CSS
14
14
  CSS imports from `node_modules` requires a bundler such as Vite or
15
15
  [`postcss-import`](https://www.npmjs.com/package/postcss-import).
16
16
 
@@ -18,17 +18,63 @@ CSS imports from `node_modules` requires a bundler such as Vite or
18
18
  @import '@dmkishi/css-reset/dist/reset.css' layer(reset);
19
19
  ```
20
20
 
21
+ Install without a bundler
22
+ --------------------------------------------------------------------------------
23
+ Pick one:
24
+
25
+ - CDN `<link>` (simplest). Load it before your own stylesheet:
26
+ ```html
27
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@dmkishi/css-reset@1.3.2/dist/reset.min.css">
28
+ <link rel="stylesheet" href="styles.css">
29
+ ```
30
+ - CDN `@import` with a layer. Put it before any other rules in your stylesheet:
31
+ ```css
32
+ @import url('https://cdn.jsdelivr.net/npm/@dmkishi/css-reset@1.3.2/dist/reset.min.css') layer(reset);
33
+ ```
34
+ The browser requests the reset only after your stylesheet has downloaded.
35
+ - Copy the file into your project, e.g. download the CDN URL above to
36
+ `vendor/reset.css`. Load it with `<link>` or a relative import:
37
+ ```css
38
+ @import url('vendor/reset.css') layer(reset);
39
+ ```
40
+ - npm without a bundler. This works only if your server publishes `node_modules`;
41
+ otherwise, copy the file:
42
+ ```css
43
+ @import url('/node_modules/@dmkishi/css-reset/dist/reset.css') layer(reset);
44
+ ```
45
+
46
+ ### Notes
47
+ - **Version pinning**: `@1.3.2` locks one exact version, while `@1` follows 1.x
48
+ releases. Use an exact version in production.
49
+ - **Layer order**: `<link>` can't put a stylesheet in a cascade layer; only
50
+ `@import` can. If you use other layers, declare their order first, e.g.
51
+ `@layer reset, base, components;`.
52
+
21
53
  Develop
22
54
  --------------------------------------------------------------------------------
23
- 1. Install: `git clone https://github.com/dmkishi/css-reset.git && pnpm install`
55
+ 1. Install:
56
+ ```sh
57
+ git clone https://github.com/dmkishi/css-reset.git
58
+ cd css-reset
59
+ pnpm install
60
+ ```
24
61
  1. Edit and lint with `pnpm lint`
25
- 1. Update version numbers and changelog and commit
62
+ 1. Update:
63
+ - **README.md**: Version numbers in the CDN URLs and add an entry to the Changelog.
64
+ - **package.json**: Version number.
26
65
  1. Publish: `git push && pnpm publish`
27
66
  - Both actions run the linter and builder as necessary.
28
67
  - If you are not logged in, `pnpm login`
29
68
 
30
69
  Changelog
31
70
  --------------------------------------------------------------------------------
71
+ ### v1.3.2 (2026-11-19)
72
+ - Add instructions for usage without a bundler.
73
+ - Improve Husky script, pre-push.
74
+
75
+ ### v1.3.1 (2026-5-1)
76
+ - Improve README.
77
+
32
78
  ### v1.3.0 (2026-5-1)
33
79
  - Add padding reset to `<ul>`.
34
80
  - Improve README.
package/dist/reset.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @dmkishi/css-reset v1.3.0
2
+ * @dmkishi/css-reset v1.3.2
3
3
  * <https://github.com/dmkishi/css-reset>
4
4
  */
5
5
  /*******************************************************************************
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmkishi/css-reset",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "DM Kishi's custom CSS reset",
5
5
  "homepage": "https://github.com/dmkishi/css-reset",
6
6
  "author": "DM Kishi <dm.kishi@gmail.com>",