@greatstore/cli 0.2.21 → 0.2.22
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/CHANGELOG.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ h1{font-size:1.4rem;color:#a40000}code{background:#f4f4f4;padding:.1em .3em;bord
|
|
|
22
22
|
<p>Return to your terminal for details.</p></body></html>`,se=class extends Error{constructor(t){super(t),this.name="LoopbackError"}};async function Le(e){let t=(e.generateState??Yr)(),n=e.timeoutMs??300*1e3,r=e.openBrowser??(s=>zr(s,e.browserCmdEnv)),o=Gt.createServer();try{await new Promise(c=>o.listen(0,"127.0.0.1",c));let s=o.address(),i=new URL(`${e.dashboardBaseUrl}/cli/authorize`);i.searchParams.set("port",String(s.port)),i.searchParams.set("state",t),e.requestedStore&&i.searchParams.set("store",e.requestedStore);let a=i.toString(),l=Wr(o,t,n);return r(a),process.stderr.write(`If your browser didn't open, visit:
|
|
23
23
|
${a}
|
|
24
24
|
`),await l}finally{o.close()}}function Wr(e,t,n){return new Promise((r,o)=>{let s=!1,i=l=>{s||(s=!0,l())},a=setTimeout(()=>{i(()=>o(new se("Sign-in timed out. Re-run `npx greatstore login`.")))},n);typeof a.unref=="function"&&a.unref(),e.on("request",(l,c)=>{let p=new URL(l.url??"/","http://127.0.0.1");if(p.pathname!==Vr){c.writeHead(404,{"content-type":"text/plain"}),c.end("Not found");return}let u=p.searchParams,d=u.get("error"),b=u.get("error_description"),m=u.get("code");if(u.get("state")!==t){c.writeHead(400,{"content-type":"text/html"}),c.end(Mt),clearTimeout(a),i(()=>o(new se("Sign-in didn't complete. Please try again.")));return}if(d||!m){c.writeHead(400,{"content-type":"text/html"}),c.end(Mt),clearTimeout(a),i(()=>o(new se(b??"Sign-in failed. Please try again.")));return}c.writeHead(200,{"content-type":"text/html"}),c.end(Kr),clearTimeout(a);let Te=u.get("store")?.trim();i(()=>r(Te?{token:m,store:Te}:{token:m}))})})}function Yr(){return Ut.randomBytes(16).toString("hex")}function zr(e,t){let n=t?.trim();Vt(e,n?[n]:Xr(process.platform,process.env))}function Vt(e,t){let[n,...r]=t;if(n===void 0)return;let o=()=>Vt(e,r);try{let s;if(n==="start"){let l=`start "" "${e}"`;s=Ht("cmd.exe",["/d","/s","/c",l],{stdio:"ignore",detached:!0,windowsVerbatimArguments:!0})}else s=Ht(n,[e],{stdio:"ignore",detached:!0});let i=!1,a=()=>{i||(i=!0,o())};s.on("error",a),s.on("exit",l=>{l!==0?a():i=!0}),s.unref()}catch{o()}}function Xr(e,t){if(e==="android"||t.TERMUX_VERSION!==void 0||(t.PREFIX??"").includes("/com.termux/"))return["termux-open-url","termux-open","xdg-open"];switch(e){case"darwin":return["open"];case"win32":return["start"];case"linux":return["xdg-open"];default:return[]}}import*as L from"fs";import*as fe from"os";import*as ct from"path";var Qr=".greatstore",Zr="credentials.json";function ie(e=fe.homedir()){return ct.join(e,Qr)}function lt(e=fe.homedir()){return ct.join(ie(e),Zr)}function N(e=fe.homedir()){let t=lt(e),n;try{let r=L.statSync(t);if(process.platform!=="win32"){let o=r.mode&511;if(o&63)throw new Error(`Refusing to read ${t}: permissions are ${o.toString(8)} (should be 600). Run \`chmod 600 ${t}\`.`)}n=L.readFileSync(t,"utf8")}catch(r){if(eo(r))return null;throw r}try{let r=JSON.parse(n);return typeof r.access_token!="string"?null:r}catch{return null}}function Oe(e,t=fe.homedir()){let n=ie(t);if(L.mkdirSync(n,{recursive:!0,mode:448}),process.platform!=="win32")try{L.chmodSync(n,448)}catch{}let r=lt(t);L.writeFileSync(r,`${JSON.stringify(e,null,2)}
|
|
25
|
-
`,{mode:384}),process.platform!=="win32"&&L.chmodSync(r,384)}function qt(e=fe.homedir()){L.rmSync(lt(e),{force:!0})}function Jt(e){let t=e.split(".");if(t.length!==3)throw new Error("Invalid JWT: expected three dot-separated segments");let n=t[1];if(!n)throw new Error("Invalid JWT: empty payload segment");let o=(n+"=".repeat((4-n.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=Buffer.from(o,"base64").toString("utf8");return JSON.parse(s)}function Ie(e,t=Math.floor(Date.now()/1e3)){return e.expires_at<=t}function eo(e){return typeof e=="object"&&e!==null&&e.code==="ENOENT"}var O="0.2.
|
|
25
|
+
`,{mode:384}),process.platform!=="win32"&&L.chmodSync(r,384)}function qt(e=fe.homedir()){L.rmSync(lt(e),{force:!0})}function Jt(e){let t=e.split(".");if(t.length!==3)throw new Error("Invalid JWT: expected three dot-separated segments");let n=t[1];if(!n)throw new Error("Invalid JWT: empty payload segment");let o=(n+"=".repeat((4-n.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=Buffer.from(o,"base64").toString("utf8");return JSON.parse(s)}function Ie(e,t=Math.floor(Date.now()/1e3)){return e.expires_at<=t}function eo(e){return typeof e=="object"&&e!==null&&e.code==="ENOENT"}var O="0.2.22";function me(e,t){let n=s=>s.split("-")[0].split(".").map(i=>Number(i)||0),[r,o]=[n(e),n(t)];for(let s=0;s<Math.max(r.length,o.length);s++){let i=(r[s]??0)-(o[s]??0);if(i!==0)return i}return 0}var H=class extends Error{constructor(n,r,o){super(r);this.status=n;this.code=o;this.name="HttpError"}},U=class extends Error{constructor(t="Sign in first. Run `npx greatstore login`."){super(t),this.name="AuthRequiredError"}};function to(e){let t;try{t=new URL(e)}catch{return}let n=t.pathname.split("/").filter(Boolean);if(n[1]==="admin"&&n[0])return n[0];let r=t.hostname.split(".")[0],o=new Set(["my","www","app","api","admin","localhost"]);if(t.hostname.includes(".")&&r&&!o.has(r))return r}function no(e){let t=to(e)??N()?.store;return t?`npx greatstore login --store ${t}`:"npx greatstore login"}var ut=null;function zt(e){ut=e}async function f(e,t={}){if(ut!==null)return Kt(e,t,ut);let n=()=>`Run \`${no(e)}\`.`,r=N();if(!r)throw new U(`Sign in first. ${n()}`);if(Ie(r))throw new U(`Session expired. ${n()}`);try{return await Kt(e,t,r.access_token)}catch(o){throw o instanceof H&&o.status===401?new U(`Session expired. ${n()}`):o}}async function Kt(e,t,n){let r={accept:"application/json",authorization:`Bearer ${n}`,"x-gs-cli-version":O,...t.headers??{}},o;if(t.multipart&&t.body!==void 0)throw new Error("request(): pass either `body` or `multipart`, not both");t.multipart?(o=t.multipart,delete r["content-type"]):t.body!==void 0&&(o=JSON.stringify(t.body),r["content-type"]="application/json");let s={method:t.method??"GET",headers:r};o!==void 0&&(s.body=o);let i=await fetch(e,s);if(i.status>=200&&i.status<300)return i.status===204?void 0:(i.headers.get("content-type")??"").includes("application/json")?await i.json():await i.text();let a=await i.text(),l={};try{l=JSON.parse(a)}catch{}let c=l.code??l.error,p=t.validationDetail&&i.status===400&&l.error?l.error:ro(i.status,c,l.detail);throw new H(i.status,p,l.code??l.error)}var Xt=`This version of the GreatStore CLI is no longer supported. Run the latest one:
|
|
26
26
|
|
|
27
27
|
npx greatstore@latest <command>
|
|
28
28
|
|
|
@@ -40,7 +40,7 @@ or, if you installed it, update it:
|
|
|
40
40
|
`);let{token:r,store:o}=await Le({dashboardBaseUrl:ae(),...n?{requestedStore:n}:{}}),s=Ne(r,o);return Oe(s),s.store?process.stdout.write(`Now working on store "${s.store}".
|
|
41
41
|
`):process.stdout.write(`Switched.
|
|
42
42
|
`),0}import*as P from"fs";import*as He from"os";import*as ce from"path";import{fileURLToPath as ao}from"url";var he="greatstore",an=".version";function co(){for(let e of["./gs-skill/","../../gs-skill/"]){let t=ce.resolve(ao(new URL(e,import.meta.url)));if(P.existsSync(ce.join(t,"SKILL.md")))return t}throw new Error("internal: this install of the CLI is missing the agent skill files")}function cn(e=He.homedir()){return ce.join(ie(e),"skill",he)}function mt(e,t=He.homedir()){let n=cn(t),r=lo(n);if(r!==null&&me(r,e)>=0)return n;let o=`${n}.tmp-${process.pid}`,s=`${n}.old-${process.pid}`;return P.rmSync(o,{recursive:!0,force:!0}),P.cpSync(co(),o,{recursive:!0}),P.writeFileSync(ce.join(o,an),e),P.existsSync(n)&&P.renameSync(n,s),P.renameSync(o,n),P.rmSync(s,{recursive:!0,force:!0}),n}function ln(e,t=He.homedir()){try{P.existsSync(cn(t))&&mt(e,t)}catch{}}function lo(e){try{return P.readFileSync(ce.join(e,an),"utf8").trim()}catch{return null}}function un(){process.stdout.write(uo(mt(O)))}function uo(e){return["GreatStore agent skill \u2014 installation instructions for an AI coding agent.","","Skill source on this machine:",` ${e}`,"",`Symlink that folder into your skills directory as "${he}":`,""," mkdir -p <SKILLS_DIR>",` ln -sfn "${e}" "<SKILLS_DIR>/${he}"`,"","Symlink it, do not copy it: the CLI refreshes that folder whenever a","newer version runs, and the link picks it up with nothing to re-run.","","<SKILLS_DIR> is wherever you load skills from \u2014 for Claude Code that","is ~/.claude/skills for every project, or ./.claude/skills for this","one. Use your own location if it differs, and create it if missing.",`Then read <SKILLS_DIR>/${he}/SKILL.md to confirm the install.`,"",`On Windows: mklink /D "<SKILLS_DIR>\\${he}" "${e}"`,""].join(`
|
|
43
|
-
`)}var X={mode:{kind:"string",values:["auto","light","dark","custom"],help:"Color scheme. `auto` follows the shopper's system preference.",brandVisible:!0},radius:{kind:"string",values:["sharp","default","rounded"],help:"Corner rounding preset applied to every surface.",brandVisible:!0},fontFamily:{kind:"string",help:"Primary font family name.",brandVisible:!0},secondaryFontFamily:{kind:"string",help:"Font family for the agent's chat bubbles.",brandVisible:!0},mobileBottomBarOffset:{kind:"integer",help:"Pixels the mobile bottom bar floats above the screen edge while the chat is closed.",brandVisible:!0},hiddenUntilOpenedMobile:{kind:"boolean",help:"Keep the chat off the page on mobile until your site opens it.",brandVisible:!0},hiddenUntilOpenedDesktop:{kind:"boolean",help:"Keep the chat off the page on desktop until your site opens it.",brandVisible:!0},zIndex:{kind:"integer",help:"Stacking order of the chat panel on the host page."},brandColor:{kind:"color",help:"Accent color.",brandVisible:!0},surfaceColor:{kind:"color",help:"Background color.",brandVisible:!0},textColor:{kind:"color",help:"Text color.",brandVisible:!0},surface:{kind:"color",help:"Panel background."},surfaceSecondary:{kind:"color",help:"Secondary background."},surfaceAccent:{kind:"color",help:"Accented background."},surfaceHover:{kind:"color",help:"Hovered background."},foreground:{kind:"color",help:"Body text."},foregroundSecondary:{kind:"color",help:"Secondary text."},foregroundMuted:{kind:"color",help:"Muted text."},foregroundAccent:{kind:"color",help:"Accented text."},border:{kind:"color",help:"Border color."},borderFocus:{kind:"color",help:"Focus-ring color."},primary:{kind:"color",help:"Primary button background."},primaryForeground:{kind:"color",help:"Primary button text."},primaryHover:{kind:"color",help:"Primary button hover."},primaryMuted:{kind:"color",help:"Muted primary background."},primaryMutedForeground:{kind:"color",help:"Muted primary text."},primaryTint:{kind:"color",help:"Primary tint wash."},link:{kind:"color",help:"Link color."}};function pn(e){let t=e.toLowerCase();return Object.keys(X).map(n=>{let r=n.toLowerCase();return{name:n,distance:fo(t,r),prefix:po(t,r)}}).filter(({name:n,distance:r,prefix:o})=>r<=Math.max(2,n.length/3)||o>=4).sort((n,r)=>r.prefix-n.prefix||n.distance-r.distance).slice(0,3).map(({name:n})=>n)}function po(e,t){let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;return n}function fo(e,t){let n=Array.from({length:t.length+1},(r,o)=>o);for(let r=1;r<=e.length;r++){let o=[r];for(let s=1;s<=t.length;s++)o[s]=Math.min((n[s]??0)+1,(o[s-1]??0)+1,(n[s-1]??0)+(e[r-1]===t[s-1]?0:1));n=o}return n[t.length]??0}var mo=`npx greatstore configure \u2014 view and edit a store's configuration.
|
|
43
|
+
`)}var X={mode:{kind:"string",values:["auto","light","dark","custom"],help:"Color scheme. `auto` follows the shopper's system preference.",brandVisible:!0},radius:{kind:"string",values:["sharp","default","rounded"],help:"Corner rounding preset applied to every surface.",brandVisible:!0},barLook:{kind:"string",values:["glass","lifted","outlined","bold"],help:"How the chat bar looks on the page.",brandVisible:!0},fontFamily:{kind:"string",help:"Primary font family name.",brandVisible:!0},secondaryFontFamily:{kind:"string",help:"Font family for the agent's chat bubbles.",brandVisible:!0},mobileBottomBarOffset:{kind:"integer",help:"Pixels the mobile bottom bar floats above the screen edge while the chat is closed.",brandVisible:!0},hiddenUntilOpenedMobile:{kind:"boolean",help:"Keep the chat off the page on mobile until your site opens it.",brandVisible:!0},hiddenUntilOpenedDesktop:{kind:"boolean",help:"Keep the chat off the page on desktop until your site opens it.",brandVisible:!0},zIndex:{kind:"integer",help:"Stacking order of the chat panel on the host page."},brandColor:{kind:"color",help:"Accent color.",brandVisible:!0},surfaceColor:{kind:"color",help:"Background color.",brandVisible:!0},textColor:{kind:"color",help:"Text color.",brandVisible:!0},surface:{kind:"color",help:"Panel background."},surfaceSecondary:{kind:"color",help:"Secondary background."},surfaceAccent:{kind:"color",help:"Accented background."},surfaceHover:{kind:"color",help:"Hovered background."},foreground:{kind:"color",help:"Body text."},foregroundSecondary:{kind:"color",help:"Secondary text."},foregroundMuted:{kind:"color",help:"Muted text."},foregroundAccent:{kind:"color",help:"Accented text."},border:{kind:"color",help:"Border color."},borderFocus:{kind:"color",help:"Focus-ring color."},primary:{kind:"color",help:"Primary button background."},primaryForeground:{kind:"color",help:"Primary button text."},primaryHover:{kind:"color",help:"Primary button hover."},primaryMuted:{kind:"color",help:"Muted primary background."},primaryMutedForeground:{kind:"color",help:"Muted primary text."},primaryTint:{kind:"color",help:"Primary tint wash."},link:{kind:"color",help:"Link color."}};function pn(e){let t=e.toLowerCase();return Object.keys(X).map(n=>{let r=n.toLowerCase();return{name:n,distance:fo(t,r),prefix:po(t,r)}}).filter(({name:n,distance:r,prefix:o})=>r<=Math.max(2,n.length/3)||o>=4).sort((n,r)=>r.prefix-n.prefix||n.distance-r.distance).slice(0,3).map(({name:n})=>n)}function po(e,t){let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;return n}function fo(e,t){let n=Array.from({length:t.length+1},(r,o)=>o);for(let r=1;r<=e.length;r++){let o=[r];for(let s=1;s<=t.length;s++)o[s]=Math.min((n[s]??0)+1,(o[s-1]??0)+1,(n[s-1]??0)+(e[r-1]===t[s-1]?0:1));n=o}return n[t.length]??0}var mo=`npx greatstore configure \u2014 view and edit a store's configuration.
|
|
44
44
|
|
|
45
45
|
Usage:
|
|
46
46
|
npx greatstore configure Show the current configuration.
|
|
@@ -205,6 +205,11 @@ The rarest errors are left out of this list.
|
|
|
205
205
|
All notable changes to \`@greatstore/cli\` are recorded here. The format
|
|
206
206
|
follows [Keep a Changelog](https://keepachangelog.com/).
|
|
207
207
|
|
|
208
|
+
## 0.2.22 \u2014 2026-11-10
|
|
209
|
+
|
|
210
|
+
### Changed
|
|
211
|
+
- Internal documentation update.
|
|
212
|
+
|
|
208
213
|
## 0.2.21 \u2014 2026-11-05
|
|
209
214
|
|
|
210
215
|
### Added
|
|
@@ -51,6 +51,11 @@ Each is unpacked in the sections below; this is the checklist.
|
|
|
51
51
|
generated strings via `textContent`, never `innerHTML`.
|
|
52
52
|
8. **One rich call beats many small ones** — there's a per-IP rate limit
|
|
53
53
|
(~20 requests/minute); fetch multiple surfaces with one combined schema.
|
|
54
|
+
9. **When the page only needs a choice, ask for picks.** A schema made only
|
|
55
|
+
of booleans, enums, short integer scales, 0–1 confidences and
|
|
56
|
+
distributions never keeps the page waiting. Keep it apart from schemas
|
|
57
|
+
with free text, which would lose that. See
|
|
58
|
+
[Answering with picks](#answering-with-picks).
|
|
54
59
|
|
|
55
60
|
## What happens on a call
|
|
56
61
|
|
|
@@ -95,6 +100,8 @@ Supported keywords (anything else is tolerated but ignored):
|
|
|
95
100
|
- Constraints: `minimum`, `maximum`, `minLength`, `maxLength`, `minItems`,
|
|
96
101
|
`maxItems`, `pattern`, `format`, `default`
|
|
97
102
|
- Guidance: `description`, `example`, `title` (on any property)
|
|
103
|
+
- `"x-distribution": true` on an object of numbers: see
|
|
104
|
+
[Answering with picks](#answering-with-picks)
|
|
98
105
|
|
|
99
106
|
Validation of the output is real: `required` is enforced, `enum`/`const`
|
|
100
107
|
must match, numeric and length bounds are checked, and
|
|
@@ -140,6 +147,60 @@ Split the work between the two channels:
|
|
|
140
147
|
self-documenting (`ctaLabel`, `warmthRating`, `priceJustification`) and
|
|
141
148
|
reach for a description when the name can't say it.
|
|
142
149
|
|
|
150
|
+
## Answering with picks
|
|
151
|
+
|
|
152
|
+
When **every** field is a pick, the call resolves at once instead of after
|
|
153
|
+
a few seconds of generation, cache miss or not. A pick is:
|
|
154
|
+
|
|
155
|
+
| Field | Schema | Answer |
|
|
156
|
+
| --- | --- | --- |
|
|
157
|
+
| yes/no | `{ type: "boolean" }` | `true` / `false` |
|
|
158
|
+
| one of a list | `enum` (or `const`) of strings, numbers, booleans or `null` | one of the values |
|
|
159
|
+
| a scale | `{ type: "integer", minimum, maximum }`, at most 10 apart | a point on it |
|
|
160
|
+
| a confidence | `{ type: "number", minimum: 0, maximum: 1 }` | how likely this one thing is |
|
|
161
|
+
| a distribution | an object with `"x-distribution": true` whose properties are plain numbers | how likely each property is to be *the* one, adding up to 1 |
|
|
162
|
+
|
|
163
|
+
```js
|
|
164
|
+
const schema = {
|
|
165
|
+
type: "object",
|
|
166
|
+
properties: {
|
|
167
|
+
showWinterBanner: { type: "boolean" },
|
|
168
|
+
heroStyle: { enum: ["lifestyle", "studio", "detail"] },
|
|
169
|
+
warmth: { type: "integer", minimum: 1, maximum: 5, description: "How warm this jacket is" },
|
|
170
|
+
shopperIntent: {
|
|
171
|
+
type: "object",
|
|
172
|
+
"x-distribution": true,
|
|
173
|
+
properties: { gift: { type: "number" }, self: { type: "number" }, browsing: { type: "number" } },
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
required: ["showWinterBanner", "heroStyle", "warmth", "shopperIntent"],
|
|
177
|
+
};
|
|
178
|
+
// → { showWinterBanner: true, heroStyle: "studio", warmth: 4,
|
|
179
|
+
// shopperIntent: { gift: 0.62, self: 0.31, browsing: 0.07 } }
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
The price of answering at once: **the first call for a page + prompt +
|
|
183
|
+
schema gets a placeholder** — valid against your schema, but picked at
|
|
184
|
+
random. The considered answer replaces it in the cache moments later, so
|
|
185
|
+
the calls after it get the real pick. Use picks where a random first
|
|
186
|
+
answer is harmless (a layout variant, a badge you'd show either way); where
|
|
187
|
+
it isn't, add a free-text field to the schema, and the call is generated in
|
|
188
|
+
full like any other.
|
|
189
|
+
|
|
190
|
+
Nest picks in objects as deeply as you like, and describe them as usual.
|
|
191
|
+
Any of these makes the whole call a normal (slower) one instead:
|
|
192
|
+
|
|
193
|
+
- any field that isn't a pick: a string, an unbounded or non-integer
|
|
194
|
+
number, an array, an `anyOf`;
|
|
195
|
+
- an integer scale wider than 0–10, or a confidence or distribution number
|
|
196
|
+
with constraints beyond its bounds;
|
|
197
|
+
- a constraint on a whole object's values, such as a `const` or `enum` over
|
|
198
|
+
the object rather than its fields;
|
|
199
|
+
- more than 100 fields.
|
|
200
|
+
|
|
201
|
+
So when one page needs both choices and copy, two calls — one of only
|
|
202
|
+
picks, one with the text — beat one combined schema.
|
|
203
|
+
|
|
143
204
|
## Prompting
|
|
144
205
|
|
|
145
206
|
A good prompt states, in order:
|
|
@@ -58,12 +58,13 @@ to the store's configured value.
|
|
|
58
58
|
|---|---|---|
|
|
59
59
|
| `data-theme-mode` | `auto` \| `light` \| `dark` \| `custom` | Color scheme. |
|
|
60
60
|
| `data-theme-radius` | `sharp` \| `default` \| `rounded` | Corner roundedness. |
|
|
61
|
+
| `data-theme-bar-look` | `glass` \| `lifted` \| `outlined` \| `bold` | How the chat bar looks on the page. |
|
|
61
62
|
| `data-theme-mobile-bar-offset` | integer, `0`–`200` | Pixels the mobile chat bar sits above the bottom of the screen while the chat is closed. Raise it to clear a bottom nav of your own. |
|
|
62
63
|
| `data-theme-scroll-arrow` | `true` \| `false` | `false` drops the small up arrow shown in place of the chat bar while scrolling down has slid it away. The bar still hides and returns on scroll. |
|
|
63
64
|
| `data-z-index` | integer, `0`–`2147483647` | Stacking order of the chat overlay on your page. Lower it if something on the page must stay above the chat. |
|
|
64
65
|
| `data-theme-font` | CSS font-family string | Primary font. |
|
|
65
66
|
| `data-theme-font-secondary` | CSS font-family string | Secondary font. |
|
|
66
|
-
| `data-theme-brand-color` | any CSS color | Brand/primary color
|
|
67
|
+
| `data-theme-brand-color` | any CSS color | Brand/primary color. In every mode it colors buttons and accents; in `custom` mode links too. |
|
|
67
68
|
| `data-theme-surface-color` | any CSS color | Surface/background color (only used in `custom` mode). |
|
|
68
69
|
| `data-theme-text-color` | any CSS color | Text color (only used in `custom` mode). |
|
|
69
70
|
| `data-ai-disclaimer` | `true` \| `false` | Shows or hides the AI disclaimer line. |
|