From d7d9321d48d8428fc7c7f4bb2739cf5888496fa8 Mon Sep 17 00:00:00 2001 From: Rinat Date: Tue, 26 Nov 2024 18:21:21 +0100 Subject: [PATCH] Allow updating styles from extensions (#151) --- ...affoldEthAppWithProviders.tsx.template.mjs | 5 +- .../{globals.css => globals.css.template.mjs} | 9 ++ .../nextjs/tailwind.config.js.template.mjs | 136 +++++++++--------- ...etadata.ts => getMetadata.ts.template.mjs} | 21 ++- 4 files changed, 96 insertions(+), 75 deletions(-) rename templates/base/packages/nextjs/styles/{globals.css => globals.css.template.mjs} (65%) rename templates/base/packages/nextjs/utils/scaffold-eth/{getMetadata.ts => getMetadata.ts.template.mjs} (61%) diff --git a/templates/base/packages/nextjs/components/ScaffoldEthAppWithProviders.tsx.template.mjs b/templates/base/packages/nextjs/components/ScaffoldEthAppWithProviders.tsx.template.mjs index ae951562e..6119301a2 100644 --- a/templates/base/packages/nextjs/components/ScaffoldEthAppWithProviders.tsx.template.mjs +++ b/templates/base/packages/nextjs/components/ScaffoldEthAppWithProviders.tsx.template.mjs @@ -1,6 +1,6 @@ import { withDefaults } from "../../../../utils.js"; -const contents = ({ providerNames, providerSetups, providerImports, providerProps }) => { +const contents = ({ providerNames, providerSetups, providerImports, providerProps, globalClassNames }) => { // filter out empty strings const providerOpeningTags = providerNames.filter(Boolean).map((name, index) => `<${name} ${providerProps[index]}>`); @@ -27,7 +27,7 @@ const ScaffoldEthApp = ({ children }: { children: React.ReactNode }) => { return ( <> -
+
{children}