@amsterdam/design-system-css
Version:
Stylesheets for all components from the Amsterdam Design System and some general utilities. Use it to apply the visual design of the City of Amsterdam to your HTML elements or non-React components.
28 lines (21 loc) • 1.69 kB
Markdown
<!-- @license CC0-1.0 -->
Divides the screen into columns to align the elements of a page.
- Every page uses the Grid component as the foundation for its layout.
It is a direct child of the [Page](/docs/components-containers-page--docs) container.
- The Grid provides 4, 8, or 12 columns, depending on the width of the window.
- Its children are `Grid.Cell` components that define how many columns they span, and optionally where they start.
Both its `span` and `start` properties accept a single value, or separate values for the narrow, medium and wide variations of the Grid.
Follow these [optimal sizes of Grid Cells](/docs/pages-public-introduction--docs
- Grid Cells align to the top of their row.
This makes them as tall as their content.
This is especially useful for [Compact Mode](https://designsystem.amsterdam/docs/docs-developer-guide-modes--docs), where their background colour is different than that of the Page.
The [internal Home Page](/story/pages-internal-home-page--default) example shows this behaviour.
- A single page can have several Grids.
This allows mixing a Grid with a [Spotlight](/docs/components-containers-spotlight--docs), [Breakout](/docs/components-layout-breakout--docs) or full width [Image](/docs/components-media-image--docs) which ‘bleed out’ of the main layout.
- Grids must not be nested.
The component is currently intended for the full width of the page only.
- The Gap utility classes must not be used on the Grid component.
The [design choices](/docs/docs-developer-guide-grid--docs) are described in the Developer Guide.