micro-library for CSS Flexbox and CSS Grid

Overview

SpeedGrid

micro-library for CSS Flexbox and CSS Grid

Overview

SpeedGrid dynamically generates inline CSS by specifying the class name.

  • Easy maintenance --CSS Flexbox and CSS Grid layout can be changed without editing CSS.
  • Super-Lightweight--SpeedGrid is just 4KB.(minified one is 3KB)
  • Rapid layout experience--You can use the Flexbox&Grid system intuitively.
  • Usage

    Flexbox

    Describe the class name in the container.
    Class names should be created by combining flex, xxx, and yyy.
    Each of them have to be connected with -.

    flex--corresponds to display:flex;.
    xxx --corresponds to justify-content.
    yyy--corresponds to align-items.

    XXX YYY
    strings CSS strings CSS
    left- justify-content:flex-start; -top align-items:flex-start;
    center- justify-content:center; -middle align-items:center;
    right- justify-content:flex-end; -bottom align-items:flex-end;
    between- justify-content:space-between;
    around- justify-content:space-around;
    evenly- justify-content:space-evenly;

    If you write the class name in the container like
    , the actual output will look like this:

    ">
    <div class="flex-center-middle" style="display: flex; justify-content: center; align-items: center;">div>

    ※It is also possible to specify only one of flex or flex-xxx or flex-yyy.


    Grid

    Describe the grid area with grid lines of the X and Y axes, as the class name in child elements. Grid-start and grid-end are specified with a slash. Whitespace before and after the slash is not required. You have to do the work of setting up the display:grid; and grid tracks for the container by yourself. Gridlines must be less than 10.



    If you write the class name in the child elements like
    , the actual output will look like this:

    ">
    <div class="grid-x-2/4 grid-y-3/4" style="grid-area: 2 / 3 / 4 / 4;">div>

    gap

    You can specify the gap property for Flexbox and Grid. The easiest way to use this is to simply specify gap-nn (nn=number) in the class name. You can also specify each gap for the horizontal and vertical axes by using the prefix gapx-,gapy-. You can use px, %, or em as the unit. px is used by default, but you can specify the unit by adding per or em between gap- and -nn.

    Simple Usage

    gap-nn (nn=number)

    Options

  • gapx-nn
  • gapy-nn
  • gap-per-nn
  • gapx-per-nn
  • gapy-per-nn
  • gap-em-nn
  • gapx-em-nn
  • gapy-em-nn

  • more details --> https://toshihidemiyake.github.io/SpeedGrid/
    support -->Buy me a coffee
    You might also like...

    Tiny CSS framework with almost no classes and some pure CSS effects

    Tiny CSS framework with almost no classes and some pure CSS effects

    no.css INTERACTIVE DEMO I am tired of adding classes to style my HTML. I just want to include a .css file and I expect it to style the HTML for me. no

    Dec 10, 2022

    :handbag: A beautiful CSS library to kickstart your projects

    Picnic CSS Unpack your meal and get coding. An invasive CSS library to get your style started. Getting started There are many ways of using Picnic CSS

    Jan 4, 2023

    Simple CSS library for semantic HTML markup

    Simple CSS library for semantic HTML markup

    awsm.css awsm.css is a simple CSS library for semantic HTML, which doesn't require classes, ids, attributes, etc. Just start to create page with HTML5

    Dec 30, 2022

    A built-time CSS library for styling React components.

    A built-time  CSS library for styling React components.

    Stylin Stylin is a build-time CSS library that offers an elegant way to style React components. It extends CSS Modules and adds some missing features

    Dec 30, 2022

    A library to make creating CSS polyfills much easier.

    UPDATE (2016-12-22): I am no longer supporting this library for all the reasons I address in my post The Dark Side of Polyfilling CSS. If you choose t

    Oct 9, 2022

    Text-based user interface CSS library

    Text-based user interface CSS library

    TuiCss Text-based user interface CSS library -- Documentation -- About TuiCss is a library focused to create web applications using an interface based

    Jan 2, 2023

    A modern, responsive CSS boilerplate library to kickstart any web-based project.

    A modern, responsive CSS boilerplate library to kickstart any web-based project.

    Peacock CSS Peacock is a modern, responsive CSS boilerplate library to kickstart any web-based project. It is simple, lightweight and it contains all

    Jan 23, 2022

    CSS Boilerplate / Starter Kit: Collection of best-practice CSS selectors

    Natural Selection Natural Selection is a CSS framework without any styling at all. It is just a collection of selectors that can be used to define glo

    Dec 8, 2022

    Source code for Chrome/Edge/Firefox/Opera extension Magic CSS (Live editor for CSS, Less & Sass)

    Live editor for CSS, Less & Sass (Magic CSS) Extension Live editor for CSS, Less & Sass (Magic CSS) for Google Chrome, Microsoft Edge, Mozilla Firefox

    Dec 13, 2022
    Owner
    Toshihide Miyake
    Web制作とMonacaを使ったハイブリッドアプリの制作をしています。
    Toshihide Miyake
    Grid based on CSS3 flexbox

    Flexbox Grid flexboxgrid.com Grid based on the flex display property. Install npm npm i flexboxgrid --save bower bower install flexboxgrid cdn CDNJS <

    kj 9.3k Jan 2, 2023
    Modern CSS framework based on Flexbox

    Bulma Bulma is a modern CSS framework based on Flexbox. Quick install Bulma is constantly in development! Try it out now: NPM npm install bulma or Yar

    Jeremy Thomas 46.6k Dec 31, 2022
    Low-level CSS Toolkit – the original Functional/Utility/Atomic CSS library

    Basscss Low-level CSS toolkit – the original Functional CSS library https://basscss.com Lightning-Fast Modular CSS with No Side Effects Basscss is a l

    Basscss 5.8k Dec 31, 2022
    Cooltipz.css - A highly customisable, minimal, pure CSS tooltip library

    Cooltipz.css - Cool tooltips Cool customisable tooltips made from pure CSS Lightweight • Accessible • Customisable • Simple Cooltipz.css is a pure CSS

    Jack Domleo 110 Dec 24, 2022
    Reseter.css - A Futuristic CSS Reset / CSS Normalizer

    Reseter.css A CSS Reset/Normalizer Reseter.css is an awesome CSS reset for a website. It is a great tool for any web designer. Reseter.css resets all

    Krish Dev DB 1.1k Jan 2, 2023
    RxHtmlButtonLibrary - Html Button Styling Library by roxunlimited.com using CSS and jQuery.

    rxHTMLButton Library v0.3 rxHTMLButton Library will work on almost every HTML tag. It will smoothly work on 'a href link', 'button type button', 'inpu

    roxunlimited 0 Sep 16, 2022
    A pure html and css library for dark mode in your website.

    Dark Mode A pure html and css library for dark mode in your website. Features It has a smooth setting and also it changes via system settings aswell.

    null 1 Jan 6, 2022
    A CSS button library built using Sass and Compass

    Buttons 2.0 Buttons 2.0 Buttons is a highly customizable production ready mobile web and desktop css button library. Buttons is a free open source pro

    Alex Wolfe 5.1k Jan 4, 2023
    Spectre.css - A Lightweight, Responsive and Modern CSS Framework

    Spectre.css Spectre.css is a lightweight, responsive and modern CSS framework. Lightweight (~10KB gzipped) starting point for your projects Flexbox-ba

    Yan Zhu 11.1k Jan 8, 2023
    Framework-agnostic CSS-in-JS with support for server-side rendering, browser prefixing, and minimum CSS generation

    Aphrodite Framework-agnostic CSS-in-JS with support for server-side rendering, browser prefixing, and minimum CSS generation. Support for colocating y

    Khan Academy 5.3k Jan 1, 2023