# Styling dgrid dgrid components are designed to be highly CSS-driven for optimal performance and organization, so visual styling should be controlled through CSS. ## Getting Started The first thing to do when using dgrid components is to add `dgrid.css` to your page via a `link` tag or `@import`. ```html ``` You may also need to include `dojo/resources/dnd.css` (or equivalent custom styles) if you are using the `ColumnReorder` or `DnD` extensions. ### Notes on Structural Styles As of dgrid 1.0, dgrid no longer uses xstyle to automatically load structural CSS on a per-module basis. `dgrid.css` now includes all structural styles, so that is the only stylesheet that needs to be referenced. The structural styles are now organized using [Stylus](http://stylus-lang.com/), to keep each component's structural styles separate while still generating a single CSS file. If you are also using Stylus in your own project, it is feasible to directly reference the `styl` files for only the specific dgrid components you need, rather than all of the files referenced in `dgrid.styl`. (You will always need `base.styl` at minimum.) ## Skins dgrid includes a number of skins out of the box, in the `dgrid/css/skins` folder. The `skin.html` test page under `dgrid/test` provides a demonstration of all included skins. There are two steps to using a dgrid skin: 1. Add its CSS via a `link` tag or `@import` 2. Include its namespace class at a level above your grids in the DOM (e.g. `
`) For details on customizing skins, see [Customizing Skins](./Customizing-Skins.md). ## Styling Grid Columns The Grid module creates classes based on the field names and column IDs of the columns defined, following the conventions `field-