Skip to content

Commit 0e8f1f6

Browse files
committed
runtime-theme
1 parent cab8ef5 commit 0e8f1f6

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

Diff for: src/frontend/apps/impress/public/styles.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:root {
2+
--c--theme--colors--primary-text: #12ff4d;
3+
}

Diff for: src/frontend/apps/impress/src/core/config/ConfigProvider.tsx

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Loader } from '@openfun/cunningham-react';
2+
import Head from 'next/head';
23
import { PropsWithChildren, useEffect } from 'react';
34

45
import { Box } from '@/components';
@@ -54,10 +55,15 @@ export const ConfigProvider = ({ children }: PropsWithChildren) => {
5455
}
5556

5657
return (
57-
<AnalyticsProvider>
58-
<CrispProvider websiteId={conf?.CRISP_WEBSITE_ID}>
59-
{children}
60-
</CrispProvider>
61-
</AnalyticsProvider>
58+
<>
59+
<Head>
60+
<link rel="stylesheet" href="http://localhost:3000/styles.css" />
61+
</Head>
62+
<AnalyticsProvider>
63+
<CrispProvider websiteId={conf?.CRISP_WEBSITE_ID}>
64+
{children}
65+
</CrispProvider>
66+
</AnalyticsProvider>
67+
</>
6268
);
6369
};

0 commit comments

Comments
 (0)