Design System Playground.
Tune the tokens, explore component states and see a visual system respond in real time.
Component laboratory
Interactive demonstration — theme changes stay inside this preview.
Button
medium / solid--xp-primary
#395c3b
#395c3b
--xp-on-primary
#ffffff
#ffffff
--xp-bg
#f3f5ef
#f3f5ef
--xp-surface
#ffffff
#ffffff
--xp-text
#263123
#263123
--xp-border
#87977b
#87977b
--xp-radius
8px
8px
--xp-scale
1
1
--xp-space
18px
18px
--xp-error
#a32e24
#a32e24
--xp-shadow
0 8px 24px #2631230d
0 8px 24px #2631230d
Button text automatically uses the stronger contrasting foreground. Focus, error, and disabled states remain visible.
import { LabExample } from '@/components/explore/design-system/primitives';
// Use within the existing LocaleProvider and the playground CSS module.
export default function Preview() {
return <LabExample name="Button" config={{
"primary": "#395c3b",
"radius": 8,
"density": "comfortable",
"scale": 1,
"dark": false,
"variant": "solid",
"size": "medium",
"state": "default"
}} />;
}