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/content/2.guide/6.badges.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,11 @@ When set to `true`, this parameter replaces the static category label (like "ver
114
114
115
115
### `style`
116
116
117
-
Overrides the default badge appearance. Pass `shieldsio` to use the shields.io-compatible style.
117
+
Overrides the badge appearance.
118
+
119
+
-`default` — the standard npmx.dev look at 20px tall.
120
+
-`shieldsio` — the classic shields.io-compatible look at 20px tall, useful when you need the badge to sit alongside existing shields.io badges.
121
+
-`compact` — the same modern look and 20px height as `default` but with tight 5px text padding and no enforced minimum side width. Long built-in labels are also shortened (e.g. `install size` → `size`, `downloads/mo` → `dl/mo`, `dependencies` → `deps`, `maintainers` → `maint`) so the badge can take up roughly 20–50% less horizontal space in READMEs. Pass an explicit `label` or `name=true` to opt out of the shortening.
118
122
119
123
-**Default**: `default`
120
-
-**Usage**: `?style=shieldsio`
124
+
-**Usage**: `?style=compact` or `?style=shieldsio`
0 commit comments