clampography 0.9.4 → 0.9.6

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/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
- font-size: 0.875em; /* Relative to context */
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);
package/package.json CHANGED
@@ -1,12 +1,18 @@
1
1
  {
2
2
  "name": "clampography",
3
- "version": "0.9.4",
4
- "description": "Fluid typography system based on CSS clamp() for Tailwind CSS v4",
3
+ "version": "0.9.6",
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": [
8
- "clampography.css"
8
+ "clampography.css",
9
+ "presets/"
9
10
  ],
11
+ "exports": {
12
+ ".": "./clampography.css",
13
+ "./base": "./clampography.css",
14
+ "./*": "./presets/*.css"
15
+ },
10
16
  "keywords": [
11
17
  "alternative",
12
18
  "blog",
@@ -30,7 +36,7 @@
30
36
  "type": "git",
31
37
  "url": "https://github.com/Avaray/clampography.git"
32
38
  },
33
- "homepage": "https://github.com/Avaray/clampography#readme",
39
+ "homepage": "https://dav.one/clampography",
34
40
  "author": "Dawid Wąsowski",
35
41
  "license": "MIT"
36
42
  }
@@ -0,0 +1 @@
1
+ @import '../clampography.css';