@shophost/react 2.0.43 → 2.0.45

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/README.md CHANGED
@@ -86,13 +86,22 @@ import React from "react";
86
86
 
87
87
  export function AppProvider({ children, locale }: { children: React.ReactNode; locale: Locale }) {
88
88
  return (
89
- <ShophostProvider baseUrl={process.env.NEXT_PUBLIC_APP_DOMAIN!} locale={locale} organizationId={process.env.NEXT_PUBLIC_ORGANIZATION_ID!} modifiersModal={<ModifiersDialog />}>
89
+ <ShophostProvider
90
+ baseUrl={process.env.NEXT_PUBLIC_APP_DOMAIN!}
91
+ locale={locale}
92
+ organizationId={process.env.NEXT_PUBLIC_ORGANIZATION_ID!}
93
+ appearance={{ primaryColor: "#0f766e" }}
94
+ modifiersModal={<ModifiersDialog />}
95
+ >
90
96
  {children}
91
97
  </ShophostProvider>
92
98
  );
93
99
  }
94
100
  ```
95
101
 
102
+ `appearance.primaryColor` accepts either a Tailwind color token like `bg-emerald-500`
103
+ or a raw CSS color such as `#10b981`.
104
+
96
105
  Mount the built-in checkout and account flows:
97
106
 
98
107
  ```tsx