Skip to content

Commit

Permalink
fix: sandpack border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Nov 2, 2024
1 parent 1a7d0a6 commit 5752ba0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/mdx/Sandpack/Sandpack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const fullConfig = resolveConfig(tailwindConfig)
// console.log('fullConfig', fullConfig.theme.colors)
// console.log(fullConfig.theme.fontSize.sm)
// console.log(fullConfig.theme.fontFamily.mono)
// console.log(fullConfig.theme.borderRadius.lg)

function getSandpackDependencies(folder: string) {
const pkgPath = `${folder}/package.json`
Expand Down Expand Up @@ -97,6 +98,8 @@ export const Sandpack = async ({
files={_files}
customSetup={customSetup}
options={options}
// @ts-ignore
style={{ '--sp-border-radius': fullConfig.theme.borderRadius.lg }}
>
<SandpackLayout>
<SandpackCodeEditor />
Expand Down

0 comments on commit 5752ba0

Please sign in to comment.