Skip to content

Commit 5752ba0

Browse files
committed
fix: sandpack border-radius
1 parent 1a7d0a6 commit 5752ba0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/mdx/Sandpack/Sandpack.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const fullConfig = resolveConfig(tailwindConfig)
1818
// console.log('fullConfig', fullConfig.theme.colors)
1919
// console.log(fullConfig.theme.fontSize.sm)
2020
// console.log(fullConfig.theme.fontFamily.mono)
21+
// console.log(fullConfig.theme.borderRadius.lg)
2122

2223
function getSandpackDependencies(folder: string) {
2324
const pkgPath = `${folder}/package.json`
@@ -97,6 +98,8 @@ export const Sandpack = async ({
9798
files={_files}
9899
customSetup={customSetup}
99100
options={options}
101+
// @ts-ignore
102+
style={{ '--sp-border-radius': fullConfig.theme.borderRadius.lg }}
100103
>
101104
<SandpackLayout>
102105
<SandpackCodeEditor />

0 commit comments

Comments
 (0)