hmb HF Staff Claude Sonnet 4.6 commited on
Commit
099043f
Β·
1 Parent(s): bc95f8c

Fix label colours for ColorPicker components

Browse files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +8 -1
  2. theme.py +7 -3
app.py CHANGED
@@ -438,9 +438,16 @@ select, .dropdown { background: white !important; color: #3D2E1E !important; }
438
  [data-testid="image"] button, [data-testid="image"] .toolbar { background: transparent !important; border: none !important; box-shadow: none !important; color: #8A7660 !important; }
439
 
440
  /* ─── Labels ─── */
 
 
 
 
 
 
441
  label > span, fieldset > span, [data-testid="radio-group"] > span, .container > span:first-child,
442
  [data-testid="color-picker"] label, [data-testid="color-picker"] span,
443
- .gradio-container label span, .block label span {
 
444
  font-size: .65rem !important; font-weight: 700 !important;
445
  letter-spacing: .14em !important; text-transform: uppercase !important;
446
  color: #3D2E1E !important;
 
438
  [data-testid="image"] button, [data-testid="image"] .toolbar { background: transparent !important; border: none !important; box-shadow: none !important; color: #8A7660 !important; }
439
 
440
  /* ─── Labels ─── */
441
+ .gradio-container {
442
+ --block-label-text-color: #3D2E1E !important;
443
+ --block-title-text-color: #3D2E1E !important;
444
+ --body-text-color: #3D2E1E !important;
445
+ --body-text-color-subdued: #3D2E1E !important;
446
+ }
447
  label > span, fieldset > span, [data-testid="radio-group"] > span, .container > span:first-child,
448
  [data-testid="color-picker"] label, [data-testid="color-picker"] span,
449
+ span[data-testid="block-info"],
450
+ .gradio-container label, .gradio-container label span, .block label, .block label span {
451
  font-size: .65rem !important; font-weight: 700 !important;
452
  letter-spacing: .14em !important; text-transform: uppercase !important;
453
  color: #3D2E1E !important;
theme.py CHANGED
@@ -73,7 +73,7 @@ class Philatelist(Base):
73
  super().set(
74
  # ── Canvas ──
75
  body_background_fill="*neutral_100",
76
- body_text_color="*neutral_950",
77
  background_fill_primary="*neutral_100",
78
  background_fill_secondary="*neutral_200",
79
 
@@ -83,8 +83,12 @@ class Philatelist(Base):
83
  block_border_width="0px",
84
  block_shadow="none",
85
  block_label_background_fill="*neutral_100",
86
- block_label_text_color="*neutral_950",
87
- block_title_text_color="*neutral_950",
 
 
 
 
88
 
89
  # ── Inputs ──
90
  input_background_fill="white",
 
73
  super().set(
74
  # ── Canvas ──
75
  body_background_fill="*neutral_100",
76
+ body_text_color="#3D2E1E",
77
  background_fill_primary="*neutral_100",
78
  background_fill_secondary="*neutral_200",
79
 
 
83
  block_border_width="0px",
84
  block_shadow="none",
85
  block_label_background_fill="*neutral_100",
86
+ block_label_text_color="#3D2E1E",
87
+ block_label_text_color_dark="#3D2E1E",
88
+ block_title_text_color="#3D2E1E",
89
+ block_title_text_color_dark="#3D2E1E",
90
+ body_text_color_subdued="#3D2E1E",
91
+ body_text_color_subdued_dark="#3D2E1E",
92
 
93
  # ── Inputs ──
94
  input_background_fill="white",