@@ -130,12 +130,12 @@ export function ApiEndpoint(props: { metadata: ApiEndpointMeta }) {
130130 hasMultipleExamples = { true }
131131 />
132132 ) : (
133- < div className = "rounded-lg border" >
133+ < div className = "rounded-lg border bg-card " >
134134 < RequestExample
135135 codeExamples = { requestExamples . map ( ( example ) => ( {
136136 code : (
137137 < CodeBlock
138- className = "rounded-none border-none"
138+ className = "rounded-none border-none !bg-card "
139139 code = { example . code }
140140 containerClassName = "m-0"
141141 lang = { example . lang }
@@ -190,16 +190,17 @@ export function ApiEndpoint(props: { metadata: ApiEndpointMeta }) {
190190 >
191191 Response
192192 </ Heading >
193- < div className = "overflow-hidden rounded-lg border" >
193+ < div className = "overflow-hidden rounded-lg border bg-card " >
194194 < Tabs className = "w-full" defaultValue = { responseKeys [ 0 ] } >
195- < TabsList className = "w-full" >
195+ < TabsList className = "w-full pt-1 " >
196196 { responseKeys . map ( ( status ) => (
197197 < TabsTrigger key = { status } value = { status } >
198- < div className = "flex items-center gap-2 py-1 " >
198+ < div className = "flex items-center gap-1.5 px-0.5 " >
199199 < span
200200 className = { cn ( "h-2 w-2 rounded-full" , {
201201 "bg-green-500" : status . startsWith ( "2" ) ,
202202 "bg-red-500" : status . startsWith ( "4" ) ,
203+ "bg-orange-500" : status . startsWith ( "3" ) ,
203204 "bg-yellow-500" : status . startsWith ( "5" ) ,
204205 } ) }
205206 />
@@ -212,7 +213,7 @@ export function ApiEndpoint(props: { metadata: ApiEndpointMeta }) {
212213 { responseKeys . map ( ( status ) => (
213214 < TabsContent className = "m-0" key = { status } value = { status } >
214215 < CodeBlock
215- className = "rounded-none border-none"
216+ className = "rounded-none border-none !bg-card "
216217 code = { responseExamples [ status ] as string }
217218 containerClassName = "m-0"
218219 lang = "json"
@@ -237,15 +238,16 @@ function ParameterSection(props: {
237238 summary = {
238239 < div className = "flex items-center gap-3" >
239240 < span className = "text-sm font-medium" > { props . title } </ span >
240- < span className = "text-xs text-muted-foreground bg-muted px-2 py-1 rounded " >
241+ < span className = "text-xs text-muted-foreground bg-muted size-6 rounded-full inline-flex justify-center items-center " >
241242 { props . parameters . length }
242243 </ span >
243244 </ div >
244245 }
245246 accordionItemClassName = "border-0 my-0"
246247 accordionTriggerClassName = "p-4 hover:bg-muted/50 transition-colors"
248+ headingClassName = "!no-underline"
247249 >
248- < div className = "px-4 pb-4" >
250+ < div className = "px-4 pb-4 space-y-2 " >
249251 { props . parameters
250252 . sort ( ( a , b ) => {
251253 if ( a . required === b . required ) {
@@ -266,16 +268,16 @@ function InlineParameterItem({ param }: { param: APIParameter }) {
266268 return (
267269 < div className = "flex flex-col gap-2 p-3" >
268270 < div className = "flex items-center gap-2 flex-wrap" >
269- < code className = "text-foreground text-sm font-mono bg-background px-2 py-1 rounded border " >
271+ < code className = "text-foreground text-base font-mono font-medium " >
270272 { param . name }
271273 </ code >
272274 { param . type && (
273- < span className = "text-xs text-muted-foreground px-2 py-1 bg-muted rounded" >
275+ < span className = "text-xs text-muted-foreground px-2 py-1 bg-muted rounded-lg " >
274276 { param . type }
275277 </ span >
276278 ) }
277279 { param . required && (
278- < span className = "text-xs text-warning-text px-2 py-1 rounded border border-warning-text" >
280+ < span className = "text-xs text-warning-text px-2 py-1 rounded-lg border border-warning-text/30 bg-warning-text/15 " >
279281 Required
280282 </ span >
281283 ) }
@@ -289,6 +291,7 @@ function InlineParameterItem({ param }: { param: APIParameter }) {
289291 < div className = "text-sm flex flex-col gap-2" >
290292 < span className = "text-muted-foreground" > Example: </ span >
291293 < CodeBlock
294+ className = "!bg-card"
292295 code = {
293296 typeof param . example === "object"
294297 ? JSON . stringify ( param . example )
0 commit comments