@fluid-app/fluid-cli-theme-dev 0.1.349 → 0.1.351

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.
@@ -127,7 +127,7 @@ Note: the **outer array is grouped**, not flat. Each object with a `name:` becom
127
127
  </head>
128
128
  ```
129
129
 
130
- A `font_picker` value is a plain family-name string. Do not use Shopify's font filters: `font_family` does not exist in Fluid (unknown filters are silently ignored), and Fluid's `font_face` expects a font object with `family` and `src`, so `{{ settings.font_family_body | font_face }}` emits an empty `@font-face`. A global `color` setting is a color value: it renders as the saved color and also exposes `.rgb`, `.rgba`, `.hue`, `.saturation`, `.lightness`.
130
+ A `font_picker` value is a plain family-name string (or a stack someone typed). Fluid's `font_family` filter is not Shopify's: it takes that string and returns a CSS stack that always ends in a generic family (`Open Sans` → `'Open Sans', sans-serif`), and returns nothing for a blank value or one with characters a family name cannot have, so a following `| default:` applies: `{{ settings.font_family_body | font_family | default: "system-ui, sans-serif" }}`. Fluid's `font_face` expects a font object (a hash with `family`, `fallback_families` and `src`) and renders nothing for anything else, so `{{ settings.font_family_body | font_face }}` emits no `@font-face`; load a picked font with a stylesheet `<link>` instead. A global `color` setting is a color value: it renders as the saved color and also exposes `.rgb`, `.rgba`, `.hue`, `.saturation`, `.lightness`.
131
131
 
132
132
  And sections then look like:
133
133
 
@@ -197,8 +197,8 @@ grep -E 'settings\.' layouts/theme.liquid | head
197
197
  # 3. Does the layout emit CSS variables?
198
198
  grep -E '^\s*--[a-z_-]+:' layouts/theme.liquid | head
199
199
 
200
- # 3b. Shopify font filters that don't work in Fluid
201
- grep -nE '\| *(font_face|font_family)\b' layouts/theme.liquid
200
+ # 3b. font_face on a font_picker string renders nothing
201
+ grep -nE '\| *font_face\b' layouts/theme.liquid
202
202
 
203
203
  # 4. Do sections actually USE the variables (vs. hardcoded)?
204
204
  grep -rE 'font-family:\s*[A-Za-z]' --include='*.liquid' --include='*.css' . 2>/dev/null # hardcoded fonts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-app/fluid-cli-theme-dev",
3
- "version": "0.1.349",
3
+ "version": "0.1.351",
4
4
  "description": "Fluid CLI plugin for theme developer workflows — dev server, push, pull, init, crawl, compare",
5
5
  "files": [
6
6
  "dist",
@@ -21,7 +21,7 @@
21
21
  "access": "public"
22
22
  },
23
23
  "dependencies": {
24
- "@fluid-app/fluid-cli": "0.1.109",
24
+ "@fluid-app/fluid-cli": "0.1.111",
25
25
  "chalk": "^5.6.2",
26
26
  "chokidar": "^4.0.0",
27
27
  "commander": "^12.0.0",