Skip to content
@layouts-css

layouts-css

Easy-to-understand layout classes for css, inspired by Figma's Auto Layout and repeatedly having to figure out common website layouts.
  • Australia

🛌 layouts-css

Easy-to-understand layout classes for css, inspired by Figma's Auto Layout and repeatedly having to figure out common website layouts. Implemented in several popular paradigms.


Sleep like a baby and kiss those flexbox & CSS grid nightmares goodbye! Rest well, as you effortlessly create HTML layouts without a worry!

Yes - you can center a div with ease 😌

layouts-css makes it a breeze to layout HTML with it's easy-to-understand CSS layout classes implmented in the following paradigms below.

🚧 Coming soon

Note: docs will differ for each implemention, continue reading for the key concepts or navigate to your implementation of choice to get started.

Key Concepts

layouts-css builds on the idea of utility-first classes popularised by Tailwind CSS and introduces the concept of layout classes. The diference is that utility-first clasess wrap a single concept in css where as the a layout class wraps multiple to achive an intent.

Sizing Layout Classes

Sizing layout classes describe the desired behavior of the dimensions (width & hieght) of an element regardsless of the parent layout class:

  • fill: width and/or height in parent
  • hug: the contents of the child content along the width add/or heigh
  • fixed: the size of the element along the width and/or height

Single-Panel Layout Classes

Single-panel layout clasess decribe how the child elements behave in the container bases on the following properties:

Single Axis (x or y)

💡 TIP single axis layouts map directly to the Auto-Layout features in the popular design tool figma-logo and is the inspiration for this library. For each implementation of layouts-css the docs will specify how the class maps to Figma Auto-Layout controls.

  • spacing: packed together or spaced apart
  • horizontal-alignment: of child elements in the parent container
    (left, center, or right)
  • vertical-alignment: of child elements in the parent container
    (top, middle, bottom)
  • axis: x or y the child elments are layed out along.

Grid (x & y)

  • horizontal-alignment: of child elements within the cells of the grid
    (left, center, or right)
  • vertical-alignment: of child elements within the cells of the grid
    (top, middle, bottom)

🚧 Responsive-Multi-Panel Layout Classes

Coming soon Responsisve-mulit-panel layout classes describe the behaviours commonly seen on websites across the web and how they behave across the different form factors.

  • headers & navigation
  • content, columns and side bars
  • footers

Pinned Loading

  1. tailwindcss-plugin tailwindcss-plugin Public

    Easy-to-understand layout classes for css, inspired by Figma's Auto Layout and common website layouts. Implemented in TailwindCSS

    JavaScript 17

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…