With version 33 of ag grid i had to pass theme api directly to the component and remove css imports.
import { themeAlpine } from 'ag-grid-community'; <AgGridReact theme={myTheme} ... />