@runwell/shopify-toolkit 0.14.1 → 0.14.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/lib/init.js CHANGED
@@ -82,26 +82,14 @@ export async function init(flags) {
82
82
 
83
83
  fs.writeFileSync(path.join(targetDir, 'runwell.config.json'), JSON.stringify(config, null, 2) + '\n');
84
84
 
85
- // Scaffold settings_data.json with optional premium-editorial defaults.
86
- // body_scale and heading_scale drive Dawn's --font-body-scale and
87
- // --font-heading-scale, which the toolkit's _shared/css-typography
88
- // module wraps so module type sizes scale uniformly.
89
- const premiumEditorial = flags.premiumEditorial || flags['premium-editorial'];
90
- const settingsData = {
91
- current: 'Default',
92
- presets: {
93
- Default: premiumEditorial
94
- ? { body_scale: 110, heading_scale: 120 }
95
- : {}
96
- }
97
- };
85
+ // Scaffold settings_data.json with an empty Default preset.
86
+ // Dawn defaults (body_scale 100, heading_scale 100) apply automatically
87
+ // when keys are absent. Each tenant adjusts via Theme Editor or by
88
+ // editing this file directly. No Runwell-opinionated defaults.
98
89
  fs.writeFileSync(
99
90
  path.join(targetDir, 'config', 'settings_data.json'),
100
- JSON.stringify(settingsData, null, 2) + '\n'
91
+ JSON.stringify({ current: 'Default', presets: { Default: {} } }, null, 2) + '\n'
101
92
  );
102
- if (premiumEditorial) {
103
- console.log('Applied premium-editorial typography defaults: body_scale=110, heading_scale=120');
104
- }
105
93
 
106
94
  // Scaffold templates
107
95
  fs.writeFileSync(
@@ -30,7 +30,7 @@
30
30
  {%- endif -%}
31
31
 
32
32
  <div style="overflow-x: auto;">
33
- <table style="width: 100%; border-collapse: collapse; min-width: 600px; font-family: var(--font-body-family); font-size: var(--runwell-meta-size);">
33
+ <table style="width: 100%; border-collapse: collapse; min-width: 600px; font-family: var(--font-body-family); font-size: var(--runwell-body-size);">
34
34
  <thead>
35
35
  <tr>
36
36
  <th style="text-align: left; padding: 0.8rem 1rem 0.8rem 0; font-family: var(--font-body-family); font-size: var(--runwell-eyebrow-size); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; vertical-align: bottom; border-bottom: 2px solid currentColor;">
@@ -48,13 +48,13 @@
48
48
  </h3>
49
49
  {%- endif -%}
50
50
  {%- if block.settings.body != blank -%}
51
- <p style="font-size: var(--runwell-meta-size); line-height: 1.6; opacity: 0.85; margin: 0;">
51
+ <p style="font-size: var(--runwell-body-size); line-height: 1.6; opacity: 0.85; margin: 0;">
52
52
  {{ block.settings.body }}
53
53
  </p>
54
54
  {%- endif -%}
55
55
  {%- if block.settings.link_label != blank -%}
56
56
  <a href="{{ block.settings.link_url | default: '#' }}"
57
- style="display: inline-block; margin-top: 0.8rem; font-weight: 700; font-size: var(--runwell-caption-size); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--runwell-blue);">
57
+ style="display: inline-block; margin-top: 0.8rem; font-weight: 700; font-size: var(--runwell-cta-size); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--runwell-blue);">
58
58
  {{ block.settings.link_label }} &rarr;
59
59
  </a>
60
60
  {%- endif -%}
@@ -44,7 +44,7 @@
44
44
  {{ ing.name }}
45
45
  </h3>
46
46
  {%- if ing.role != blank -%}
47
- <p style="font-family: var(--font-body-family); font-size: var(--runwell-meta-size); line-height: 1.6; opacity: 0.85; margin: 0;">
47
+ <p style="font-family: var(--font-body-family); font-size: var(--runwell-body-size); line-height: 1.6; opacity: 0.85; margin: 0;">
48
48
  {{ ing.role }}
49
49
  </p>
50
50
  {%- endif -%}
@@ -62,7 +62,7 @@
62
62
  {{ block.settings.name }}
63
63
  </h3>
64
64
  {%- if block.settings.role != blank -%}
65
- <p style="font-family: var(--font-body-family); font-size: var(--runwell-meta-size); line-height: 1.6; opacity: 0.85; margin: 0;">
65
+ <p style="font-family: var(--font-body-family); font-size: var(--runwell-body-size); line-height: 1.6; opacity: 0.85; margin: 0;">
66
66
  {{ block.settings.role }}
67
67
  </p>
68
68
  {%- endif -%}
@@ -36,7 +36,7 @@
36
36
  <h3 style="font-family: var(--font-heading-family); font-style: italic; font-weight: 400; font-size: calc(var(--font-heading-scale) * 1.25rem); line-height: 1.2; margin: 0 0 0.5rem 0;">
37
37
  {{ block.settings.title }}
38
38
  </h3>
39
- <p style="font-family: var(--font-body-family); font-size: var(--runwell-meta-size); line-height: 1.6; opacity: 0.85; margin: 0;">
39
+ <p style="font-family: var(--font-body-family); font-size: var(--runwell-body-size); line-height: 1.6; opacity: 0.85; margin: 0;">
40
40
  {{ block.settings.body }}
41
41
  </p>
42
42
  </div>
@@ -46,7 +46,7 @@
46
46
  {%- if section.settings.link_label != blank -%}
47
47
  <div style="margin-top: 2.5rem;">
48
48
  <a href="{{ section.settings.link_url | default: '/pages/standards' }}"
49
- style="font-family: var(--font-body-family); font-weight: 700; font-size: var(--runwell-caption-size); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--runwell-blue);">
49
+ style="font-family: var(--font-body-family); font-weight: 700; font-size: var(--runwell-cta-size); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--runwell-blue);">
50
50
  {{ section.settings.link_label }} &rarr;
51
51
  </a>
52
52
  </div>
@@ -22,13 +22,13 @@
22
22
  </h3>
23
23
  {%- endif -%}
24
24
  {%- if section.settings.body != blank -%}
25
- <p style="font-family: var(--font-body-family); font-size: var(--runwell-meta-size); line-height: 1.55; margin: 0; opacity: 0.85;">
25
+ <p style="font-family: var(--font-body-family); font-size: var(--runwell-body-size); line-height: 1.55; margin: 0; opacity: 0.85;">
26
26
  {{ section.settings.body }}
27
27
  </p>
28
28
  {%- endif -%}
29
29
  {%- if section.settings.link_label != blank -%}
30
30
  <a href="{{ section.settings.link_url | default: '/policies/refund-policy' }}"
31
- style="display: inline-block; margin-top: 0.5rem; font-family: var(--font-body-family); font-weight: 700; font-size: var(--runwell-caption-size); letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--runwell-blue);">
31
+ style="display: inline-block; margin-top: 0.5rem; font-family: var(--font-body-family); font-weight: 700; font-size: var(--runwell-cta-size); letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--runwell-blue);">
32
32
  {{ section.settings.link_label }} &rarr;
33
33
  </a>
34
34
  {%- endif -%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runwell/shopify-toolkit",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "Reusable Shopify theme modules from Runwell. Replaces typically app-driven features (reviews, wishlist, urgency, FAQ, post-purchase upsell, exit popups, free-ship progress, sticky ATC, testimonials, badges, bundles) with native Liquid + JS + CSS that ship across multiple client themes via a config-driven sync CLI.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",