Skip to content

Commit e2e03f5

Browse files
paddymulclaude
andcommitted
fix: pass themeConfig to StatusBar in static embeds, use color names
- BuckarooStaticWidget now passes themeConfig to StatusBar so the status bar picks up the same theme as the main grid - MultiIndex demo uses CSS color names instead of hex for readability Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e220538 commit e2e03f5

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

docs/source/articles/theme-customization.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -546,14 +546,14 @@ exactly what it controls:
546546
547547
component_config = {'theme': {
548548
'colorScheme': 'dark',
549-
'accentColor': '#ff00ff', # purple — column selection highlight
550-
'accentHoverColor': '#ff6600', # orange — hover state
551-
'backgroundColor': '#0000cc', # blue — main table background
552-
'foregroundColor': '#00ffcc', # teal — text color
553-
'oddRowBackgroundColor': '#cc0000', # red — alternating row stripe
554-
'borderColor': '#ff69b4', # pink — ALL grid borders
555-
'headerBorderColor': '#00ff00', # green — column header dividers only
556-
'headerBackgroundColor': '#8b4513', # brown — header row background
549+
'accentColor': 'purple',
550+
'accentHoverColor': 'orange',
551+
'backgroundColor': 'blue',
552+
'foregroundColor': 'teal',
553+
'oddRowBackgroundColor': 'red',
554+
'borderColor': 'pink',
555+
'headerBorderColor': 'green',
556+
'headerBackgroundColor': 'brown',
557557
}}
558558
559559
.. raw:: html

packages/buckaroo-js-core/src/components/BuckarooStaticTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ function BuckarooStaticWidget({
113113
buckarooState={buckarooState}
114114
setBuckarooState={setBuckarooState}
115115
buckarooOptions={artifact.buckaroo_options!}
116+
themeConfig={cDisp.df_viewer_config?.component_config?.theme}
116117
/>
117118
<DFViewerInfinite
118119
data_wrapper={dataWrapper}

scripts/generate_theme_static_html.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,14 @@ def themed_html(df, title, theme_config):
323323
"MultiIndex Headers",
324324
{
325325
"colorScheme": "dark",
326-
"accentColor": "#ff00ff", # purple/magenta — column selection
327-
"accentHoverColor": "#ff6600", # orange — hover state
328-
"backgroundColor": "#0000cc", # blue — main table background
329-
"foregroundColor": "#00ffcc", # teal — text color
330-
"oddRowBackgroundColor": "#cc0000", # red — alternating row stripe
331-
"borderColor": "#ff69b4", # pink — all grid borders
332-
"headerBorderColor": "#00ff00", # green — column header dividers
333-
"headerBackgroundColor": "#8b4513", # brown — header row background
326+
"accentColor": "purple",
327+
"accentHoverColor": "orange",
328+
"backgroundColor": "blue",
329+
"foregroundColor": "teal",
330+
"oddRowBackgroundColor": "red",
331+
"borderColor": "pink",
332+
"headerBorderColor": "green",
333+
"headerBackgroundColor": "brown",
334334
},
335335
"Garish colors so you can see exactly which property targets which piece.",
336336
"multiindex",

0 commit comments

Comments
 (0)