@nozle-js/react 0.10.2 → 0.12.0

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/styles/preset.ts"],"names":[],"mappings":";;;AAAO,IAAM,WAAA,GAAc;AAAA,EACzB,KAAA,EAAO;AAAA,IACL,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ;AAAA,QACN,KAAA,EAAO;AAAA,UACL,MAAA,EAAQ,SAAA;AAAA,UACR,OAAA,EAAS,SAAA;AAAA,UACT,QAAA,EAAU;AAAA;AACZ;AACF;AACF,GACF;AAAA,EACA,OAAA,EAAS;AAAA,IACP,SAAS,WAAA,CAAY;AAAA,MACnB;AAAA,KACF,EAIG;AACD,MAAA,aAAA,CAAc;AAAA,QACZ,gDAAA,EAAkD;AAAA,UAChD,OAAA,EAAS,MAAA;AAAA,UACT,aAAA,EAAe,QAAA;AAAA,UACf,GAAA,EAAK;AAAA,SACP;AAAA,QACA,kCAAA,EAAoC;AAAA,UAClC,MAAA,EAAQ,QAAA;AAAA,UACR,YAAA,EAAc,QAAA;AAAA,UACd,eAAA,EAAiB,SAAA;AAAA,UACjB,QAAA,EAAU;AAAA,SACZ;AAAA,QACA,iCAAA,EAAmC;AAAA,UACjC,MAAA,EAAQ,MAAA;AAAA,UACR,YAAA,EAAc,QAAA;AAAA,UACd,UAAA,EAAY;AAAA,SACd;AAAA,QACA,iFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,kFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,mFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,gDAAA,EAAkD;AAAA,UAChD,OAAA,EAAS,aAAA;AAAA,UACT,UAAA,EAAY,QAAA;AAAA,UACZ,OAAA,EAAS,iBAAA;AAAA,UACT,YAAA,EAAc,QAAA;AAAA,UACd,QAAA,EAAU,SAAA;AAAA,UACV,UAAA,EAAY,KAAA;AAAA,UACZ,eAAA,EAAiB,SAAA;AAAA,UACjB,KAAA,EAAO;AAAA,SACT;AAAA,QACA,oDAAA,EAAsD;AAAA,UACpD,OAAA,EAAS,MAAA;AAAA,UACT,YAAA,EAAc,QAAA;AAAA,UACd,MAAA,EAAQ,mBAAA;AAAA,UACR,eAAA,EAAiB;AAAA,SACnB;AAAA,QACA,sDAAA,EAAwD;AAAA,UACtD,OAAA,EAAS,MAAA;AAAA,UACT,UAAA,EAAY,QAAA;AAAA,UACZ,cAAA,EAAgB,eAAA;AAAA,UAChB,OAAA,EAAS,cAAA;AAAA,UACT,eAAA,EAAiB,SAAA;AAAA,UACjB,YAAA,EAAc;AAAA;AAChB,OACD,CAAA;AAAA,IACH;AAAA;AAEJ","file":"preset.cjs","sourcesContent":["export const nozlePreset = {\n theme: {\n extend: {\n colors: {\n nozle: {\n normal: \"#22c55e\",\n warning: \"#f59e0b\",\n critical: \"#ef4444\",\n },\n },\n },\n },\n plugins: [\n function nozlePlugin({\n addComponents,\n }: {\n addComponents: (\n components: Record<string, Record<string, string>>\n ) => void;\n }) {\n addComponents({\n '[data-nozle=\"usage-meter\"][data-variant=\"bar\"]': {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"0.25rem\",\n },\n '[data-nozle=\"usage-meter-track\"]': {\n height: \"0.5rem\",\n borderRadius: \"9999px\",\n backgroundColor: \"#e5e7eb\",\n overflow: \"hidden\",\n },\n '[data-nozle=\"usage-meter-fill\"]': {\n height: \"100%\",\n borderRadius: \"9999px\",\n transition: \"width 300ms ease\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"normal\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#22c55e\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"warning\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#f59e0b\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"critical\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#ef4444\",\n },\n '[data-nozle=\"plan-badge\"][data-variant=\"pill\"]': {\n display: \"inline-flex\",\n alignItems: \"center\",\n padding: \"0.125rem 0.5rem\",\n borderRadius: \"9999px\",\n fontSize: \"0.75rem\",\n fontWeight: \"500\",\n backgroundColor: \"#e0f2fe\",\n color: \"#0369a1\",\n },\n '[data-nozle=\"upgrade-prompt\"][data-variant=\"card\"]': {\n padding: \"1rem\",\n borderRadius: \"0.5rem\",\n border: \"1px solid #e5e7eb\",\n backgroundColor: \"#fefce8\",\n },\n '[data-nozle=\"upgrade-prompt\"][data-variant=\"banner\"]': {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n padding: \"0.75rem 1rem\",\n backgroundColor: \"#fef3c7\",\n borderRadius: \"0.375rem\",\n },\n });\n },\n ],\n};\n"]}
1
+ {"version":3,"sources":["../../src/styles/preset.ts"],"names":[],"mappings":";;;AAIO,IAAM,WAAA,GAAc;AAAA,EACzB,KAAA,EAAO;AAAA,IACL,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ;AAAA,QACN,KAAA,EAAO;AAAA,UACL,MAAA,EAAQ,SAAA;AAAA,UACR,OAAA,EAAS,SAAA;AAAA,UACT,QAAA,EAAU;AAAA;AACZ;AACF;AACF,GACF;AAAA,EACA,OAAA,EAAS;AAAA,IACP,SAAS,WAAA,CAAY;AAAA,MACnB;AAAA,KACF,EAIG;AACD,MAAA,aAAA,CAAc;AAAA,QACZ,gDAAA,EAAkD;AAAA,UAChD,OAAA,EAAS,MAAA;AAAA,UACT,aAAA,EAAe,QAAA;AAAA,UACf,GAAA,EAAK;AAAA,SACP;AAAA,QACA,kCAAA,EAAoC;AAAA,UAClC,MAAA,EAAQ,QAAA;AAAA,UACR,YAAA,EAAc,QAAA;AAAA,UACd,eAAA,EAAiB,SAAA;AAAA,UACjB,QAAA,EAAU;AAAA,SACZ;AAAA,QACA,iCAAA,EAAmC;AAAA,UACjC,MAAA,EAAQ,MAAA;AAAA,UACR,YAAA,EAAc,QAAA;AAAA,UACd,UAAA,EAAY;AAAA,SACd;AAAA,QACA,iFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,kFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,mFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,gDAAA,EAAkD;AAAA,UAChD,OAAA,EAAS,aAAA;AAAA,UACT,UAAA,EAAY,QAAA;AAAA,UACZ,OAAA,EAAS,iBAAA;AAAA,UACT,YAAA,EAAc,QAAA;AAAA,UACd,QAAA,EAAU,SAAA;AAAA,UACV,UAAA,EAAY,KAAA;AAAA,UACZ,eAAA,EAAiB,SAAA;AAAA,UACjB,KAAA,EAAO;AAAA,SACT;AAAA,QACA,oDAAA,EAAsD;AAAA,UACpD,OAAA,EAAS,MAAA;AAAA,UACT,YAAA,EAAc,QAAA;AAAA,UACd,MAAA,EAAQ,mBAAA;AAAA,UACR,eAAA,EAAiB;AAAA,SACnB;AAAA,QACA,sDAAA,EAAwD;AAAA,UACtD,OAAA,EAAS,MAAA;AAAA,UACT,UAAA,EAAY,QAAA;AAAA,UACZ,cAAA,EAAgB,eAAA;AAAA,UAChB,OAAA,EAAS,cAAA;AAAA,UACT,eAAA,EAAiB,SAAA;AAAA,UACjB,YAAA,EAAc;AAAA;AAChB,OACD,CAAA;AAAA,IACH;AAAA;AAEJ","file":"preset.cjs","sourcesContent":["/**\n * @deprecated Since 0.11.0 the components no longer read Tailwind classes or this preset. Theme them with\n * `appearance` on `BillingProvider` (see `@nozle-js/react/themes`). Kept so existing imports still build.\n */\nexport const nozlePreset = {\n theme: {\n extend: {\n colors: {\n nozle: {\n normal: \"#22c55e\",\n warning: \"#f59e0b\",\n critical: \"#ef4444\",\n },\n },\n },\n },\n plugins: [\n function nozlePlugin({\n addComponents,\n }: {\n addComponents: (\n components: Record<string, Record<string, string>>\n ) => void;\n }) {\n addComponents({\n '[data-nozle=\"usage-meter\"][data-variant=\"bar\"]': {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"0.25rem\",\n },\n '[data-nozle=\"usage-meter-track\"]': {\n height: \"0.5rem\",\n borderRadius: \"9999px\",\n backgroundColor: \"#e5e7eb\",\n overflow: \"hidden\",\n },\n '[data-nozle=\"usage-meter-fill\"]': {\n height: \"100%\",\n borderRadius: \"9999px\",\n transition: \"width 300ms ease\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"normal\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#22c55e\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"warning\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#f59e0b\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"critical\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#ef4444\",\n },\n '[data-nozle=\"plan-badge\"][data-variant=\"pill\"]': {\n display: \"inline-flex\",\n alignItems: \"center\",\n padding: \"0.125rem 0.5rem\",\n borderRadius: \"9999px\",\n fontSize: \"0.75rem\",\n fontWeight: \"500\",\n backgroundColor: \"#e0f2fe\",\n color: \"#0369a1\",\n },\n '[data-nozle=\"upgrade-prompt\"][data-variant=\"card\"]': {\n padding: \"1rem\",\n borderRadius: \"0.5rem\",\n border: \"1px solid #e5e7eb\",\n backgroundColor: \"#fefce8\",\n },\n '[data-nozle=\"upgrade-prompt\"][data-variant=\"banner\"]': {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n padding: \"0.75rem 1rem\",\n backgroundColor: \"#fef3c7\",\n borderRadius: \"0.375rem\",\n },\n });\n },\n ],\n};\n"]}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @deprecated Since 0.11.0 the components no longer read Tailwind classes or this preset. Theme them with
3
+ * `appearance` on `BillingProvider` (see `@nozle-js/react/themes`). Kept so existing imports still build.
4
+ */
1
5
  declare const nozlePreset: {
2
6
  theme: {
3
7
  extend: {
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @deprecated Since 0.11.0 the components no longer read Tailwind classes or this preset. Theme them with
3
+ * `appearance` on `BillingProvider` (see `@nozle-js/react/themes`). Kept so existing imports still build.
4
+ */
1
5
  declare const nozlePreset: {
2
6
  theme: {
3
7
  extend: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/styles/preset.ts"],"names":[],"mappings":";AAAO,IAAM,WAAA,GAAc;AAAA,EACzB,KAAA,EAAO;AAAA,IACL,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ;AAAA,QACN,KAAA,EAAO;AAAA,UACL,MAAA,EAAQ,SAAA;AAAA,UACR,OAAA,EAAS,SAAA;AAAA,UACT,QAAA,EAAU;AAAA;AACZ;AACF;AACF,GACF;AAAA,EACA,OAAA,EAAS;AAAA,IACP,SAAS,WAAA,CAAY;AAAA,MACnB;AAAA,KACF,EAIG;AACD,MAAA,aAAA,CAAc;AAAA,QACZ,gDAAA,EAAkD;AAAA,UAChD,OAAA,EAAS,MAAA;AAAA,UACT,aAAA,EAAe,QAAA;AAAA,UACf,GAAA,EAAK;AAAA,SACP;AAAA,QACA,kCAAA,EAAoC;AAAA,UAClC,MAAA,EAAQ,QAAA;AAAA,UACR,YAAA,EAAc,QAAA;AAAA,UACd,eAAA,EAAiB,SAAA;AAAA,UACjB,QAAA,EAAU;AAAA,SACZ;AAAA,QACA,iCAAA,EAAmC;AAAA,UACjC,MAAA,EAAQ,MAAA;AAAA,UACR,YAAA,EAAc,QAAA;AAAA,UACd,UAAA,EAAY;AAAA,SACd;AAAA,QACA,iFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,kFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,mFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,gDAAA,EAAkD;AAAA,UAChD,OAAA,EAAS,aAAA;AAAA,UACT,UAAA,EAAY,QAAA;AAAA,UACZ,OAAA,EAAS,iBAAA;AAAA,UACT,YAAA,EAAc,QAAA;AAAA,UACd,QAAA,EAAU,SAAA;AAAA,UACV,UAAA,EAAY,KAAA;AAAA,UACZ,eAAA,EAAiB,SAAA;AAAA,UACjB,KAAA,EAAO;AAAA,SACT;AAAA,QACA,oDAAA,EAAsD;AAAA,UACpD,OAAA,EAAS,MAAA;AAAA,UACT,YAAA,EAAc,QAAA;AAAA,UACd,MAAA,EAAQ,mBAAA;AAAA,UACR,eAAA,EAAiB;AAAA,SACnB;AAAA,QACA,sDAAA,EAAwD;AAAA,UACtD,OAAA,EAAS,MAAA;AAAA,UACT,UAAA,EAAY,QAAA;AAAA,UACZ,cAAA,EAAgB,eAAA;AAAA,UAChB,OAAA,EAAS,cAAA;AAAA,UACT,eAAA,EAAiB,SAAA;AAAA,UACjB,YAAA,EAAc;AAAA;AAChB,OACD,CAAA;AAAA,IACH;AAAA;AAEJ","file":"preset.js","sourcesContent":["export const nozlePreset = {\n theme: {\n extend: {\n colors: {\n nozle: {\n normal: \"#22c55e\",\n warning: \"#f59e0b\",\n critical: \"#ef4444\",\n },\n },\n },\n },\n plugins: [\n function nozlePlugin({\n addComponents,\n }: {\n addComponents: (\n components: Record<string, Record<string, string>>\n ) => void;\n }) {\n addComponents({\n '[data-nozle=\"usage-meter\"][data-variant=\"bar\"]': {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"0.25rem\",\n },\n '[data-nozle=\"usage-meter-track\"]': {\n height: \"0.5rem\",\n borderRadius: \"9999px\",\n backgroundColor: \"#e5e7eb\",\n overflow: \"hidden\",\n },\n '[data-nozle=\"usage-meter-fill\"]': {\n height: \"100%\",\n borderRadius: \"9999px\",\n transition: \"width 300ms ease\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"normal\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#22c55e\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"warning\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#f59e0b\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"critical\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#ef4444\",\n },\n '[data-nozle=\"plan-badge\"][data-variant=\"pill\"]': {\n display: \"inline-flex\",\n alignItems: \"center\",\n padding: \"0.125rem 0.5rem\",\n borderRadius: \"9999px\",\n fontSize: \"0.75rem\",\n fontWeight: \"500\",\n backgroundColor: \"#e0f2fe\",\n color: \"#0369a1\",\n },\n '[data-nozle=\"upgrade-prompt\"][data-variant=\"card\"]': {\n padding: \"1rem\",\n borderRadius: \"0.5rem\",\n border: \"1px solid #e5e7eb\",\n backgroundColor: \"#fefce8\",\n },\n '[data-nozle=\"upgrade-prompt\"][data-variant=\"banner\"]': {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n padding: \"0.75rem 1rem\",\n backgroundColor: \"#fef3c7\",\n borderRadius: \"0.375rem\",\n },\n });\n },\n ],\n};\n"]}
1
+ {"version":3,"sources":["../../src/styles/preset.ts"],"names":[],"mappings":";AAIO,IAAM,WAAA,GAAc;AAAA,EACzB,KAAA,EAAO;AAAA,IACL,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ;AAAA,QACN,KAAA,EAAO;AAAA,UACL,MAAA,EAAQ,SAAA;AAAA,UACR,OAAA,EAAS,SAAA;AAAA,UACT,QAAA,EAAU;AAAA;AACZ;AACF;AACF,GACF;AAAA,EACA,OAAA,EAAS;AAAA,IACP,SAAS,WAAA,CAAY;AAAA,MACnB;AAAA,KACF,EAIG;AACD,MAAA,aAAA,CAAc;AAAA,QACZ,gDAAA,EAAkD;AAAA,UAChD,OAAA,EAAS,MAAA;AAAA,UACT,aAAA,EAAe,QAAA;AAAA,UACf,GAAA,EAAK;AAAA,SACP;AAAA,QACA,kCAAA,EAAoC;AAAA,UAClC,MAAA,EAAQ,QAAA;AAAA,UACR,YAAA,EAAc,QAAA;AAAA,UACd,eAAA,EAAiB,SAAA;AAAA,UACjB,QAAA,EAAU;AAAA,SACZ;AAAA,QACA,iCAAA,EAAmC;AAAA,UACjC,MAAA,EAAQ,MAAA;AAAA,UACR,YAAA,EAAc,QAAA;AAAA,UACd,UAAA,EAAY;AAAA,SACd;AAAA,QACA,iFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,kFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,mFAAA,EACE;AAAA,UACE,eAAA,EAAiB;AAAA,SACnB;AAAA,QACF,gDAAA,EAAkD;AAAA,UAChD,OAAA,EAAS,aAAA;AAAA,UACT,UAAA,EAAY,QAAA;AAAA,UACZ,OAAA,EAAS,iBAAA;AAAA,UACT,YAAA,EAAc,QAAA;AAAA,UACd,QAAA,EAAU,SAAA;AAAA,UACV,UAAA,EAAY,KAAA;AAAA,UACZ,eAAA,EAAiB,SAAA;AAAA,UACjB,KAAA,EAAO;AAAA,SACT;AAAA,QACA,oDAAA,EAAsD;AAAA,UACpD,OAAA,EAAS,MAAA;AAAA,UACT,YAAA,EAAc,QAAA;AAAA,UACd,MAAA,EAAQ,mBAAA;AAAA,UACR,eAAA,EAAiB;AAAA,SACnB;AAAA,QACA,sDAAA,EAAwD;AAAA,UACtD,OAAA,EAAS,MAAA;AAAA,UACT,UAAA,EAAY,QAAA;AAAA,UACZ,cAAA,EAAgB,eAAA;AAAA,UAChB,OAAA,EAAS,cAAA;AAAA,UACT,eAAA,EAAiB,SAAA;AAAA,UACjB,YAAA,EAAc;AAAA;AAChB,OACD,CAAA;AAAA,IACH;AAAA;AAEJ","file":"preset.js","sourcesContent":["/**\n * @deprecated Since 0.11.0 the components no longer read Tailwind classes or this preset. Theme them with\n * `appearance` on `BillingProvider` (see `@nozle-js/react/themes`). Kept so existing imports still build.\n */\nexport const nozlePreset = {\n theme: {\n extend: {\n colors: {\n nozle: {\n normal: \"#22c55e\",\n warning: \"#f59e0b\",\n critical: \"#ef4444\",\n },\n },\n },\n },\n plugins: [\n function nozlePlugin({\n addComponents,\n }: {\n addComponents: (\n components: Record<string, Record<string, string>>\n ) => void;\n }) {\n addComponents({\n '[data-nozle=\"usage-meter\"][data-variant=\"bar\"]': {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"0.25rem\",\n },\n '[data-nozle=\"usage-meter-track\"]': {\n height: \"0.5rem\",\n borderRadius: \"9999px\",\n backgroundColor: \"#e5e7eb\",\n overflow: \"hidden\",\n },\n '[data-nozle=\"usage-meter-fill\"]': {\n height: \"100%\",\n borderRadius: \"9999px\",\n transition: \"width 300ms ease\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"normal\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#22c55e\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"warning\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#f59e0b\",\n },\n '[data-nozle=\"usage-meter\"][data-level=\"critical\"] [data-nozle=\"usage-meter-fill\"]':\n {\n backgroundColor: \"#ef4444\",\n },\n '[data-nozle=\"plan-badge\"][data-variant=\"pill\"]': {\n display: \"inline-flex\",\n alignItems: \"center\",\n padding: \"0.125rem 0.5rem\",\n borderRadius: \"9999px\",\n fontSize: \"0.75rem\",\n fontWeight: \"500\",\n backgroundColor: \"#e0f2fe\",\n color: \"#0369a1\",\n },\n '[data-nozle=\"upgrade-prompt\"][data-variant=\"card\"]': {\n padding: \"1rem\",\n borderRadius: \"0.5rem\",\n border: \"1px solid #e5e7eb\",\n backgroundColor: \"#fefce8\",\n },\n '[data-nozle=\"upgrade-prompt\"][data-variant=\"banner\"]': {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n padding: \"0.75rem 1rem\",\n backgroundColor: \"#fef3c7\",\n borderRadius: \"0.375rem\",\n },\n });\n },\n ],\n};\n"]}
@@ -0,0 +1,230 @@
1
+ 'use strict';
2
+
3
+ // src/appearance/tokens.ts
4
+ var CSS_VAR = {
5
+ colorPrimary: "--nozle-primary",
6
+ colorPrimaryForeground: "--nozle-primary-foreground",
7
+ colorBackground: "--nozle-background",
8
+ colorCard: "--nozle-card",
9
+ colorForeground: "--nozle-foreground",
10
+ colorMuted: "--nozle-muted",
11
+ colorMutedForeground: "--nozle-muted-foreground",
12
+ colorAccent: "--nozle-accent",
13
+ colorAccentForeground: "--nozle-accent-foreground",
14
+ colorBorder: "--nozle-border",
15
+ colorDanger: "--nozle-destructive",
16
+ colorWarning: "--nozle-warning",
17
+ colorSuccess: "--nozle-success",
18
+ colorSecondary: "--nozle-secondary",
19
+ colorInput: "--nozle-input",
20
+ colorHighlight: "--nozle-highlight",
21
+ colorHighlightForeground: "--nozle-highlight-foreground",
22
+ fontFamily: "--nozle-font",
23
+ fontFamilyNumbers: "--nozle-font-numbers",
24
+ labelFont: "--nozle-label-font",
25
+ labelTextTransform: "--nozle-label-transform",
26
+ labelLetterSpacing: "--nozle-label-spacing",
27
+ fontTitle: "--nozle-font-title",
28
+ fontHeading: "--nozle-font-heading",
29
+ fontMetric: "--nozle-font-metric",
30
+ fontBody: "--nozle-font-body",
31
+ fontMeta: "--nozle-font-meta",
32
+ fontAction: "--nozle-font-action",
33
+ borderRadius: "--nozle-radius",
34
+ borderWidth: "--nozle-border-width",
35
+ shadow: "--nozle-shadow",
36
+ buttonRadius: "--nozle-button-radius",
37
+ buttonBorderWidth: "--nozle-button-border-width",
38
+ buttonBorderColor: "--nozle-button-border",
39
+ buttonShadow: "--nozle-button-shadow"
40
+ };
41
+ var LIGHT = {
42
+ colorPrimary: "#4f46e5",
43
+ colorPrimaryForeground: "#ffffff",
44
+ colorBackground: "#ffffff",
45
+ colorCard: "#ffffff",
46
+ colorForeground: "#111827",
47
+ colorMuted: "#f3f4f6",
48
+ colorAccent: "#eef2ff",
49
+ colorAccentForeground: "#3730a3",
50
+ colorBorder: "#e5e7eb",
51
+ colorDanger: "#dc2626",
52
+ colorWarning: "#d97706",
53
+ colorSuccess: "#16a34a",
54
+ fontFamily: "system-ui, -apple-system, 'Segoe UI', sans-serif",
55
+ borderRadius: "12px",
56
+ borderWidth: "1px",
57
+ shadow: "0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)"
58
+ };
59
+ var ALIASES = {
60
+ colorPrimary: ["--nozle-pricing-highlight", "--nozle-portal-accent"],
61
+ colorBackground: ["--nozle-pricing-bg", "--nozle-portal-background"],
62
+ colorCard: ["--nozle-pricing-card-bg"],
63
+ colorForeground: ["--nozle-portal-text"],
64
+ colorMuted: ["--nozle-portal-muted-background"],
65
+ colorMutedForeground: ["--nozle-portal-muted"],
66
+ colorBorder: ["--nozle-pricing-border", "--nozle-portal-border"],
67
+ borderRadius: ["--nozle-pricing-radius"]
68
+ };
69
+ function chain(key, last = LIGHT[key]) {
70
+ return [CSS_VAR[key], ...ALIASES[key] ?? []].reduceRight(
71
+ (fallback, name) => `var(${name}, ${fallback})`,
72
+ last
73
+ );
74
+ }
75
+ var soft = (color, base, percent) => `color-mix(in srgb, ${color} ${percent}%, ${base})`;
76
+ chain("colorPrimary");
77
+ var card = chain("colorCard");
78
+ chain("colorDanger");
79
+ chain("colorWarning");
80
+ chain("colorSuccess");
81
+ var foreground = chain("colorForeground");
82
+ chain("colorPrimaryForeground");
83
+ chain("fontFamily");
84
+ var DERIVED_MUTED_FOREGROUND = `color-mix(in srgb, ${foreground} 62%, ${card})`;
85
+ ({
86
+ background: chain("colorBackground"),
87
+ muted: chain("colorMuted"),
88
+ mutedForeground: chain("colorMutedForeground", DERIVED_MUTED_FOREGROUND),
89
+ accent: chain("colorAccent"),
90
+ secondary: `var(--nozle-secondary, ${chain("colorMuted")})`,
91
+ input: `var(--nozle-input, ${chain("colorBorder")})`,
92
+ accentForeground: chain("colorAccentForeground"),
93
+ border: chain("colorBorder"),
94
+ radius: chain("borderRadius"),
95
+ borderWidth: chain("borderWidth"),
96
+ shadow: chain("shadow"),
97
+ /** Table header band and the lighter line between table rows. */
98
+ tableHeader: soft(chain("colorMuted"), card, 50),
99
+ rowLine: soft(chain("colorBorder"), card, 70)
100
+ });
101
+
102
+ // src/themes.ts
103
+ var DARK_COLORS = {
104
+ colorPrimary: "#818cf8",
105
+ colorPrimaryForeground: "#0b1020",
106
+ colorBackground: "#0b0f19",
107
+ colorCard: "#111827",
108
+ colorForeground: "#f3f4f6",
109
+ colorMuted: "#1f2937",
110
+ colorMutedForeground: DERIVED_MUTED_FOREGROUND,
111
+ colorAccent: "#1e1b4b",
112
+ colorAccentForeground: "#c7d2fe",
113
+ colorBorder: "#374151",
114
+ colorDanger: "#f87171",
115
+ colorWarning: "#fbbf24",
116
+ colorSuccess: "#4ade80"
117
+ };
118
+ var COLOR_NAMES = Object.keys(DARK_COLORS);
119
+ var LIGHT_COLORS = { ...LIGHT, colorMutedForeground: DERIVED_MUTED_FOREGROUND };
120
+ var light = {
121
+ variables: { ...Object.fromEntries(COLOR_NAMES.map((name) => [name, LIGHT_COLORS[name]])), colorScheme: "light" }
122
+ };
123
+ var dark = {
124
+ variables: { ...DARK_COLORS, shadow: "0 1px 3px rgba(0,0,0,0.5)", colorScheme: "dark" }
125
+ };
126
+ var minimal = {
127
+ variables: { colorPrimary: "#111827", colorPrimaryForeground: "#ffffff", shadow: "none", borderRadius: "6px" }
128
+ };
129
+ var neobrutal = {
130
+ variables: {
131
+ colorPrimary: "#facc15",
132
+ colorPrimaryForeground: "#000000",
133
+ colorBorder: "#000000",
134
+ borderWidth: "2px",
135
+ borderRadius: "0px",
136
+ shadow: "4px 4px 0 var(--nozle-border, #000000)",
137
+ buttonBorderColor: "#000000",
138
+ buttonShadow: "3px 3px 0 #000000",
139
+ labelFont: "800 12px/1.4 var(--nozle-font, system-ui, sans-serif)",
140
+ fontTitle: "800 20px/1.25 var(--nozle-font, system-ui, sans-serif)",
141
+ fontHeading: "800 16px/1.35 var(--nozle-font, system-ui, sans-serif)",
142
+ labelTextTransform: "uppercase",
143
+ labelLetterSpacing: "0.06em"
144
+ }
145
+ };
146
+ var NOZLE_INK = "hsl(138 53% 8%)";
147
+ var nozleCta = { padding: "0.625rem 1.5rem" };
148
+ var nunito = "'Nunito', system-ui, sans-serif";
149
+ var nozleFont = (size) => `${size} var(--nozle-font, ${nunito})`;
150
+ var nozle = {
151
+ variables: {
152
+ colorPrimary: "hsl(11 90% 45%)",
153
+ colorPrimaryForeground: "#ffffff",
154
+ colorBackground: "hsl(138 30% 94%)",
155
+ colorCard: "#ffffff",
156
+ colorForeground: NOZLE_INK,
157
+ colorMuted: "hsl(138 35% 84%)",
158
+ colorMutedForeground: "hsl(138 20% 28%)",
159
+ colorAccent: "hsl(11 90% 95%)",
160
+ colorAccentForeground: "hsl(11 90% 39%)",
161
+ colorBorder: "hsl(138 25% 78%)",
162
+ colorDanger: "hsl(2 74% 46%)",
163
+ colorWarning: "hsl(38 92% 30%)",
164
+ colorSuccess: "hsl(152 62% 28%)",
165
+ colorSecondary: "#ffffff",
166
+ colorInput: "hsl(138 20% 46%)",
167
+ fontFamily: nunito,
168
+ fontFamilyNumbers: "'JetBrains Mono', ui-monospace, monospace",
169
+ labelFont: "800 10.5px/1.4 'JetBrains Mono', ui-monospace, monospace",
170
+ // The dashboard type scale. Prices are Nunito; JetBrains Mono is for table numbers only.
171
+ fontTitle: nozleFont("900 20px/1.15"),
172
+ fontHeading: nozleFont("900 14px/1.25"),
173
+ fontMetric: nozleFont("800 24px/1"),
174
+ fontBody: nozleFont("400 13px/1.5"),
175
+ fontMeta: nozleFont("400 11.5px/1.4"),
176
+ fontAction: nozleFont("800 14px/1.4"),
177
+ labelTextTransform: "uppercase",
178
+ labelLetterSpacing: "0.18em",
179
+ borderRadius: "14px",
180
+ borderWidth: "1px",
181
+ shadow: "none",
182
+ buttonRadius: "9999px",
183
+ buttonBorderWidth: "2px",
184
+ buttonBorderColor: NOZLE_INK,
185
+ buttonShadow: `4px 4px 0 0 ${NOZLE_INK}`,
186
+ colorScheme: "light"
187
+ },
188
+ planCardLayout: "panel",
189
+ elements: {
190
+ pricingTable__grid: { gap: "1rem" },
191
+ planCard__cta: nozleCta,
192
+ checkoutButton: nozleCta,
193
+ upgradeButton: nozleCta,
194
+ checkout__submit: nozleCta
195
+ }
196
+ };
197
+ var nozleDark = {
198
+ variables: {
199
+ ...nozle.variables,
200
+ colorPrimary: "hsl(11 92% 60%)",
201
+ colorPrimaryForeground: "hsl(138 53% 6%)",
202
+ colorBackground: "hsl(138 40% 6%)",
203
+ colorCard: "hsl(138 38% 10%)",
204
+ colorForeground: "hsl(138 20% 94%)",
205
+ colorMuted: "hsl(138 25% 16%)",
206
+ colorMutedForeground: "hsl(138 14% 68%)",
207
+ colorAccent: "hsl(11 60% 16%)",
208
+ colorAccentForeground: "hsl(11 92% 66%)",
209
+ colorBorder: "hsl(138 20% 20%)",
210
+ colorDanger: "hsl(2 78% 64%)",
211
+ colorWarning: "hsl(38 88% 60%)",
212
+ colorSuccess: "hsl(152 55% 55%)",
213
+ colorSecondary: "hsl(138 38% 10%)",
214
+ colorInput: "hsl(138 16% 44%)",
215
+ buttonBorderColor: "hsl(138 45% 3%)",
216
+ buttonShadow: "4px 4px 0 0 hsl(138 45% 3%)",
217
+ colorScheme: "dark"
218
+ },
219
+ planCardLayout: "panel",
220
+ elements: nozle.elements
221
+ };
222
+
223
+ exports.dark = dark;
224
+ exports.light = light;
225
+ exports.minimal = minimal;
226
+ exports.neobrutal = neobrutal;
227
+ exports.nozle = nozle;
228
+ exports.nozleDark = nozleDark;
229
+ //# sourceMappingURL=themes.cjs.map
230
+ //# sourceMappingURL=themes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/appearance/tokens.ts","../src/themes.ts"],"names":[],"mappings":";;;AAsJA,IAAM,OAAA,GAAoC;AAAA,EACxC,YAAA,EAAc,iBAAA;AAAA,EACd,sBAAA,EAAwB,4BAAA;AAAA,EACxB,eAAA,EAAiB,oBAAA;AAAA,EACjB,SAAA,EAAW,cAAA;AAAA,EACX,eAAA,EA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QAAA;AAAA,IACd,iBAAA,EAAmB,KAAA;AAAA,IACnB,iBAAA,EAAmB,SAAA;AAAA,IACnB,YAAA,EAAc,eAAe,SAAS,CAAA,CAAA;AAAA,IACtC,WAAA,EAAa;AAAA,GACf;AAAA,EACA,cAAA,EAAgB,OAAA;AAAA,EAChB,QAAA,EAAU;AAAA,IACR,kBAAA,EAAoB,EAAE,GAAA,EAAK,MAAA,EAAO;AAAA,IAClC,aAAA,EAAe,QAAA;AAAA,IACf,cAAA,EAAgB,QAAA;AAAA,IAChB,aAAA,EAAe,QAAA;AAAA,IACf,gBAAA,EAAkB;AAAA;AAEtB;AAGO,IAAM,SAAA,GAAmB;AAAA,EAC9B,SAAA,EAAW;AAAA,IACT,GAAG,KAAA,CAAM,SAAA;AAAA,IACT,YAAA,EAAc,iBAAA;AAAA,IACd,sBAAA,EAAwB,iBAAA;AAAA,IACxB,eAAA,EAAiB,iBAAA;AAAA,IACjB,SAAA,EAAW,kBAAA;AAAA,IACX,eAAA,EAAiB,kBAAA;AAAA,IACjB,UAAA,EAAY,kBAAA;AAAA,IACZ,oBAAA,EAAsB,kBAAA;AAAA,IACtB,WAAA,EAAa,iBAAA;AAAA,IACb,qBAAA,EAAuB,iBAAA;AAAA,IACvB,WAAA,EAAa,kBAAA;AAAA,IACb,WAAA,EAAa,gBAAA;AAAA,IACb,YAAA,EAAc,iBAAA;AAAA,IACd,YAAA,EAAc,kBAAA;AAAA,IACd,cAAA,EAAgB,kBAAA;AAAA,IAChB,UAAA,EAAY,kBAAA;AAAA,IACZ,iBAAA,EAAmB,iBAAA;AAAA,IACnB,YAAA,EAAc,6BAAA;AAAA,IACd,WAAA,EAAa;AAAA,GACf;AAAA,EACA,cAAA,EAAgB,OAAA;AAAA,EAChB,UAAU,KAAA,CAAM;AAClB","file":"themes.cjs","sourcesContent":["import type { CSSProperties } from \"react\";\n\n/** Design tokens. Every value is a CSS value, for example `#4f46e5`, `oklch(...)` or `var(--primary)`. */\nexport interface Variables {\n colorPrimary?: string;\n colorPrimaryForeground?: string;\n colorBackground?: string;\n colorCard?: string;\n colorForeground?: string;\n colorMuted?: string;\n colorMutedForeground?: string;\n colorAccent?: string;\n colorAccentForeground?: string;\n colorBorder?: string;\n colorDanger?: string;\n colorWarning?: string;\n colorSuccess?: string;\n /** Fill of secondary buttons. Defaults to `colorMuted`. */\n colorSecondary?: string;\n /** Border of secondary buttons and other controls. Defaults to `colorBorder`. */\n colorInput?: string;\n /** The highlighted pricing card (`highlightPlan`). Defaults to `colorPrimary`. */\n colorHighlight?: string;\n /** Text on a filled highlighted card. Defaults to `colorPrimaryForeground`. */\n colorHighlightForeground?: string;\n fontFamily?: string;\n /** Font of numbers in tables. Defaults to the surrounding font. */\n fontFamilyNumbers?: string;\n /** CSS `font` shorthand of small labels: table headers and plan card status labels. */\n labelFont?: string;\n /** `text-transform` of small labels, for example `uppercase`. */\n labelTextTransform?: string;\n /** `letter-spacing` of small labels. */\n labelLetterSpacing?: string;\n /** CSS `font` shorthand of titles: dialog and portal titles. Default `700 20px/1.25` in `fontFamily`. */\n fontTitle?: string;\n /** CSS `font` shorthand of headings: plan names and section headings. Default `600 16px/1.35` in `fontFamily`. */\n fontHeading?: string;\n /**\n * CSS `font` shorthand of large numbers: prices, balances and totals, shown in tabular figures.\n * Default `700 28px/1.1` in `fontFamilyNumbers`, else `fontFamily`.\n */\n fontMetric?: string;\n /** CSS `font` shorthand of body text and descriptions. Default `400 14px/1.5` in `fontFamily`. */\n fontBody?: string;\n /** CSS `font` shorthand of small text: dates, intervals and hints. Default `400 12px/1.4` in `fontFamily`. */\n fontMeta?: string;\n /** CSS `font` shorthand of buttons and links. Default `600 14px/1.4` in `fontFamily`. */\n fontAction?: string;\n borderRadius?: string;\n borderWidth?: string;\n shadow?: string;\n /** Corner radius of buttons. Defaults to a fraction of `borderRadius`. */\n buttonRadius?: string;\n /** Border width of buttons. Defaults to `borderWidth`. */\n buttonBorderWidth?: string;\n /** Border colour of primary buttons. Defaults to the button's fill colour. */\n buttonBorderColor?: string;\n /** Shadow of primary buttons only, for example a hard offset. Defaults to none. */\n buttonShadow?: string;\n /** Sets the CSS `color-scheme` of the component, so native controls follow the theme. */\n colorScheme?: \"light\" | \"dark\" | \"light dark\";\n}\n\nexport type ElementKey =\n | \"pricingTable\"\n | \"pricingTable__toggle\"\n | \"pricingTable__toggleButton\"\n | \"pricingTable__grid\"\n | \"planCard\"\n | \"planCard__header\"\n | \"planCard__badge\"\n | \"planCard__name\"\n | \"planCard__description\"\n | \"planCard__price\"\n | \"planCard__features\"\n | \"planCard__feature\"\n | \"planCard__cta\"\n | \"planComparison\"\n | \"planComparison__table\"\n | \"planComparison__row\"\n | \"planComparison__cell\"\n | \"creditBalance\"\n | \"creditBalance__amount\"\n | \"creditHistory\"\n | \"creditHistory__table\"\n | \"creditHistory__row\"\n | \"usageBreakdown\"\n | \"usageBreakdown__row\"\n | \"usageTrend\"\n | \"usageTrend__bar\"\n | \"usageMeter\"\n | \"usageMeter__label\"\n | \"usageMeter__value\"\n | \"usageMeter__track\"\n | \"usageMeter__fill\"\n | \"usageDashboard\"\n | \"usageAlert\"\n | \"usageAlert__dismiss\"\n | \"currentPlan\"\n | \"currentPlan__name\"\n | \"currentPlan__status\"\n | \"currentPlan__price\"\n | \"currentPlan__scheduled\"\n | \"currentPlan__notice\"\n | \"currentPlan__usage\"\n | \"currentPlan__details\"\n | \"planBadge\"\n | \"paymentMethod\"\n | \"checkoutButton\"\n | \"upgradeButton\"\n | \"checkout\"\n | \"checkout__submit\"\n | \"checkout__error\"\n | \"upgradeModal\"\n | \"upgradeModal__dialog\"\n | \"upgradeModal__actions\"\n | \"upgradePrompt\"\n | \"lockedOverlay\"\n | \"lockedOverlay__panel\"\n | \"billingPortal\"\n | \"billingPortal__section\"\n | \"billingPortal__card\"\n | \"billingPortal__table\"\n | \"billingPortal__error\"\n | \"cancellationControl\"\n | \"planChangeControl\"\n | \"poweredBy\";\n\n/** A string adds a class name; an object adds inline styles. */\nexport type Elements = Partial<Record<ElementKey, string | CSSProperties>>;\n\nexport interface Theme {\n variables?: Variables;\n elements?: Elements;\n /**\n * How plan cards are laid out. `card` (default): name, description, price and ticked features.\n * `panel`: the name in a header band with the plan's status on the right, then price,\n * description and plain feature lines.\n */\n planCardLayout?: \"card\" | \"panel\";\n}\n\n/** A theme (or a stack of themes, last wins) plus your own variables and elements on top. */\nexport interface Appearance extends Theme {\n theme?: Theme | Theme[];\n}\n\ntype ColorKey = Exclude<keyof Variables, \"colorScheme\">;\n\nconst CSS_VAR: Record<ColorKey, string> = {\n colorPrimary: \"--nozle-primary\",\n colorPrimaryForeground: \"--nozle-primary-foreground\",\n colorBackground: \"--nozle-background\",\n colorCard: \"--nozle-card\",\n colorForeground: \"--nozle-foreground\",\n colorMuted: \"--nozle-muted\",\n colorMutedForeground: \"--nozle-muted-foreground\",\n colorAccent: \"--nozle-accent\",\n colorAccentForeground: \"--nozle-accent-foreground\",\n colorBorder: \"--nozle-border\",\n colorDanger: \"--nozle-destructive\",\n colorWarning: \"--nozle-warning\",\n colorSuccess: \"--nozle-success\",\n colorSecondary: \"--nozle-secondary\",\n colorInput: \"--nozle-input\",\n colorHighlight: \"--nozle-highlight\",\n colorHighlightForeground: \"--nozle-highlight-foreground\",\n fontFamily: \"--nozle-font\",\n fontFamilyNumbers: \"--nozle-font-numbers\",\n labelFont: \"--nozle-label-font\",\n labelTextTransform: \"--nozle-label-transform\",\n labelLetterSpacing: \"--nozle-label-spacing\",\n fontTitle: \"--nozle-font-title\",\n fontHeading: \"--nozle-font-heading\",\n fontMetric: \"--nozle-font-metric\",\n fontBody: \"--nozle-font-body\",\n fontMeta: \"--nozle-font-meta\",\n fontAction: \"--nozle-font-action\",\n borderRadius: \"--nozle-radius\",\n borderWidth: \"--nozle-border-width\",\n shadow: \"--nozle-shadow\",\n buttonRadius: \"--nozle-button-radius\",\n buttonBorderWidth: \"--nozle-button-border-width\",\n buttonBorderColor: \"--nozle-button-border\",\n buttonShadow: \"--nozle-button-shadow\",\n};\n\n/** The light values every component falls back to when nothing else sets a token. */\n// The highlight colours default to the primary colours, the muted text to a mix of the text and card\n// colours, the text roles to sizes in `fontFamily`, and the button values to the general ones or to\n// each button's own, so they have no value of their own here.\ntype DerivedKey =\n | \"colorMutedForeground\"\n | \"colorHighlight\"\n | \"colorHighlightForeground\"\n | \"colorSecondary\"\n | \"colorInput\"\n | \"fontFamilyNumbers\"\n | \"labelFont\"\n | \"labelTextTransform\"\n | \"labelLetterSpacing\"\n | \"fontTitle\"\n | \"fontHeading\"\n | \"fontMetric\"\n | \"fontBody\"\n | \"fontMeta\"\n | \"fontAction\"\n | \"buttonRadius\"\n | \"buttonBorderWidth\"\n | \"buttonBorderColor\"\n | \"buttonShadow\";\n\nexport const LIGHT: Required<Omit<Variables, \"colorScheme\" | DerivedKey>> = {\n colorPrimary: \"#4f46e5\",\n colorPrimaryForeground: \"#ffffff\",\n colorBackground: \"#ffffff\",\n colorCard: \"#ffffff\",\n colorForeground: \"#111827\",\n colorMuted: \"#f3f4f6\",\n colorAccent: \"#eef2ff\",\n colorAccentForeground: \"#3730a3\",\n colorBorder: \"#e5e7eb\",\n colorDanger: \"#dc2626\",\n colorWarning: \"#d97706\",\n colorSuccess: \"#16a34a\",\n fontFamily: \"system-ui, -apple-system, 'Segoe UI', sans-serif\",\n borderRadius: \"12px\",\n borderWidth: \"1px\",\n shadow: \"0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)\",\n};\n\n// Variable names from earlier releases, still read after the --nozle-* name.\nconst ALIASES: Partial<Record<ColorKey, string[]>> = {\n colorPrimary: [\"--nozle-pricing-highlight\", \"--nozle-portal-accent\"],\n colorBackground: [\"--nozle-pricing-bg\", \"--nozle-portal-background\"],\n colorCard: [\"--nozle-pricing-card-bg\"],\n colorForeground: [\"--nozle-portal-text\"],\n colorMuted: [\"--nozle-portal-muted-background\"],\n colorMutedForeground: [\"--nozle-portal-muted\"],\n colorBorder: [\"--nozle-pricing-border\", \"--nozle-portal-border\"],\n borderRadius: [\"--nozle-pricing-radius\"],\n};\n\nfunction chain(key: ColorKey, last: string = LIGHT[key as Exclude<ColorKey, DerivedKey>]): string {\n return [CSS_VAR[key], ...(ALIASES[key] ?? [])].reduceRight(\n (fallback, name) => `var(${name}, ${fallback})`,\n last,\n );\n}\n\nconst soft = (color: string, base: string, percent: number) =>\n `color-mix(in srgb, ${color} ${percent}%, ${base})`;\n\nconst primary = chain(\"colorPrimary\");\nconst card = chain(\"colorCard\");\nconst danger = chain(\"colorDanger\");\nconst warning = chain(\"colorWarning\");\nconst success = chain(\"colorSuccess\");\nconst foreground = chain(\"colorForeground\");\nconst primaryForeground = chain(\"colorPrimaryForeground\");\nconst font = chain(\"fontFamily\");\n\n/**\n * Muted text when `colorMutedForeground` is not set: the text colour mixed into the card colour, so\n * changing `colorForeground` recolours muted text too.\n */\nexport const DERIVED_MUTED_FOREGROUND = `color-mix(in srgb, ${foreground} 62%, ${card})`;\n\n/** CSS values for component styles: each reads its token, then older names, then the light value. */\nexport const T = {\n primary,\n primaryForeground,\n highlight: `var(--nozle-highlight, ${primary})`,\n highlightForeground: `var(--nozle-highlight-foreground, ${primaryForeground})`,\n background: chain(\"colorBackground\"),\n card,\n foreground,\n muted: chain(\"colorMuted\"),\n mutedForeground: chain(\"colorMutedForeground\", DERIVED_MUTED_FOREGROUND),\n accent: chain(\"colorAccent\"),\n secondary: `var(--nozle-secondary, ${chain(\"colorMuted\")})`,\n input: `var(--nozle-input, ${chain(\"colorBorder\")})`,\n accentForeground: chain(\"colorAccentForeground\"),\n border: chain(\"colorBorder\"),\n danger,\n warning,\n success,\n font,\n fontNumbers: \"var(--nozle-font-numbers, inherit)\",\n labelFont: `var(--nozle-label-font, 600 12px/1.4 ${font})`,\n fontTitle: `var(--nozle-font-title, 700 20px/1.25 ${font})`,\n fontHeading: `var(--nozle-font-heading, 600 16px/1.35 ${font})`,\n fontMetric: `var(--nozle-font-metric, 700 28px/1.1 var(--nozle-font-numbers, ${font}))`,\n fontBody: `var(--nozle-font-body, 400 14px/1.5 ${font})`,\n fontMeta: `var(--nozle-font-meta, 400 12px/1.4 ${font})`,\n fontAction: `var(--nozle-font-action, 600 14px/1.4 ${font})`,\n labelTransform: \"var(--nozle-label-transform, none)\",\n labelSpacing: \"var(--nozle-label-spacing, normal)\",\n radius: chain(\"borderRadius\"),\n borderWidth: chain(\"borderWidth\"),\n shadow: chain(\"shadow\"),\n /** Tinted backgrounds and borders for notices, derived from the matching colour. */\n dangerSoft: soft(danger, card, 10),\n dangerBorder: soft(danger, card, 30),\n warningSoft: soft(warning, card, 12),\n warningBorder: soft(warning, card, 35),\n /** Status text: the status colour mixed with the text colour, so it stays readable on its soft background. */\n dangerText: soft(danger, foreground, 70),\n warningText: soft(warning, foreground, 70),\n successText: soft(success, foreground, 70),\n successSoft: soft(success, card, 12),\n primarySoft: soft(primary, card, 10),\n primaryHover: soft(primary, \"black\", 88),\n skeleton: soft(foreground, card, 8),\n /** Table header band and the lighter line between table rows. */\n tableHeader: soft(chain(\"colorMuted\"), card, 50),\n rowLine: soft(chain(\"colorBorder\"), card, 70),\n} as const;\n\n/**\n * Text roles. Each sets the role's font (a `font` shorthand variable) and its default colour; a\n * component may change the colour, for example to a status colour or the text on a filled card.\n * `font` comes first because the shorthand resets the longhands after it.\n */\nexport const text = {\n title: { font: T.fontTitle, color: T.foreground },\n heading: { font: T.fontHeading, color: T.foreground },\n metric: { font: T.fontMetric, fontVariantNumeric: \"tabular-nums\", color: T.foreground },\n body: { font: T.fontBody, color: T.foreground },\n secondary: { font: T.fontBody, color: T.mutedForeground },\n meta: { font: T.fontMeta, color: T.mutedForeground },\n label: {\n font: T.labelFont,\n letterSpacing: T.labelSpacing,\n textTransform: T.labelTransform as CSSProperties[\"textTransform\"],\n color: T.mutedForeground,\n },\n action: { font: T.fontAction },\n} satisfies Record<string, CSSProperties>;\n\n/** `border` shorthand using the theme's border width and colour. */\nexport const border = (color: string = T.border) => `${T.borderWidth} solid ${color}`;\n\nconst buttonBorderWidth = `var(--nozle-button-border-width, ${T.borderWidth})`;\n\n/** `border` shorthand for a primary button: `buttonBorderColor` first, then `color`. */\nexport const primaryButtonBorder = (color: string) => `${buttonBorderWidth} solid var(--nozle-button-border, ${color})`;\n\n/** `border` shorthand for any other button. */\nexport const buttonBorder = (color: string) => `${buttonBorderWidth} solid ${color}`;\n\n/** Button corner radius: the `buttonRadius` token, else `fallback`. */\nexport const buttonRadius = (fallback: string) => `var(--nozle-button-radius, ${fallback})`;\n\nexport const buttonShadow = \"var(--nozle-button-shadow, none)\";\n\nexport interface ResolvedAppearance {\n variables: Variables;\n planCardLayout?: \"card\" | \"panel\";\n elements: Partial<Record<ElementKey, { className?: string; style?: CSSProperties }>>;\n}\n\nfunction addTheme(target: ResolvedAppearance, theme: Theme | undefined) {\n if (!theme) return;\n Object.assign(target.variables, theme.variables);\n if (theme.planCardLayout) target.planCardLayout = theme.planCardLayout;\n for (const [key, value] of Object.entries(theme.elements ?? {}) as [ElementKey, string | CSSProperties][]) {\n const current = target.elements[key] ?? {};\n target.elements[key] =\n typeof value === \"string\"\n ? { ...current, className: [current.className, value].filter(Boolean).join(\" \") }\n : { ...current, style: { ...current.style, ...value } };\n }\n}\n\n/**\n * Merges appearances in order, each later one winning: for each, its theme (or themes, in order) then\n * its own variables and elements. Pass the provider's appearance first, then the component's.\n */\nexport function mergeAppearance(...layers: (Appearance | undefined)[]): ResolvedAppearance {\n const resolved: ResolvedAppearance = { variables: {}, elements: {} };\n for (const layer of layers) {\n if (!layer) continue;\n const themes = Array.isArray(layer.theme) ? layer.theme : [layer.theme];\n themes.forEach((theme) => addTheme(resolved, theme));\n addTheme(resolved, layer);\n }\n return resolved;\n}\n\n/** Inline CSS custom properties for a set of variables; `colorScheme` becomes `color-scheme`. */\nexport function toCssVars(variables: Variables): CSSProperties {\n const style: Record<string, string> = {};\n for (const [key, value] of Object.entries(variables)) {\n if (value == null || value === \"\") continue;\n if (key === \"colorScheme\") style.colorScheme = value;\n else style[CSS_VAR[key as ColorKey]] = value;\n }\n return style as CSSProperties;\n}\n\n/** The card frame shared by the data components. */\nexport const surface: CSSProperties = {\n ...text.body,\n background: T.card,\n border: border(),\n borderRadius: T.radius,\n boxShadow: T.shadow,\n padding: \"1.25rem\",\n};\n\n/** Tables, after the Nozle dashboard table: a bordered frame, a tinted header band with small\n * uppercase labels, roomy rows, and numbers right-aligned in tabular figures. */\nexport const table = {\n frame: {\n ...text.body,\n background: T.card,\n border: border(),\n borderRadius: T.radius,\n overflowX: \"auto\",\n minWidth: 0,\n maxWidth: \"100%\",\n } as CSSProperties,\n table: { width: \"100%\", borderCollapse: \"collapse\", font: \"inherit\" } as CSSProperties,\n head: (numeric = false): CSSProperties => ({\n height: \"44px\",\n padding: \"0 20px\",\n textAlign: numeric ? \"right\" : \"left\",\n verticalAlign: \"middle\",\n ...text.label,\n whiteSpace: \"nowrap\",\n background: T.tableHeader,\n borderBottom: border(),\n }),\n /** `last`: the final body row, whose line the frame already draws. */\n cell: (numeric = false, last = false): CSSProperties => ({\n height: \"48px\",\n padding: \"14px 20px\",\n verticalAlign: \"middle\",\n whiteSpace: \"nowrap\",\n textAlign: numeric ? \"right\" : \"left\",\n borderBottom: last ? \"none\" : border(T.rowLine),\n ...(numeric && { fontFamily: T.fontNumbers, fontVariantNumeric: \"tabular-nums\" }),\n }),\n foot: (numeric = false): CSSProperties => ({\n ...table.cell(numeric, true),\n borderTop: border(),\n background: T.tableHeader,\n fontWeight: 600,\n }),\n};\n\nexport type ButtonVariant = \"primary\" | \"secondary\" | \"outline\";\n\n/** Button look shared by every component, from the theme tokens. */\nexport function buttonStyle(variant: ButtonVariant = \"primary\", busy = false): CSSProperties {\n const colors: Record<ButtonVariant, CSSProperties> = {\n primary: { background: T.primary, color: T.primaryForeground, border: primaryButtonBorder(T.primary), boxShadow: buttonShadow },\n secondary: { background: T.secondary, color: T.foreground, border: buttonBorder(T.input) },\n outline: { background: \"transparent\", color: T.primary, border: buttonBorder(T.primary) },\n };\n return {\n ...colors[variant],\n padding: \"0.75rem 1.5rem\",\n borderRadius: buttonRadius(`calc(${T.radius} * 0.75)`),\n ...text.action,\n cursor: busy ? \"wait\" : \"pointer\",\n opacity: busy ? 0.7 : 1,\n transition: \"filter 0.15s ease\",\n };\n}\n","/**\n * Predefined themes for `appearance={{ theme }}`. Colour themes (`light`, `dark`) and shape themes\n * (`minimal`, `neobrutal`) stack: `theme: [neobrutal, dark]`. Any variable can be changed on top.\n * `nozle` and `nozleDark` are the complete Nozle dashboard look, colours and shape together.\n */\nimport { DERIVED_MUTED_FOREGROUND, LIGHT, type Theme, type Variables } from \"./appearance/tokens.js\";\n\nexport type { Appearance, Elements, ElementKey, Theme, Variables } from \"./appearance/tokens.js\";\n\nconst DARK_COLORS = {\n colorPrimary: \"#818cf8\",\n colorPrimaryForeground: \"#0b1020\",\n colorBackground: \"#0b0f19\",\n colorCard: \"#111827\",\n colorForeground: \"#f3f4f6\",\n colorMuted: \"#1f2937\",\n colorMutedForeground: DERIVED_MUTED_FOREGROUND,\n colorAccent: \"#1e1b4b\",\n colorAccentForeground: \"#c7d2fe\",\n colorBorder: \"#374151\",\n colorDanger: \"#f87171\",\n colorWarning: \"#fbbf24\",\n colorSuccess: \"#4ade80\",\n} satisfies Variables;\n\ntype ColorName = keyof typeof DARK_COLORS;\nconst COLOR_NAMES = Object.keys(DARK_COLORS) as ColorName[];\n\nconst LIGHT_COLORS = { ...LIGHT, colorMutedForeground: DERIVED_MUTED_FOREGROUND };\n\n/** The default look, written out so it can be stacked over another theme. */\nexport const light: Theme = {\n variables: { ...Object.fromEntries(COLOR_NAMES.map((name) => [name, LIGHT_COLORS[name]])), colorScheme: \"light\" },\n};\n\n/** Dark surfaces. Put it on a dark page background. */\nexport const dark: Theme = {\n variables: { ...DARK_COLORS, shadow: \"0 1px 3px rgba(0,0,0,0.5)\", colorScheme: \"dark\" },\n};\n\n/** Flat: no shadows, small corners, a near-black primary. */\nexport const minimal: Theme = {\n variables: { colorPrimary: \"#111827\", colorPrimaryForeground: \"#ffffff\", shadow: \"none\", borderRadius: \"6px\" },\n};\n\n/** Thick borders, square corners and a hard offset shadow in the border colour. */\nexport const neobrutal: Theme = {\n variables: {\n colorPrimary: \"#facc15\",\n colorPrimaryForeground: \"#000000\",\n colorBorder: \"#000000\",\n borderWidth: \"2px\",\n borderRadius: \"0px\",\n shadow: \"4px 4px 0 var(--nozle-border, #000000)\",\n buttonBorderColor: \"#000000\",\n buttonShadow: \"3px 3px 0 #000000\",\n labelFont: \"800 12px/1.4 var(--nozle-font, system-ui, sans-serif)\",\n fontTitle: \"800 20px/1.25 var(--nozle-font, system-ui, sans-serif)\",\n fontHeading: \"800 16px/1.35 var(--nozle-font, system-ui, sans-serif)\",\n labelTextTransform: \"uppercase\",\n labelLetterSpacing: \"0.06em\",\n },\n};\n\n// Nozle dashboard tokens (nozle-frontend design system and its plan page): flat panels with\n// hairline borders, pill buttons, and depth only on the primary action, as a hard ink offset.\nconst NOZLE_INK = \"hsl(138 53% 8%)\";\nconst nozleCta = { padding: \"0.625rem 1.5rem\" };\nconst nunito = \"'Nunito', system-ui, sans-serif\";\n// Text role in the theme's font, so a `fontFamily` set on top still applies.\nconst nozleFont = (size: string) => `${size} var(--nozle-font, ${nunito})`;\n\n/**\n * The Nozle dashboard look. The app loads the Nunito and JetBrains Mono fonts; without them the\n * system fonts are used.\n */\nexport const nozle: Theme = {\n variables: {\n colorPrimary: \"hsl(11 90% 45%)\",\n colorPrimaryForeground: \"#ffffff\",\n colorBackground: \"hsl(138 30% 94%)\",\n colorCard: \"#ffffff\",\n colorForeground: NOZLE_INK,\n colorMuted: \"hsl(138 35% 84%)\",\n colorMutedForeground: \"hsl(138 20% 28%)\",\n colorAccent: \"hsl(11 90% 95%)\",\n colorAccentForeground: \"hsl(11 90% 39%)\",\n colorBorder: \"hsl(138 25% 78%)\",\n colorDanger: \"hsl(2 74% 46%)\",\n colorWarning: \"hsl(38 92% 30%)\",\n colorSuccess: \"hsl(152 62% 28%)\",\n colorSecondary: \"#ffffff\",\n colorInput: \"hsl(138 20% 46%)\",\n fontFamily: nunito,\n fontFamilyNumbers: \"'JetBrains Mono', ui-monospace, monospace\",\n labelFont: \"800 10.5px/1.4 'JetBrains Mono', ui-monospace, monospace\",\n // The dashboard type scale. Prices are Nunito; JetBrains Mono is for table numbers only.\n fontTitle: nozleFont(\"900 20px/1.15\"),\n fontHeading: nozleFont(\"900 14px/1.25\"),\n fontMetric: nozleFont(\"800 24px/1\"),\n fontBody: nozleFont(\"400 13px/1.5\"),\n fontMeta: nozleFont(\"400 11.5px/1.4\"),\n fontAction: nozleFont(\"800 14px/1.4\"),\n labelTextTransform: \"uppercase\",\n labelLetterSpacing: \"0.18em\",\n borderRadius: \"14px\",\n borderWidth: \"1px\",\n shadow: \"none\",\n buttonRadius: \"9999px\",\n buttonBorderWidth: \"2px\",\n buttonBorderColor: NOZLE_INK,\n buttonShadow: `4px 4px 0 0 ${NOZLE_INK}`,\n colorScheme: \"light\",\n },\n planCardLayout: \"panel\",\n elements: {\n pricingTable__grid: { gap: \"1rem\" },\n planCard__cta: nozleCta,\n checkoutButton: nozleCta,\n upgradeButton: nozleCta,\n checkout__submit: nozleCta,\n },\n};\n\n/** The Nozle dashboard's dark (ink) look. Put it on a dark page background. */\nexport const nozleDark: Theme = {\n variables: {\n ...nozle.variables,\n colorPrimary: \"hsl(11 92% 60%)\",\n colorPrimaryForeground: \"hsl(138 53% 6%)\",\n colorBackground: \"hsl(138 40% 6%)\",\n colorCard: \"hsl(138 38% 10%)\",\n colorForeground: \"hsl(138 20% 94%)\",\n colorMuted: \"hsl(138 25% 16%)\",\n colorMutedForeground: \"hsl(138 14% 68%)\",\n colorAccent: \"hsl(11 60% 16%)\",\n colorAccentForeground: \"hsl(11 92% 66%)\",\n colorBorder: \"hsl(138 20% 20%)\",\n colorDanger: \"hsl(2 78% 64%)\",\n colorWarning: \"hsl(38 88% 60%)\",\n colorSuccess: \"hsl(152 55% 55%)\",\n colorSecondary: \"hsl(138 38% 10%)\",\n colorInput: \"hsl(138 16% 44%)\",\n buttonBorderColor: \"hsl(138 45% 3%)\",\n buttonShadow: \"4px 4px 0 0 hsl(138 45% 3%)\",\n colorScheme: \"dark\",\n },\n planCardLayout: \"panel\",\n elements: nozle.elements,\n};\n"]}
@@ -0,0 +1,27 @@
1
+ import { T as Theme } from './tokens-Bm4VWWb0.cjs';
2
+ export { A as Appearance, E as ElementKey, a as Elements, V as Variables } from './tokens-Bm4VWWb0.cjs';
3
+ import 'react';
4
+
5
+ /**
6
+ * Predefined themes for `appearance={{ theme }}`. Colour themes (`light`, `dark`) and shape themes
7
+ * (`minimal`, `neobrutal`) stack: `theme: [neobrutal, dark]`. Any variable can be changed on top.
8
+ * `nozle` and `nozleDark` are the complete Nozle dashboard look, colours and shape together.
9
+ */
10
+
11
+ /** The default look, written out so it can be stacked over another theme. */
12
+ declare const light: Theme;
13
+ /** Dark surfaces. Put it on a dark page background. */
14
+ declare const dark: Theme;
15
+ /** Flat: no shadows, small corners, a near-black primary. */
16
+ declare const minimal: Theme;
17
+ /** Thick borders, square corners and a hard offset shadow in the border colour. */
18
+ declare const neobrutal: Theme;
19
+ /**
20
+ * The Nozle dashboard look. The app loads the Nunito and JetBrains Mono fonts; without them the
21
+ * system fonts are used.
22
+ */
23
+ declare const nozle: Theme;
24
+ /** The Nozle dashboard's dark (ink) look. Put it on a dark page background. */
25
+ declare const nozleDark: Theme;
26
+
27
+ export { Theme, dark, light, minimal, neobrutal, nozle, nozleDark };
@@ -0,0 +1,27 @@
1
+ import { T as Theme } from './tokens-Bm4VWWb0.js';
2
+ export { A as Appearance, E as ElementKey, a as Elements, V as Variables } from './tokens-Bm4VWWb0.js';
3
+ import 'react';
4
+
5
+ /**
6
+ * Predefined themes for `appearance={{ theme }}`. Colour themes (`light`, `dark`) and shape themes
7
+ * (`minimal`, `neobrutal`) stack: `theme: [neobrutal, dark]`. Any variable can be changed on top.
8
+ * `nozle` and `nozleDark` are the complete Nozle dashboard look, colours and shape together.
9
+ */
10
+
11
+ /** The default look, written out so it can be stacked over another theme. */
12
+ declare const light: Theme;
13
+ /** Dark surfaces. Put it on a dark page background. */
14
+ declare const dark: Theme;
15
+ /** Flat: no shadows, small corners, a near-black primary. */
16
+ declare const minimal: Theme;
17
+ /** Thick borders, square corners and a hard offset shadow in the border colour. */
18
+ declare const neobrutal: Theme;
19
+ /**
20
+ * The Nozle dashboard look. The app loads the Nunito and JetBrains Mono fonts; without them the
21
+ * system fonts are used.
22
+ */
23
+ declare const nozle: Theme;
24
+ /** The Nozle dashboard's dark (ink) look. Put it on a dark page background. */
25
+ declare const nozleDark: Theme;
26
+
27
+ export { Theme, dark, light, minimal, neobrutal, nozle, nozleDark };
package/dist/themes.js ADDED
@@ -0,0 +1,126 @@
1
+ import { LIGHT, DERIVED_MUTED_FOREGROUND } from './chunk-NLPONQ5O.js';
2
+
3
+ // src/themes.ts
4
+ var DARK_COLORS = {
5
+ colorPrimary: "#818cf8",
6
+ colorPrimaryForeground: "#0b1020",
7
+ colorBackground: "#0b0f19",
8
+ colorCard: "#111827",
9
+ colorForeground: "#f3f4f6",
10
+ colorMuted: "#1f2937",
11
+ colorMutedForeground: DERIVED_MUTED_FOREGROUND,
12
+ colorAccent: "#1e1b4b",
13
+ colorAccentForeground: "#c7d2fe",
14
+ colorBorder: "#374151",
15
+ colorDanger: "#f87171",
16
+ colorWarning: "#fbbf24",
17
+ colorSuccess: "#4ade80"
18
+ };
19
+ var COLOR_NAMES = Object.keys(DARK_COLORS);
20
+ var LIGHT_COLORS = { ...LIGHT, colorMutedForeground: DERIVED_MUTED_FOREGROUND };
21
+ var light = {
22
+ variables: { ...Object.fromEntries(COLOR_NAMES.map((name) => [name, LIGHT_COLORS[name]])), colorScheme: "light" }
23
+ };
24
+ var dark = {
25
+ variables: { ...DARK_COLORS, shadow: "0 1px 3px rgba(0,0,0,0.5)", colorScheme: "dark" }
26
+ };
27
+ var minimal = {
28
+ variables: { colorPrimary: "#111827", colorPrimaryForeground: "#ffffff", shadow: "none", borderRadius: "6px" }
29
+ };
30
+ var neobrutal = {
31
+ variables: {
32
+ colorPrimary: "#facc15",
33
+ colorPrimaryForeground: "#000000",
34
+ colorBorder: "#000000",
35
+ borderWidth: "2px",
36
+ borderRadius: "0px",
37
+ shadow: "4px 4px 0 var(--nozle-border, #000000)",
38
+ buttonBorderColor: "#000000",
39
+ buttonShadow: "3px 3px 0 #000000",
40
+ labelFont: "800 12px/1.4 var(--nozle-font, system-ui, sans-serif)",
41
+ fontTitle: "800 20px/1.25 var(--nozle-font, system-ui, sans-serif)",
42
+ fontHeading: "800 16px/1.35 var(--nozle-font, system-ui, sans-serif)",
43
+ labelTextTransform: "uppercase",
44
+ labelLetterSpacing: "0.06em"
45
+ }
46
+ };
47
+ var NOZLE_INK = "hsl(138 53% 8%)";
48
+ var nozleCta = { padding: "0.625rem 1.5rem" };
49
+ var nunito = "'Nunito', system-ui, sans-serif";
50
+ var nozleFont = (size) => `${size} var(--nozle-font, ${nunito})`;
51
+ var nozle = {
52
+ variables: {
53
+ colorPrimary: "hsl(11 90% 45%)",
54
+ colorPrimaryForeground: "#ffffff",
55
+ colorBackground: "hsl(138 30% 94%)",
56
+ colorCard: "#ffffff",
57
+ colorForeground: NOZLE_INK,
58
+ colorMuted: "hsl(138 35% 84%)",
59
+ colorMutedForeground: "hsl(138 20% 28%)",
60
+ colorAccent: "hsl(11 90% 95%)",
61
+ colorAccentForeground: "hsl(11 90% 39%)",
62
+ colorBorder: "hsl(138 25% 78%)",
63
+ colorDanger: "hsl(2 74% 46%)",
64
+ colorWarning: "hsl(38 92% 30%)",
65
+ colorSuccess: "hsl(152 62% 28%)",
66
+ colorSecondary: "#ffffff",
67
+ colorInput: "hsl(138 20% 46%)",
68
+ fontFamily: nunito,
69
+ fontFamilyNumbers: "'JetBrains Mono', ui-monospace, monospace",
70
+ labelFont: "800 10.5px/1.4 'JetBrains Mono', ui-monospace, monospace",
71
+ // The dashboard type scale. Prices are Nunito; JetBrains Mono is for table numbers only.
72
+ fontTitle: nozleFont("900 20px/1.15"),
73
+ fontHeading: nozleFont("900 14px/1.25"),
74
+ fontMetric: nozleFont("800 24px/1"),
75
+ fontBody: nozleFont("400 13px/1.5"),
76
+ fontMeta: nozleFont("400 11.5px/1.4"),
77
+ fontAction: nozleFont("800 14px/1.4"),
78
+ labelTextTransform: "uppercase",
79
+ labelLetterSpacing: "0.18em",
80
+ borderRadius: "14px",
81
+ borderWidth: "1px",
82
+ shadow: "none",
83
+ buttonRadius: "9999px",
84
+ buttonBorderWidth: "2px",
85
+ buttonBorderColor: NOZLE_INK,
86
+ buttonShadow: `4px 4px 0 0 ${NOZLE_INK}`,
87
+ colorScheme: "light"
88
+ },
89
+ planCardLayout: "panel",
90
+ elements: {
91
+ pricingTable__grid: { gap: "1rem" },
92
+ planCard__cta: nozleCta,
93
+ checkoutButton: nozleCta,
94
+ upgradeButton: nozleCta,
95
+ checkout__submit: nozleCta
96
+ }
97
+ };
98
+ var nozleDark = {
99
+ variables: {
100
+ ...nozle.variables,
101
+ colorPrimary: "hsl(11 92% 60%)",
102
+ colorPrimaryForeground: "hsl(138 53% 6%)",
103
+ colorBackground: "hsl(138 40% 6%)",
104
+ colorCard: "hsl(138 38% 10%)",
105
+ colorForeground: "hsl(138 20% 94%)",
106
+ colorMuted: "hsl(138 25% 16%)",
107
+ colorMutedForeground: "hsl(138 14% 68%)",
108
+ colorAccent: "hsl(11 60% 16%)",
109
+ colorAccentForeground: "hsl(11 92% 66%)",
110
+ colorBorder: "hsl(138 20% 20%)",
111
+ colorDanger: "hsl(2 78% 64%)",
112
+ colorWarning: "hsl(38 88% 60%)",
113
+ colorSuccess: "hsl(152 55% 55%)",
114
+ colorSecondary: "hsl(138 38% 10%)",
115
+ colorInput: "hsl(138 16% 44%)",
116
+ buttonBorderColor: "hsl(138 45% 3%)",
117
+ buttonShadow: "4px 4px 0 0 hsl(138 45% 3%)",
118
+ colorScheme: "dark"
119
+ },
120
+ planCardLayout: "panel",
121
+ elements: nozle.elements
122
+ };
123
+
124
+ export { dark, light, minimal, neobrutal, nozle, nozleDark };
125
+ //# sourceMappingURL=themes.js.map
126
+ //# sourceMappingURL=themes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/themes.ts"],"names":[],"mappings":";;;AASA,IAAM,WAAA,GAAc;AAAA,EAClB,YAAA,EAAc,SAAA;AAAA,EACd,sBAAA,EAAwB,SAAA;AAAA,EACxB,eAAA,EAAiB,SAAA;AAAA,EACjB,SAAA,EAAW,SAAA;AAAA,EACX,eAAA,EAAiB,SAAA;AAAA,EACjB,UAAA,EAAY,SAAA;AAAA,EACZ,oBAAA,EAAsB,wBAAA;AAAA,EACtB,WAAA,EAAa,SAAA;AAAA,EACb,qBAAA,EAAuB,SAAA;AAAA,EACvB,WAAA,EAAa,SAAA;AAAA,EACb,WAAA,EAAa,SAAA;AAAA,EACb,YAAA,EAAc,SAAA;AAAA,EACd,YAAA,EAAc;AAChB,CAAA;AAGA,IAAM,WAAA,GAAc,MAAA,CAAO,IAAA,CAAK,WAAW,CAAA;AAE3C,IAAM,YAAA,GAAe,EAAE,GAAG,KAAA,EAAO,sBAAsB,wBAAA,EAAyB;AAGzE,IAAM,KAAA,GAAe;AAAA,EAC1B,WAAW,EAAE,GAAG,OAAO,WAAA,CAAY,WAAA,CAAY,IAAI,CAAC,IAAA,KAAS,CAAC,IAAA,EAAM,aAAa,IAAI,CAAC,CAAC,CAAC,CAAA,EAAG,aAAa,OAAA;AAC1G;AAGO,IAAM,IAAA,GAAc;AAAA,EACzB,WAAW,EAAE,GAAG,aAAa,MAAA,EAAQ,2BAAA,EAA6B,aAAa,MAAA;AACjF;AAGO,IAAM,OAAA,GAAiB;AAAA,EAC5B,SAAA,EAAW,EAAE,YAAA,EAAc,SAAA,EAAW,wBAAwB,SAAA,EAAW,MAAA,EAAQ,MAAA,EAAQ,YAAA,EAAc,KAAA;AACzG;AAGO,IAAM,SAAA,GAAmB;A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EAAa,kBAAA;AAAA,IACb,WAAA,EAAa,gBAAA;AAAA,IACb,YAAA,EAAc,iBAAA;AAAA,IACd,YAAA,EAAc,kBAAA;AAAA,IACd,cAAA,EAAgB,kBAAA;AAAA,IAChB,UAAA,EAAY,kBAAA;AAAA,IACZ,iBAAA,EAAmB,iBAAA;AAAA,IACnB,YAAA,EAAc,6BAAA;AAAA,IACd,WAAA,EAAa;AAAA,GACf;AAAA,EACA,cAAA,EAAgB,OAAA;AAAA,EAChB,UAAU,KAAA,CAAM;AAClB","file":"themes.js","sourcesContent":["/**\n * Predefined themes for `appearance={{ theme }}`. Colour themes (`light`, `dark`) and shape themes\n * (`minimal`, `neobrutal`) stack: `theme: [neobrutal, dark]`. Any variable can be changed on top.\n * `nozle` and `nozleDark` are the complete Nozle dashboard look, colours and shape together.\n */\nimport { DERIVED_MUTED_FOREGROUND, LIGHT, type Theme, type Variables } from \"./appearance/tokens.js\";\n\nexport type { Appearance, Elements, ElementKey, Theme, Variables } from \"./appearance/tokens.js\";\n\nconst DARK_COLORS = {\n colorPrimary: \"#818cf8\",\n colorPrimaryForeground: \"#0b1020\",\n colorBackground: \"#0b0f19\",\n colorCard: \"#111827\",\n colorForeground: \"#f3f4f6\",\n colorMuted: \"#1f2937\",\n colorMutedForeground: DERIVED_MUTED_FOREGROUND,\n colorAccent: \"#1e1b4b\",\n colorAccentForeground: \"#c7d2fe\",\n colorBorder: \"#374151\",\n colorDanger: \"#f87171\",\n colorWarning: \"#fbbf24\",\n colorSuccess: \"#4ade80\",\n} satisfies Variables;\n\ntype ColorName = keyof typeof DARK_COLORS;\nconst COLOR_NAMES = Object.keys(DARK_COLORS) as ColorName[];\n\nconst LIGHT_COLORS = { ...LIGHT, colorMutedForeground: DERIVED_MUTED_FOREGROUND };\n\n/** The default look, written out so it can be stacked over another theme. */\nexport const light: Theme = {\n variables: { ...Object.fromEntries(COLOR_NAMES.map((name) => [name, LIGHT_COLORS[name]])), colorScheme: \"light\" },\n};\n\n/** Dark surfaces. Put it on a dark page background. */\nexport const dark: Theme = {\n variables: { ...DARK_COLORS, shadow: \"0 1px 3px rgba(0,0,0,0.5)\", colorScheme: \"dark\" },\n};\n\n/** Flat: no shadows, small corners, a near-black primary. */\nexport const minimal: Theme = {\n variables: { colorPrimary: \"#111827\", colorPrimaryForeground: \"#ffffff\", shadow: \"none\", borderRadius: \"6px\" },\n};\n\n/** Thick borders, square corners and a hard offset shadow in the border colour. */\nexport const neobrutal: Theme = {\n variables: {\n colorPrimary: \"#facc15\",\n colorPrimaryForeground: \"#000000\",\n colorBorder: \"#000000\",\n borderWidth: \"2px\",\n borderRadius: \"0px\",\n shadow: \"4px 4px 0 var(--nozle-border, #000000)\",\n buttonBorderColor: \"#000000\",\n buttonShadow: \"3px 3px 0 #000000\",\n labelFont: \"800 12px/1.4 var(--nozle-font, system-ui, sans-serif)\",\n fontTitle: \"800 20px/1.25 var(--nozle-font, system-ui, sans-serif)\",\n fontHeading: \"800 16px/1.35 var(--nozle-font, system-ui, sans-serif)\",\n labelTextTransform: \"uppercase\",\n labelLetterSpacing: \"0.06em\",\n },\n};\n\n// Nozle dashboard tokens (nozle-frontend design system and its plan page): flat panels with\n// hairline borders, pill buttons, and depth only on the primary action, as a hard ink offset.\nconst NOZLE_INK = \"hsl(138 53% 8%)\";\nconst nozleCta = { padding: \"0.625rem 1.5rem\" };\nconst nunito = \"'Nunito', system-ui, sans-serif\";\n// Text role in the theme's font, so a `fontFamily` set on top still applies.\nconst nozleFont = (size: string) => `${size} var(--nozle-font, ${nunito})`;\n\n/**\n * The Nozle dashboard look. The app loads the Nunito and JetBrains Mono fonts; without them the\n * system fonts are used.\n */\nexport const nozle: Theme = {\n variables: {\n colorPrimary: \"hsl(11 90% 45%)\",\n colorPrimaryForeground: \"#ffffff\",\n colorBackground: \"hsl(138 30% 94%)\",\n colorCard: \"#ffffff\",\n colorForeground: NOZLE_INK,\n colorMuted: \"hsl(138 35% 84%)\",\n colorMutedForeground: \"hsl(138 20% 28%)\",\n colorAccent: \"hsl(11 90% 95%)\",\n colorAccentForeground: \"hsl(11 90% 39%)\",\n colorBorder: \"hsl(138 25% 78%)\",\n colorDanger: \"hsl(2 74% 46%)\",\n colorWarning: \"hsl(38 92% 30%)\",\n colorSuccess: \"hsl(152 62% 28%)\",\n colorSecondary: \"#ffffff\",\n colorInput: \"hsl(138 20% 46%)\",\n fontFamily: nunito,\n fontFamilyNumbers: \"'JetBrains Mono', ui-monospace, monospace\",\n labelFont: \"800 10.5px/1.4 'JetBrains Mono', ui-monospace, monospace\",\n // The dashboard type scale. Prices are Nunito; JetBrains Mono is for table numbers only.\n fontTitle: nozleFont(\"900 20px/1.15\"),\n fontHeading: nozleFont(\"900 14px/1.25\"),\n fontMetric: nozleFont(\"800 24px/1\"),\n fontBody: nozleFont(\"400 13px/1.5\"),\n fontMeta: nozleFont(\"400 11.5px/1.4\"),\n fontAction: nozleFont(\"800 14px/1.4\"),\n labelTextTransform: \"uppercase\",\n labelLetterSpacing: \"0.18em\",\n borderRadius: \"14px\",\n borderWidth: \"1px\",\n shadow: \"none\",\n buttonRadius: \"9999px\",\n buttonBorderWidth: \"2px\",\n buttonBorderColor: NOZLE_INK,\n buttonShadow: `4px 4px 0 0 ${NOZLE_INK}`,\n colorScheme: \"light\",\n },\n planCardLayout: \"panel\",\n elements: {\n pricingTable__grid: { gap: \"1rem\" },\n planCard__cta: nozleCta,\n checkoutButton: nozleCta,\n upgradeButton: nozleCta,\n checkout__submit: nozleCta,\n },\n};\n\n/** The Nozle dashboard's dark (ink) look. Put it on a dark page background. */\nexport const nozleDark: Theme = {\n variables: {\n ...nozle.variables,\n colorPrimary: \"hsl(11 92% 60%)\",\n colorPrimaryForeground: \"hsl(138 53% 6%)\",\n colorBackground: \"hsl(138 40% 6%)\",\n colorCard: \"hsl(138 38% 10%)\",\n colorForeground: \"hsl(138 20% 94%)\",\n colorMuted: \"hsl(138 25% 16%)\",\n colorMutedForeground: \"hsl(138 14% 68%)\",\n colorAccent: \"hsl(11 60% 16%)\",\n colorAccentForeground: \"hsl(11 92% 66%)\",\n colorBorder: \"hsl(138 20% 20%)\",\n colorDanger: \"hsl(2 78% 64%)\",\n colorWarning: \"hsl(38 88% 60%)\",\n colorSuccess: \"hsl(152 55% 55%)\",\n colorSecondary: \"hsl(138 38% 10%)\",\n colorInput: \"hsl(138 16% 44%)\",\n buttonBorderColor: \"hsl(138 45% 3%)\",\n buttonShadow: \"4px 4px 0 0 hsl(138 45% 3%)\",\n colorScheme: \"dark\",\n },\n planCardLayout: \"panel\",\n elements: nozle.elements,\n};\n"]}