import { define } from 'forge' import { theme } from './theme' export const Box = define('Box', { // Base box - minimal styling, designed for customization via style prop }) export const RedBox = define('RedBox', { background: theme('colors-red'), color: theme('colors-bg'), padding: theme('spacing-1'), textAlign: 'center', }) export const GreenBox = define('GreenBox', { background: theme('colors-success'), color: theme('colors-bg'), padding: theme('spacing-1'), textAlign: 'center', }) export const BlueBox = define('BlueBox', { background: theme('colors-blue'), color: theme('colors-bg'), padding: theme('spacing-1'), textAlign: 'center', }) export const GrayBox = define('GrayBox', { background: theme('colors-bgMuted'), padding: theme('spacing-4'), }) export const Test = () => { return (

Box Component

Basic Box with custom background and text color Box with padding and border

Color Variants

Red Box Green Box Blue Box Gray Box

Nested Boxes

Nested boxes demonstration
) }