Skip to content

Commit

Permalink
refa: apply surface color in core theme again (#3901)
Browse files Browse the repository at this point in the history
* refa: apply surface color in core theme again

* Create two-clouds-press.md
  • Loading branch information
sebald committed May 3, 2024
1 parent cd87f7c commit 99d68a4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-clouds-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marigold/theme-core": patch
---

refa: apply surface color in core theme again
5 changes: 1 addition & 4 deletions docs/ui/ComponentDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ export const ComponentDemo = ({ name, children }: ComponentDemoProps) => {
>
<div id="portalContainer" className="not-prose" />
<OverlayContainerProvider value="portalContainer">
<MarigoldProvider
theme={(current && themes[current]) as Theme}
className="bg-bg-surface"
>
<MarigoldProvider theme={(current && themes[current]) as Theme}>
<div className="not-prose size-full overflow-x-auto p-4">
<Wrapper>
<Demo />
Expand Down
2 changes: 1 addition & 1 deletion packages/system/src/hooks/useTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function ThemeProvider<T extends Theme>({
const root = theme.root?.();
return (
<InternalContext.Provider value={theme}>
<div className={cn(root ? root : '', className)}>{children}</div>
<div className={cn(root, className)}>{children}</div>
</InternalContext.Provider>
);
}
2 changes: 1 addition & 1 deletion themes/theme-core/src/root.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Theme, cva } from '@marigold/system';

export const root: Theme['root'] = cva(
'font-body text-text-base text-[13px] leading-normal'
'font-body text-text-base bg-bg-surface text-[13px] leading-normal'
);

0 comments on commit 99d68a4

Please sign in to comment.