v6.0.0-beta.16
  • Home
  • Principles
  • Tokens
  • Global
  • Layout
    • Aspect Ratio
    • Center
    • Cluster
    • Equal
    • Flex
    • Flow
    • Grid
    • Pancake
    • Pile
    • Repel
    • Scroll
    • Sidebar
    • Switcher
    • Tiles
  • Components
  • Utilities
  • home
  • /
  • layout

Layout

Feo.css offers classes for standardized layout patterns that you see on almost every website or application. Many layouts are based on Every Layout by Heydon Pickering and Andy Bell. But the implementation differs. In addition, more layout patterns are added to Feo.css as well.

Class utilities

Class utilities are classes that that allow you to control one aspect from a different CSS class. Class utilities on their own have no impact whatsoever, in contract to utility classes. Class utilities are prefixed with '--' to make them easily spottable.

Every layout exposes its configuration through --layout-* custom properties (see each layout's Custom Properties table). Feo.css no longer ships a preset size scale, so values like --layout-gap and --layout-threshold are set directly to whatever value you need — a raw length or, preferably, one of your own project's tokens:

<div class="switcher" style="--layout-gap: 1rem; --layout-threshold: 20rem">
  <!-- ... -->
</div>

Non-scale modifiers (alignment, direction, column count, aspect ratio) remain available as .--* class utilities.

The available layout classes in Feo.css are listed below.

  • Aspect Ratio
  • Center
  • Cluster
  • Equal
  • Flex
  • Flow
  • Grid
  • Pancake
  • Pile
  • Repel
  • Scroll
  • Sidebar
  • Switcher
  • Tiles
© crinkles
Powered by: 11ty & Feo.css | Github