0.0.2 • Published 2 years ago

fluid-grid v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Fluid Grid

CSS grid system we have been waiting for

Check examples and documentation at fluid-grid.com

  • Component ready

    • Same component in differently sized container behave similarly
  • Container-query based

    • Component's grid depend on components size itself, not on window width
  • Content driven

    • Just define optimal grid cell size. Then tell how many cells your content requires. Rest is done automatically.
  • Declarative

    • Basic scenarios can be handled by minimal rules .f-col. No more w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/6 mb-4

Install

Go to directory where you want to generate a fluid-grid.css

Then run a fluid grid wizard with:

$: npx fluid-grid

Add following polyfill to enable @container queries in browsers which don't support it (There is zero zupport right now) Beware that the polyfill has some limitations; you can only use px as units for cell definition. See more here

const supportsContainerQueries = 'container' in document.documentElement.style;

if (!supportsContainerQueries) {
	import('https://cdn.skypack.dev/container-query-polyfill');
}
0.0.2

2 years ago

0.0.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago