packages/codemods/v5-0-0/23-aggrid-dark-blocks-removal.md
AG Grid light theme blocks now auto-detect dark mode via prefers-color-scheme and automatically switch to the dark CSS class. The explicit dark variant block types have been removed:
AgGridAlpineDark → use AgGridAlpineAgGridBalhamDark → use AgGridBalhamAgGridInputAlpineDark → use AgGridInputAlpineAgGridInputBalhamDark → use AgGridInputBalhamReplace any type: references to the removed dark variant blocks with their light counterpart. The light blocks will automatically use the dark theme when the user's system prefers dark mode.
Glob: **/*.{yaml,yml}
Grep: type:\s*AgGrid(Alpine|Balham|Input(Alpine|Balham))Dark
| Before | After |
|---|---|
type: AgGridAlpineDark | type: AgGridAlpine |
type: AgGridBalhamDark | type: AgGridBalham |
type: AgGridInputAlpineDark | type: AgGridInputAlpine |
type: AgGridInputBalhamDark | type: AgGridInputBalham |
- id: my_table
type: AgGridBalhamDark
properties:
height: 400
columnDefs:
- field: name
- id: my_table
type: AgGridBalham
properties:
height: 400
columnDefs:
- field: name
grep -rn 'type: AgGrid.*Dark' --include='*.yaml' --include='*.yml' .
Should return zero matches after migration.