File size: 1,536 Bytes
d778346
 
 
cd93eb8
d778346
cd93eb8
 
 
 
d778346
cd93eb8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de6f475
 
cd93eb8
 
 
 
 
 
 
 
d778346
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import gradio as gr

def get_theme():
    # Pocket TTS風のカラーパレット
    return gr.themes.Base(
        primary_hue=gr.themes.colors.emerald, # ネオングリーン
        neutral_hue=gr.themes.colors.slate,   # 青みがかったダークグレー
        font=[gr.themes.GoogleFont("Inter"), "ui-sans-serif", "sans-serif"],
        radius_size=gr.themes.sizes.radius_lg,
    ).set(
        # 全体の背景(かなり暗く)
        body_background_fill="#020617", # Slate-950
        body_text_color="#e2e8f0",      # Slate-200
        
        # ブロック(カード)の背景
        block_background_fill="#0f172a", # Slate-900
        block_border_width="0px",        # 枠線を消す
        block_label_background_fill="#0f172a",
        block_label_text_color="#94a3b8", # Slate-400
        
        # 入力エリア
        input_background_fill="#1e293b", # Slate-800
        input_border_color="#334155",    # Slate-700
        
        # ボタン(Primary)
        button_primary_background_fill="#10b981", # Emerald-500
        button_primary_background_fill_hover="#059669",
        button_primary_text_color="#020617",
        button_primary_border_color="#34d399",
        
        # ボタン(Secondary)- エラー原因のborder_widthを削除
        button_secondary_background_fill="#334155",
        button_secondary_text_color="#e2e8f0",
        
        # アクセント
        slider_color="#10b981",
        block_title_text_color="#10b981", # タイトルを緑に
    )