fionasu commited on
Commit
fa0de28
·
verified ·
1 Parent(s): 73b4377

added theme

Browse files
Files changed (1) hide show
  1. app.py +38 -0
app.py CHANGED
@@ -316,4 +316,42 @@ with gr.Blocks() as demo:
316
  outputs=[chat_box, msg]
317
  )
318
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
  demo.launch(debug=True)
 
316
  outputs=[chat_box, msg]
317
  )
318
 
319
+ theme = gr.themes.Monochrome(
320
+ primary_hue=gr.themes.Color(c100="#f5f5f3", c200="#fbfaf8", c300="#f9f9f9", c400="#eee9ee", c50="rgba(255, 255, 255, 1)", c500="rgba(0, 0, 0, 1)", c600="rgba(26.934374999999992, 26.934374999999992, 26.934374999999992, 1)", c700="rgba(10.943750000000012, 10.943750000000012, 10.943750000000012, 1)", c800="rgba(17.053125000000005, 17.053125000000005, 17.053125000000005, 1)", c900="#fffefe", c950="#fffefe"),
321
+ secondary_hue=gr.themes.Color(c100="#f29c74", c200="#f4b7a8", c300="#fffefe", c400="#fffefe", c50="#e46e45", c500="#fffefe", c600="#fffefe", c700="#fffefe", c800="#fffefe", c900="#fffefe", c950="#fffefe"),
322
+ neutral_hue=gr.themes.Color(c100="#6b8ea8", c200="#a4c5e8", c300="rgba(0, 0, 0, 1)", c400="rgba(0, 0, 0, 1)", c50="#284566", c500="rgba(0, 0, 0, 1)", c600="rgba(0, 0, 0, 1)", c700="rgba(0, 0, 0, 1)", c800="rgba(0, 0, 0, 1)", c900="rgba(0, 0, 0, 1)", c950="rgba(0, 0, 0, 1)"),
323
+ font=[gr.themes.GoogleFont('open sans'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
324
+ ).set(
325
+ body_background_fill='*primary_50',
326
+ body_background_fill_dark='*primary_700',
327
+ body_text_color='*primary_500',
328
+ body_text_color_dark='*primary_400',
329
+ body_text_color_subdued='*neutral_50',
330
+ body_text_color_subdued_dark='*primary_300',
331
+ background_fill_primary='*primary_400',
332
+ background_fill_primary_dark='*neutral_100',
333
+ background_fill_secondary='*primary_400',
334
+ background_fill_secondary_dark='*neutral_50',
335
+ border_color_accent_dark='*secondary_50',
336
+ border_color_accent_subdued_dark='*primary_50',
337
+ border_color_primary='*neutral_50',
338
+ border_color_primary_dark='*neutral_100',
339
+ color_accent='*primary_50',
340
+ color_accent_soft_dark='*neutral_100',
341
+ block_background_fill_dark='*neutral_50',
342
+ checkbox_background_color='*primary_400',
343
+ checkbox_background_color_selected='*primary_700',
344
+ checkbox_background_color_selected_dark='*neutral_50',
345
+ checkbox_label_border_color_dark='*neutral_50',
346
+ input_background_fill='*primary_50',
347
+ input_background_fill_dark='*neutral_100',
348
+ input_border_color='*neutral_50',
349
+ input_border_color_dark='*neutral_50',
350
+ input_border_width='2px',
351
+ table_odd_background_fill='*neutral_100',
352
+ button_primary_background_fill='*neutral_50',
353
+ button_primary_background_fill_dark='*neutral_100',
354
+ button_primary_background_fill_hover='*neutral_100'
355
+ )
356
+
357
  demo.launch(debug=True)