You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the MLflow federated UI theming approach (Emotion token translation + SCSS shell overrides), see the [MLflow fork](https://github.com/opendatahub-io/mlflow/tree/master/mlflow/server/js/src/common/styles/patternfly) — that pattern lives in the fork, not here.
12
+
13
+
---
14
+
15
+
## Invariant 1 — ECharts/canvas: use `.value`, not CSS vars
16
+
17
+
Canvas-based renderers cannot resolve CSS custom properties at paint time. Passing a `var(--pf-t--...)` string to an ECharts option or canvas `fillStyle` silently produces the wrong color.
## Invariant 3 — `ThemeProvider` at the library boundary, not the app root
68
+
69
+
Placing an MUI `ThemeProvider` at the app root leaks MUI styles into PF-only components. Scope it as close to the library's render boundary as possible.
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,7 @@ Rules live in `.claude/rules/`. Read the relevant rule file before starting the
95
95
|**React**|`react.md`| When writing React components, hooks, or pages |
96
96
|**Security**|`security.md`| When working on auth, secrets, input validation, or K8s API interactions |
97
97
|**Testing Standards**|`testing-standards.md`| When working across multiple test types or choosing a testing strategy |
98
+
|**Third-Party Theming**|`third-party-theming.md`| When theming external libraries (Perses, MLflow, etc.) or mapping PF tokens into non-PF component systems |
98
99
|**Unit Tests**|`unit-tests.md`| When creating or modifying Jest unit tests for utilities, hooks, or components |
0 commit comments