hexo-design-cards 0.1.0 → 0.1.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.
@@ -0,0 +1,48 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ['v*']
6
+
7
+ permissions:
8
+ contents: write
9
+ id-token: write
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ node-version: [18, 20, 22]
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: ${{ matrix.node-version }}
22
+ - run: npm install
23
+ - run: npm test
24
+
25
+ release:
26
+ needs: test
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+
31
+ - name: Create GitHub Release
32
+ uses: softprops/action-gh-release@v2
33
+ with:
34
+ generate_release_notes: true
35
+
36
+ publish:
37
+ needs: test
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+ - uses: actions/setup-node@v4
42
+ with:
43
+ node-version: 22
44
+ registry-url: https://registry.npmjs.org
45
+ - run: npm install
46
+ - run: npm publish --provenance --access public
47
+ env:
48
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.3] - 2026-03-02
4
+
5
+ ### Fixed
6
+ - `recommended` option in compare tag had thinner border (2px) than normal options (3px) — fixed to 4px
7
+
3
8
  ## [0.1.0] - 2026-03-01
4
9
 
5
10
  ### Added
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # hexo-design-cards
2
2
 
3
- [![CI](https://github.com/leafbird/hexo-design-cards/actions/workflows/ci.yml/badge.svg)](https://github.com/leafbird/hexo-design-cards/actions/workflows/ci.yml) [![GitHub release](https://img.shields.io/github/v/release/leafbird/hexo-design-cards)](https://github.com/leafbird/hexo-design-cards/releases) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3
+ [![CI](https://github.com/leafbird/hexo-design-cards/actions/workflows/ci.yml/badge.svg)](https://github.com/leafbird/hexo-design-cards/actions/workflows/ci.yml) [![npm version](https://img.shields.io/npm/v/hexo-design-cards)](https://www.npmjs.com/package/hexo-design-cards) [![npm downloads](https://img.shields.io/npm/dm/hexo-design-cards)](https://www.npmjs.com/package/hexo-design-cards) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
4
 
5
5
  Beautiful design card tags for [Hexo](https://hexo.io) — replace verbose inline HTML with clean tag syntax.
6
6
 
@@ -8,25 +8,13 @@ Beautiful design card tags for [Hexo](https://hexo.io) — replace verbose inlin
8
8
 
9
9
  ## Install
10
10
 
11
- ### From GitHub Packages
12
-
13
- ```bash
14
- # Add to .npmrc in your Hexo project
15
- echo "@leafbird:registry=https://npm.pkg.github.com" >> .npmrc
16
- echo "//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN" >> .npmrc
17
-
18
- npm install @leafbird/hexo-design-cards
19
- ```
20
-
21
- ### From npm (coming soon)
22
-
23
11
  ```bash
24
12
  npm install hexo-design-cards
25
13
  ```
26
14
 
27
15
  ## Quick Start
28
16
 
29
- After installing, use tag syntax in your Hexo markdown files. No additional configuration needed — the plugin auto-injects CSS and uses the **Deep Sea** colorway by default.
17
+ After installing, use tag syntax in your Hexo markdown files. No additional configuration needed — the plugin auto-injects CSS and uses the **Olive Garden** colorway by default.
30
18
 
31
19
  ## Tags
32
20
 
@@ -152,6 +140,8 @@ Simple horizontal flow diagram with arrow connectors.
152
140
  {% flow "Step A|description" "*Step B|description" "Step C|description" %}
153
141
  ```
154
142
 
143
+ ![Flow](screenshots/07-flow-1.png)
144
+
155
145
  - `*` prefix: highlighted step (bold border)
156
146
  - `|` inside quotes: separates title and description
157
147
  - Trailing `|` after all steps: caption text
@@ -160,7 +150,6 @@ Simple horizontal flow diagram with arrow connectors.
160
150
  {% flow "Request" "*Process" "Response" | Data flow overview %}
161
151
  ```
162
152
 
163
- ![Flow](screenshots/07-flow-1.png)
164
153
  ![Flow](screenshots/07-flow-2.png)
165
154
 
166
155
  ## Font Size Parameter
@@ -182,8 +171,8 @@ Five built-in color palettes. Each has 5 colors (C1–C5) from darkest to lighte
182
171
 
183
172
  | Colorway | Vibe |
184
173
  |----------|------|
185
- | `deep-sea` (default) | Calm blue-grey |
186
- | `olive-garden` | Warm olive-gold |
174
+ | `olive-garden` (default) | Warm olive-gold |
175
+ | `deep-sea` | Calm blue-grey |
187
176
  | `fiery-ocean` | Bold red-blue contrast |
188
177
  | `rustic-earth` | Natural earth tones |
189
178
  | `sunny-beach` | Vivid orange-teal |
package/lib/css.js CHANGED
@@ -26,7 +26,7 @@ function getCSS() {
26
26
 
27
27
  .dc-compare{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}
28
28
  .dc-compare-option{padding:20px;border-radius:12px;border-width:3px;border-style:solid}
29
- .dc-compare-option.dc-recommended{border-width:2px}
29
+ .dc-compare-option.dc-recommended{border-width:4px}
30
30
  .dc-compare-option h4{margin:0 0 10px;text-align:center}
31
31
  .dc-compare-option .dc-emoji{text-align:center;font-size:40px}
32
32
  .dc-compare-body{text-align:center}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-design-cards",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "Beautiful design card tags for Hexo — flow diagrams, header cards, accent cards, comparison cards, quotes, alerts, mini cards, and section banners with customizable colorways.",
5
5
  "main": "index.js",
6
6
  "keywords": [
Binary file