@oneqode/design-system 0.4.2 → 0.4.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.
@@ -186,6 +186,17 @@
186
186
  --container-text: 720px; /** Prose content, legal pages, CTAs */
187
187
  --container-compact: 650px; /** Tight text blocks, centered descriptions */
188
188
  --container-content: 600px; /** Paragraph descriptions, subtitles */
189
+ --spacing-1: 0.25rem; /** 4px - 0.25rem step on the spacing scale */
190
+ --spacing-2: 0.5rem; /** 8px */
191
+ --spacing-3: 0.75rem; /** 12px */
192
+ --spacing-4: 1rem; /** 16px */
193
+ --spacing-5: 1.25rem; /** 20px */
194
+ --spacing-6: 1.5rem; /** 24px */
195
+ --spacing-8: 2rem; /** 32px */
196
+ --spacing-10: 2.5rem; /** 40px */
197
+ --spacing-12: 3rem; /** 48px */
198
+ --spacing-16: 4rem; /** 64px */
199
+ --spacing-20: 5rem; /** 80px */
189
200
  --spacing-section: 5rem; /** Standard spacing between page sections */
190
201
  --spacing-section-lg: 10rem; /** Large section block padding - 160px (used for major page sections per Figma) */
191
202
  --spacing-inset: 1.5rem; /** Standard inner padding for sections and cards - 24px */
@@ -210,7 +221,8 @@
210
221
  --font-weight-medium: 500; /** Medium emphasis */
211
222
  --font-weight-semibold: 600; /** Buttons, labels, subheadings */
212
223
  --font-weight-bold: 700; /** Headings, strong emphasis */
213
- --font-letter-spacing-heading: -0.02em; /** Desktop headings (H1-H6) - -2% tracking */
224
+ --font-letter-spacing-heading: -0.02em; /** Desktop headings (H1, H2, H4, H5, H6) - -2% tracking */
225
+ --font-letter-spacing-h3-desktop: -0.0225em; /** H3 desktop - -0.72/32 (-2.25%) */
214
226
  --font-letter-spacing-body: -0.01em; /** Body text (text-lg, text-md, text-sm, text-xs) - -1% tracking */
215
227
  --font-letter-spacing-mono: 0; /** Mono (text-mono) - no tracking */
216
228
  --font-letter-spacing-h1-mobile: -0.0385em; /** H1 mobile - -2/52 */
@@ -221,7 +233,7 @@
221
233
  --font-letter-spacing-h6-mobile: 0; /** H6 mobile - none specified */
222
234
  --font-line-height-tight: 1.2; /** Desktop headings (H2-H6) - 1.2 ratio */
223
235
  --font-line-height-body: 1.5; /** All body text (text-lg, text-md, text-sm, text-xs, text-mono) - 1.5 ratio */
224
- --font-line-height-h1-desktop: 1.0625; /** H1 desktop - 68/64 */
236
+ --font-line-height-h1-desktop: 1.2; /** H1 desktop - 76.8/64 */
225
237
  --font-line-height-h1-mobile: 1.0769; /** H1 mobile - 56/52 */
226
238
  --font-line-height-h2-mobile: 1.1; /** H2 mobile - 44/40 */
227
239
  --font-line-height-h3-mobile: 1.125; /** H3 mobile - 36/32 */
@@ -283,6 +295,7 @@
283
295
  --gradient-card-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%); /** Bottom-fade scrim on image cards (feature triptych) for text legibility */
284
296
  --gradient-hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%); /** Top-to-bottom darken on hero imagery - keeps headline legible without flattening the photo */
285
297
  --pattern-hatch: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255, 255, 255, 0.06) 4px 5px); /** Diagonal hairline hatch decoration - section frame on case studies and feature card borders */
298
+ --layout-padding-xy: 1.25rem; /** Mobile horizontal padding for direct section children of <main> - 20px */
286
299
  --motion-duration-fast: 150ms; /** Snappy interactions - button/link hover, icon swaps */
287
300
  --motion-duration-base: 250ms; /** Default UI transition - default for most state changes */
288
301
  --motion-duration-slow: 400ms; /** Deliberate transition - card/image reveals, dropdown open */
@@ -378,14 +391,14 @@
378
391
  @media (min-width: 768px) {
379
392
  :root {
380
393
  --type-h1-size: 4rem;
381
- --type-h1-line-height: 1.0625;
394
+ --type-h1-line-height: 1.2;
382
395
  --type-h1-letter-spacing: -0.02em;
383
396
  --type-h2-size: 2.75rem;
384
397
  --type-h2-line-height: 1.2;
385
398
  --type-h2-letter-spacing: -0.02em;
386
399
  --type-h3-size: 2rem;
387
400
  --type-h3-line-height: 1.2;
388
- --type-h3-letter-spacing: -0.02em;
401
+ --type-h3-letter-spacing: -0.0225em;
389
402
  --type-h4-size: 1.75rem;
390
403
  --type-h4-line-height: 1.2;
391
404
  --type-h4-letter-spacing: -0.02em;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneqode/design-system",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "description": "OneQode design tokens: CSS custom properties, Tailwind v4 theme, shadcn variables, and flat JSON.",
6
6
  "license": "MIT",