clampography 0.9.2 → 0.9.4

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
@@ -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
@@ -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
  -------------------------------------------------------------------------- */
@@ -370,6 +424,7 @@
370
424
  }
371
425
 
372
426
  figcaption {
427
+ margin-top: 0.375rem;
373
428
  font-size: 0.875em;
374
429
  line-height: 1.5;
375
430
  }
@@ -452,6 +507,10 @@
452
507
  font-weight: 600;
453
508
  }
454
509
 
510
+ details[open] > summary {
511
+ margin-bottom: var(--spacing-xs);
512
+ }
513
+
455
514
  dialog {
456
515
  font-size: inherit;
457
516
  line-height: inherit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clampography",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Fluid typography system based on CSS clamp() for Tailwind CSS v4",
5
5
  "main": "clampography.css",
6
6
  "style": "clampography.css",
@@ -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://github.com/Avaray/clampography#readme",
29
34
  "author": "Dawid Wąsowski",
30
35
  "license": "MIT"
31
36
  }