clampography 0.9.1 → 0.9.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.
package/README.md CHANGED
@@ -45,7 +45,9 @@ bun install clampography
45
45
  /* Override default heading styles */
46
46
  @layer base {
47
47
  h1 {
48
- letter-spacing: 0.05em;
48
+ font-size: clamp(2.35rem, 1.95rem + 1.5vw, 4rem);
49
+ font-weight: 400;
50
+ line-height: 1.15;
49
51
  }
50
52
  }
51
53
  ```
package/clampography.css CHANGED
@@ -92,6 +92,60 @@
92
92
  margin-bottom: var(--spacing-xs);
93
93
  }
94
94
 
95
+ /* --------------------------------------------------------------------------
96
+ LINKS - Clickable Text (Structural Indicators)
97
+ -------------------------------------------------------------------------- */
98
+
99
+ a {
100
+ /* Structural underline - indicates clickability */
101
+ text-decoration-line: underline;
102
+ text-decoration-thickness: 0.0625em; /* 1px at 16px base */
103
+ text-underline-offset: 0.15em; /* Space from baseline */
104
+ cursor: pointer;
105
+ }
106
+
107
+ /* Remove underline from heading links */
108
+ :where(h1, h2, h3, h4, h5, h6) a {
109
+ text-decoration: none;
110
+ }
111
+
112
+ /* --------------------------------------------------------------------------
113
+ MENU - Interactive Lists (Toolbars, Navigation)
114
+ -------------------------------------------------------------------------- */
115
+
116
+ menu {
117
+ list-style: none;
118
+ margin-bottom: var(--spacing-md);
119
+ padding-left: 0; /* No indentation - unlike ul/ol */
120
+ }
121
+
122
+ /* Remove custom markers from menu items */
123
+ menu > li::before {
124
+ display: none;
125
+ }
126
+
127
+ /* --------------------------------------------------------------------------
128
+ HGROUP - Heading Groups (Title + Subtitle)
129
+ -------------------------------------------------------------------------- */
130
+
131
+ hgroup {
132
+ margin-bottom: var(--spacing-lg);
133
+ }
134
+
135
+ /* Reduce spacing between heading and subtitle */
136
+ hgroup :where(h1, h2, h3, h4, h5, h6) {
137
+ margin-bottom: var(--spacing-xs);
138
+ }
139
+
140
+ /* Subtitle/tagline styling (typically <p>) */
141
+ hgroup :where(p) {
142
+ margin-top: 0;
143
+ margin-bottom: 0;
144
+ font-size: 0.875em; /* Relative to parent context */
145
+ font-weight: 400; /* Lighter than heading */
146
+ line-height: 1.5;
147
+ }
148
+
95
149
  /* --------------------------------------------------------------------------
96
150
  TEXT CONTENT - Paragraphs & Inline Elements
97
151
  -------------------------------------------------------------------------- */
@@ -223,32 +277,33 @@
223
277
 
224
278
  li {
225
279
  position: relative;
226
- margin-bottom: var(--spacing-xs);
227
280
  padding-left: 0.375em; /* Space between marker and text */
228
281
  }
229
282
 
230
- /*
231
- * CUSTOM BULLETS (UL)
232
- * Perfectly centered dot relative to the first line of text.
233
- */
283
+ /* Spacing between list items */
284
+ li + li {
285
+ margin-top: var(--spacing-xs);
286
+ }
287
+
288
+ /* Spacing before nested lists */
289
+ li > :where(ul, ol) {
290
+ margin-top: var(--spacing-xs);
291
+ }
292
+
293
+ /* Perfectly centered dot relative to the first line of text */
234
294
  ul > li::before {
235
295
  content: '';
236
296
  position: absolute;
237
- /* Positioning relative to the li padding */
238
297
  left: -1.125em;
239
- /* Vertically aligns with the first line (assuming line-height 1.75) */
240
298
  top: calc(0.875em - 0.1875em);
241
299
  width: 0.375em;
242
300
  height: 0.375em;
243
301
  background-color: currentColor;
244
302
  border-radius: 50%;
245
- opacity: 0.4; /* Subtle visual weight */
303
+ opacity: 0.4;
246
304
  }
247
305
 
248
- /*
249
- * CUSTOM NUMBERS (OL)
250
- * Right-aligned numbers for professional look (e.g. "9." aligns with "10.")
251
- */
306
+ /* Right-aligned numbers for professional look (e.g. "9." aligns with "10.") */
252
307
  ol {
253
308
  counter-reset: list-counter;
254
309
  }
@@ -260,18 +315,17 @@
260
315
  ol > li::before {
261
316
  content: counter(list-counter) '.';
262
317
  position: absolute;
263
- left: -2.5em; /* More space for numbers */
264
- width: 1.75em; /* Fixed width container for alignment */
318
+ left: -2.5em;
319
+ width: 1.75em;
265
320
  text-align: right;
266
- font-weight: 600; /* Make numbers stand out structurally */
321
+ font-weight: 600;
267
322
  color: currentColor;
268
- opacity: 0.6; /* Slightly lighter than text */
323
+ opacity: 0.6;
269
324
  }
270
325
 
271
- /* Nested lists spacing */
326
+ /* Nested lists - indentation only, spacing handled by li rules above */
272
327
  :where(ul, ol) :where(ul, ol) {
273
- margin-top: 0.5rem;
274
- margin-bottom: 0.5rem;
328
+ margin-bottom: 0; /* Parent li spacing already handles this */
275
329
  padding-left: var(--spacing-md);
276
330
  }
277
331
 
@@ -370,7 +424,6 @@
370
424
  }
371
425
 
372
426
  figcaption {
373
- margin-top: var(--spacing-xs);
374
427
  font-size: 0.875em;
375
428
  line-height: 1.5;
376
429
  }
@@ -451,6 +504,9 @@
451
504
  summary {
452
505
  cursor: pointer;
453
506
  font-weight: 600;
507
+ }
508
+
509
+ details[open] > summary {
454
510
  margin-bottom: var(--spacing-xs);
455
511
  }
456
512
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clampography",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Fluid typography system based on CSS clamp() for Tailwind CSS v4",
5
5
  "main": "clampography.css",
6
6
  "style": "clampography.css",