Skip to content

GravionLabs/elysion / .agents/skills/ng-ag-grid-developer

ng-ag-grid-developer

Verified

Build or modify Angular components with AG Grid Enterprise. Use when a task mentions ag-grid.

references/theming.md

View on GitHub
# AG Grid — Theming & Layout

## Themes

Built-in: Quartz (recommended for new projects), Alpine, Balham, Material. Two mechanisms, depending on AG Grid version — check `npm ls ag-grid-community` first:

- **CSS class** (legacy): `class="ag-theme-quartz"` on `<ag-grid-angular>` plus the theme CSS (`"styles": ["ag-grid-community/styles/ag-theme-quartz.css"]`). On newer versions set `theme: 'legacy'` in grid options / `provideGlobalGridOptions`.
- **Theming API** (newer): the `theme` grid option with a theme object.

Customize via CSS variables on the theme class: `--ag-foreground-color`, `--ag-background-color`, `--ag-header-background-color`, `--ag-row-hover-color`, `--ag-selected-row-background-color`, `--ag-font-size`, `--ag-grid-size` (scales row height and padding).

## App-wide defaults (call once in main.ts)

```typescript
provideGlobalGridOptions({ defaultColDef: { filter: true }, rowSelection: { mode: 'multiRow' } });
```

## `domLayout`

| Value                | Behavior                                                                            |
| -------------------- | ----------------------------------------------------------------------------------- |
| `'normal'` (default) | Needs explicit CSS height (`style="height: 400px"`); scrolls internally             |
| `'autoHeight'`       | Grows with data; **never for > 1 000 rows** (renders all rows, freezes the browser) |
| `'print'`            | All rows, no scrollbars; printing/PDF only                                          |

## Row height

`rowHeight`, `headerHeight`, `groupHeaderHeight`; dynamic `getRowHeight: (p: RowHeightParams) => …` (impacts performance) — call `api.resetRowHeights()` after changing it dynamically.

To fill a container: `host: { style: 'display: block; height: 100%' }` on the component and `style="height: 100%"` on the grid.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall