clampography 0.9.3 → 0.9.5
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 +3 -3
- package/clampography.css +15 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -26,11 +26,11 @@ npm install clampography
|
|
|
26
26
|
# Install with PNPM
|
|
27
27
|
pnpm add clampography
|
|
28
28
|
|
|
29
|
-
# Install with Deno
|
|
30
|
-
deno install npm:clampography
|
|
31
|
-
|
|
32
29
|
# Install with Bun
|
|
33
30
|
bun install clampography
|
|
31
|
+
|
|
32
|
+
# Install with Deno
|
|
33
|
+
deno install npm:clampography
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
## Usage
|
package/clampography.css
CHANGED
|
@@ -180,7 +180,14 @@
|
|
|
180
180
|
/* Code-related elements */
|
|
181
181
|
:where(code, kbd, samp) {
|
|
182
182
|
font-family: var(--font-family-mono);
|
|
183
|
-
|
|
183
|
+
padding: clamp(0.0625rem, 0.05rem + 0.0625vw, 0.125rem)
|
|
184
|
+
clamp(0.1875rem, 0.15rem + 0.1875vw, 0.7125rem);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Inline code - minimal, scaled padding */
|
|
188
|
+
:where(code:not(pre code), kbd, samp) {
|
|
189
|
+
padding: clamp(0.0625rem, 0.05rem + 0.0625vw, 0.125rem)
|
|
190
|
+
clamp(0.1875rem, 0.15rem + 0.1875vw, 0.3125rem);
|
|
184
191
|
}
|
|
185
192
|
|
|
186
193
|
/* Superscript & subscript - essential for scientific notation */
|
|
@@ -285,6 +292,12 @@
|
|
|
285
292
|
margin-top: var(--spacing-xs);
|
|
286
293
|
}
|
|
287
294
|
|
|
295
|
+
/* Spacing before nested lists */
|
|
296
|
+
li > :where(ul, ol),
|
|
297
|
+
li > :where(ul, ol):first-child {
|
|
298
|
+
margin-top: var(--spacing-xs);
|
|
299
|
+
}
|
|
300
|
+
|
|
288
301
|
/* Spacing before nested lists */
|
|
289
302
|
li > :where(ul, ol) {
|
|
290
303
|
margin-top: var(--spacing-xs);
|
|
@@ -424,6 +437,7 @@
|
|
|
424
437
|
}
|
|
425
438
|
|
|
426
439
|
figcaption {
|
|
440
|
+
margin-top: 0.375rem;
|
|
427
441
|
font-size: 0.875em;
|
|
428
442
|
line-height: 1.5;
|
|
429
443
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clampography",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "Fluid typography system based on CSS clamp() for Tailwind CSS v4",
|
|
3
|
+
"version": "0.9.5",
|
|
4
|
+
"description": "Fluid typography system based on CSS clamp() for Tailwind CSS v4. Alternative to Tailwind CSS Typography plugin.",
|
|
5
5
|
"main": "clampography.css",
|
|
6
6
|
"style": "clampography.css",
|
|
7
7
|
"files": [
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"text",
|
|
27
27
|
"typography"
|
|
28
28
|
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/Avaray/clampography.git"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://dav.one/clampography",
|
|
29
34
|
"author": "Dawid Wąsowski",
|
|
30
35
|
"license": "MIT"
|
|
31
36
|
}
|