@@ -153,11 +153,11 @@ export const Configurator = ({ args, template, env }) => {
153
153
<div >
154
154
<div className = " p-4 mt-2" >
155
155
156
- <div id = " config" className = " border rounded-lg overflow-hidden h-12 mb-4" style = { {
156
+ <div id = " config" className = " border rounded-lg overflow-hidden h-12 mb-4 dark:border-gray-700 " style = { {
157
157
height: " 66.4px" ,
158
158
transition: ' height 0.5s ease-in-out' ,
159
159
}} >
160
- <div className = " flex cursor-pointer items-center justify-between bg-gray-100 p-4" onClick = { () => {
160
+ <div className = " flex cursor-pointer items-center justify-between bg-gray-100 p-4 dark:bg-gray-700 " onClick = { () => {
161
161
const config = document .getElementById (' config' );
162
162
const h12Exist = config .classList .contains (' h-12' ); // 12 在那就是未展开, auto 就是展开
163
163
if (! h12Exist ) {
@@ -184,8 +184,8 @@ export const Configurator = ({ args, template, env }) => {
184
184
config .classList .remove (' h-12' );
185
185
}
186
186
}} >
187
- <h2 className = " text-sm text-gray-500" >
188
- <span className = " text-black" >ecosystem.config.js</span > 配置文件 (点击展开)
187
+ <h2 className = " text-sm text-gray-500 dark:text-gray-300 " >
188
+ <span className = " text-black dark:text-gray-300 " >ecosystem.config.js</span > 配置文件 (点击展开)
189
189
</h2 >
190
190
<button
191
191
type = " button"
@@ -221,13 +221,13 @@ export const Configurator = ({ args, template, env }) => {
221
221
<div key = { key } className = " flex items-center space-x-4 mb-4" >
222
222
<input
223
223
type = " text"
224
- className = " border rounded px-2 py-2 w-1/2 bg-transparent focus:outline-none focus:border-black hover:border-white-400 transition duration-300 font-[400] font-sans text-sm cursor-not-allowed"
224
+ className = " border rounded px-2 py-2 w-1/2 bg-transparent focus:outline-none focus:border-black hover:border-white-400 transition duration-300 font-[400] font-sans text-sm cursor-not-allowed dark:border-gray-700 dark:text-gray-300 "
225
225
value = { ` ${key } (${env [key ].tip }) ` }
226
226
disabled
227
227
/>
228
228
<input
229
229
type = { env [key ].type }
230
- className = " border rounded px-2 py-2 w-1/2 focus:outline-none focus:border-black hover:border-gray-400 transition duration-300 font-[400] font-sans text-sm" style = { { outline: " none" , boxShadow: " none" }}
230
+ className = " border rounded px-2 py-2 w-1/2 focus:outline-none focus:border-black hover:border-gray-400 transition duration-300 font-[400] font-sans text-sm dark:border-gray-700 dark:text-gray-300 " style = { { outline: " none" , boxShadow: " none" }}
231
231
placeholder = { ` Enter value... ` }
232
232
value = { envValues [Object .keys (env ).indexOf (key )]}
233
233
onChange = { (e ) => handleChange (index , e .target .value )}
@@ -240,8 +240,8 @@ export const Configurator = ({ args, template, env }) => {
240
240
{ args .map ((arg ) => (
241
241
<button
242
242
key = { arg }
243
- className = { ` border rounded px-2 py-2 mr-4 mb-4 focus:outline-none focus:border-black hover:border-gray-400 transition duration-300 font-[400] font-sans text-sm ${
244
- selectedArgs .includes (arg ) ? ' bg-gray-200' : ' bg-transparent'
243
+ className = { ` border rounded px-2 py-2 mr-4 mb-4 focus:outline-none focus:border-black hover:border-gray-400 transition duration-300 font-[400] font-sans text-sm dark:border-gray-700 dark:text-gray-300 ${
244
+ selectedArgs .includes (arg ) ? ' bg-gray-200 dark:bg-gray-800 ' : ' bg-transparent'
245
245
} ` }
246
246
onClick = { () => handleToggleArg (arg )}
247
247
>
@@ -253,7 +253,7 @@ export const Configurator = ({ args, template, env }) => {
253
253
254
254
<button
255
255
type = " button"
256
- className = " border bg-black w-full text-white px-4 py-2 rounded-lg text-sm transform transition-all duration-300 focus:outline-none hover:bg-gray-700"
256
+ className = " border bg-black w-full text-white px-4 py-2 rounded-lg text-sm transform transition-all duration-300 focus:outline-none hover:bg-gray-700 dark:border-gray-700 dark:text-gray-300 "
257
257
onClick = { handleCopyToClipboard }
258
258
>
259
259
复制
0 commit comments