@@ -2537,7 +2537,7 @@ function createParameterForm(parameterCount) {
2537
2537
header . className = "flex justify-between items-center" ;
2538
2538
2539
2539
const title = document . createElement ( "span" ) ;
2540
- title . className = "font-semibold text-gray-800" ;
2540
+ title . className = "font-semibold text-gray-800 dark:text-gray-200 " ;
2541
2541
title . textContent = `Parameter ${ parameterCount } ` ;
2542
2542
2543
2543
const deleteBtn = document . createElement ( "button" ) ;
@@ -2558,7 +2558,8 @@ function createParameterForm(parameterCount) {
2558
2558
// Parameter name field with validation
2559
2559
const nameGroup = document . createElement ( "div" ) ;
2560
2560
const nameLabel = document . createElement ( "label" ) ;
2561
- nameLabel . className = "block text-sm font-medium text-gray-700" ;
2561
+ nameLabel . className =
2562
+ "block text-sm font-medium text-gray-700 dark:text-gray-300" ;
2562
2563
nameLabel . textContent = "Parameter Name" ;
2563
2564
2564
2565
const nameInput = document . createElement ( "input" ) ;
@@ -2586,7 +2587,8 @@ function createParameterForm(parameterCount) {
2586
2587
// Type field
2587
2588
const typeGroup = document . createElement ( "div" ) ;
2588
2589
const typeLabel = document . createElement ( "label" ) ;
2589
- typeLabel . className = "block text-sm font-medium text-gray-700" ;
2590
+ typeLabel . className =
2591
+ "block text-sm font-medium text-gray-700 dark:text-gray-300" ;
2590
2592
typeLabel . textContent = "Type" ;
2591
2593
2592
2594
const typeSelect = document . createElement ( "select" ) ;
@@ -2621,7 +2623,8 @@ function createParameterForm(parameterCount) {
2621
2623
descGroup . className = "mt-4" ;
2622
2624
2623
2625
const descLabel = document . createElement ( "label" ) ;
2624
- descLabel . className = "block text-sm font-medium text-gray-700" ;
2626
+ descLabel . className =
2627
+ "block text-sm font-medium text-gray-700 dark:text-gray-300" ;
2625
2628
descLabel . textContent = "Description" ;
2626
2629
2627
2630
const descTextarea = document . createElement ( "textarea" ) ;
@@ -2646,7 +2649,8 @@ function createParameterForm(parameterCount) {
2646
2649
"h-4 w-4 text-indigo-600 border border-gray-300 rounded" ;
2647
2650
2648
2651
const requiredLabel = document . createElement ( "label" ) ;
2649
- requiredLabel . className = "ml-2 text-sm font-medium text-gray-700" ;
2652
+ requiredLabel . className =
2653
+ "ml-2 text-sm font-medium text-gray-700 dark:text-gray-300" ;
2650
2654
requiredLabel . textContent = "Required" ;
2651
2655
2652
2656
requiredGroup . appendChild ( requiredInput ) ;
@@ -2979,7 +2983,8 @@ async function testTool(toolId) {
2979
2983
// Field label - use textContent to avoid double escaping
2980
2984
const label = document . createElement ( "label" ) ;
2981
2985
label . textContent = keyValidation . value ;
2982
- label . className = "block text-sm font-medium text-gray-700" ;
2986
+ label . className =
2987
+ "block text-sm font-medium text-gray-700 dark:text-gray-300" ;
2983
2988
fieldDiv . appendChild ( label ) ;
2984
2989
2985
2990
// Description help text - use textContent
@@ -2997,15 +3002,15 @@ async function testTool(toolId) {
2997
3002
input . required =
2998
3003
schema . required && schema . required . includes ( key ) ;
2999
3004
input . className =
3000
- "mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 dark:bg-gray-900 dark:text-gray-300 dark:border-gray-700 dark:focus:border-indigo-400 dark:focus:ring-indigo-400" ;
3005
+ "mt-1 block w-full rounded-md border border -gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 dark:bg-gray-900 text-gray-700 dark:text-gray-300 dark:border-gray-700 dark:focus:border-indigo-400 dark:focus:ring-indigo-400" ;
3001
3006
3002
3007
// Add validation based on type
3003
3008
if ( prop . type === "number" ) {
3004
3009
input . type = "number" ;
3005
3010
} else if ( prop . type === "boolean" ) {
3006
3011
input . type = "checkbox" ;
3007
3012
input . className =
3008
- "mt-1 h-4 w-4 text-indigo-600 border-gray-300 rounded" ;
3013
+ "mt-1 h-4 w-4 text-indigo-600 dark:text-indigo-200 border border-gray-300 rounded" ;
3009
3014
}
3010
3015
3011
3016
fieldDiv . appendChild ( input ) ;
@@ -3595,7 +3600,7 @@ async function viewTool(toolId) {
3595
3600
// Create annotation badges safely - NO ESCAPING since we're using textContent
3596
3601
const renderAnnotations = ( annotations ) => {
3597
3602
if ( ! annotations || Object . keys ( annotations ) . length === 0 ) {
3598
- return '<p><strong>Annotations:</strong> <span class="text-gray-500 ">None</span></p>' ;
3603
+ return '<p><strong>Annotations:</strong> <span class="text-gray-600 dark:text-gray-300 ">None</span></p>' ;
3599
3604
}
3600
3605
3601
3606
const badges = [ ] ;
@@ -3645,7 +3650,7 @@ async function viewTool(toolId) {
3645
3650
) {
3646
3651
const value = annotations [ key ] ;
3647
3652
badges . push (
3648
- `<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800 mr-1 mb-1 custom-annotation" data-key="${ key } " data-value="${ value } "></span>` ,
3653
+ `<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-600 dark:text-gray-200 mr-1 mb-1 custom-annotation" data-key="${ key } " data-value="${ value } "></span>` ,
3649
3654
) ;
3650
3655
}
3651
3656
} ) ;
@@ -3664,7 +3669,7 @@ async function viewTool(toolId) {
3664
3669
if ( toolDetailsDiv ) {
3665
3670
// Create structure safely without double-escaping
3666
3671
const safeHTML = `
3667
- <div class="space-y-2 dark:bg-gray-900 dark:text-gray-100 ">
3672
+ <div class="space-y-2 dark:bg-gray-800 dark:text-gray-300 ">
3668
3673
<p><strong>Name:</strong> <span class="tool-name"></span></p>
3669
3674
<p><strong>URL:</strong> <span class="tool-url"></span></p>
3670
3675
<p><strong>Type:</strong> <span class="tool-type"></span></p>
@@ -3674,11 +3679,11 @@ async function viewTool(toolId) {
3674
3679
${ renderAnnotations ( tool . annotations ) }
3675
3680
<div>
3676
3681
<strong>Headers:</strong>
3677
- <pre class="mt-1 bg-gray-100 p-2 rounded dark:bg-gray-800 dark:text-gray-100 tool-headers"></pre>
3682
+ <pre class="mt-1 bg-gray-100 p-2 rounded dark:bg-gray-800 dark:text-gray-200 tool-headers"></pre>
3678
3683
</div>
3679
3684
<div>
3680
3685
<strong>Input Schema:</strong>
3681
- <pre class="mt-1 bg-gray-100 p-2 rounded dark:bg-gray-800 dark:text-gray-100 tool-schema"></pre>
3686
+ <pre class="mt-1 bg-gray-100 p-2 rounded dark:bg-gray-800 dark:text-gray-200 tool-schema"></pre>
3682
3687
</div>
3683
3688
<div>
3684
3689
<strong>Metrics:</strong>
0 commit comments