An opinionated CSS Grid formatter for Prettier that automatically formats grid-template-areas and related CSS grid properties. Version 0.1.2 is the current stable release. It works as a Prettier plugin (peer dependency: Prettier ^2.0.0) and requires Node >= 12. Unlike general CSS formatters, this plugin specifically aligns grid cells into a readable ASCII grid, improving developer experience when working with CSS Grid layouts. It is type-safe with included TypeScript definitions.
npm install prettier-plugin-css-gridNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation and formatting of a CSS file with grid-template-areas using Prettier and this plugin.
Update Prettier to v2 or later.
Upgrade Node to v12 or later.
Run npm install --save-dev prettier-plugin-css-grid
Add 'plugins: ["prettier-plugin-css-grid"]' to .prettierrc