Skip to content

Commit

Permalink
chore: fix frame demo (#3001)
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 authored Oct 16, 2024
1 parent 716abc5 commit 4950ed0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/src/demos/frame.demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { css } from 'styled-system/css'

export const Demo = () => {
const { resolvedTheme } = useTheme()

const color = resolvedTheme === 'dark' ? '#FFF' : '#000'
const bg = resolvedTheme === 'dark' ? '#111110' : '#FFF'
return (
<Frame
className={css({
Expand All @@ -14,7 +16,9 @@ export const Demo = () => {
borderWidth: '1px',
height: 'calc(var(--height) + 2px)',
})}
head={<style>{'.frame-root {font-family:sans-serif; padding: 24px}'}</style>}
head={
<style>{`.frame-root {font-family:sans-serif; padding: 24px} body{background: ${bg} }`}</style>
}
>
<h1 style={{ color }}>Ark UI / Frame</h1>
<p style={{ marginBottom: '10px', marginTop: '4px', color }}>
Expand Down

0 comments on commit 4950ed0

Please sign in to comment.