\definecolor[thm]
	[r=0.717189,g=0.789151,b=0.853407]
\definecolor[thmtxt]
	[r=0.113817,g=0.246983,b=0.277211]
	
\defineframedtext	[thmbackground]
				[backgroundcolor=thm,
				background=color,
				corner=round,
				width=broad,
				frame=on,
				framecolor=black,
				location=paragraph,
				color=thmtxt]
				
\setupenumerations	[alternative=hanging,
        			width=fit,
        			right={~},
        			way=bysection,
			prefix=chapter,
			distance=0.1em,
        			prefixsegments={chapter:section}]
			
\defineenumeration	[theorem]
				[text=Theorem,
				before={\startthmbackground},
				after={\stopthmbackground},
        			style=italic,
        			title=yes,
        			titleleft=(,
        			titleright=),
        			]

\starttext

\starttheorem
\input tufte
\stoptheorem

\starttheorem
\input knuth
\stoptheorem

\stoptext