Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fluid-grid

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluid-grid

Fluid Grid css

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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');
}

Keywords

FAQs

Package last updated on 08 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc