This commit is contained in:
David Nguyen
2025-02-11 02:04:00 +11:00
parent d24f67d922
commit 548d92c2fc
22 changed files with 1260 additions and 1152 deletions

View File

@ -1,11 +1,10 @@
import * as ReactEmail from '@react-email/render';
import config from '@documenso/tailwind-config';
import { Tailwind } from './components';
import { BrandingProvider, type BrandingSettings } from './providers/branding';
// Todo:
// import config from '@documenso/tailwind-config';
export type RenderOptions = ReactEmail.Options & {
branding?: BrandingSettings;
};
@ -18,7 +17,7 @@ export const render = (element: React.ReactNode, options?: RenderOptions) => {
config={{
theme: {
extend: {
// colors: config.theme.extend.colors,
colors: config.theme.extend.colors,
},
},
}}
@ -37,7 +36,7 @@ export const renderAsync = async (element: React.ReactNode, options?: RenderOpti
config={{
theme: {
extend: {
// colors: config.theme.extend.colors,
colors: config.theme.extend.colors,
},
},
}}