JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q27989F
  • License MIT

A simple grid framework for Adobe XD.

Package Exports

  • snug-css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (snug-css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SNUG

A simple grid system for Adobe XD.

SNUG is CSS framework.
Build the 'layout grid' on HTML.

Features

  • Light weight.
    SNUG is vary light weight.

  • Responsive.
    Grid component made by flexbox.

  • Easy.
    Markup is easy.

Quick start

  1. Import with your html file.
<link rel="stylesheet" href="dist/css/main.min.css">

or

$ npm install snug-css
<link rel="stylesheet" href="./node_modules/snug-css/dist/css/main.min.css">
  1. Markups
<div class="sng-container">
    <div class="grid-row">
        <div class="column-3 md-4 sm-6>
            // Contents
        </div>
        <div class="column-3 md-4 sm-6>
            // Contents
        </div>
        <div class="column-3 md-4 sm-6>
            // Contents
        </div>
        <div class="column-3 md-4 sm-6>
            // Contents
        </div>
    </div>
</div>

How to fix your Adobe XD's comp.

  1. Open your Adobe XD file.

  2. Visible grid.

  3. Select layout grid mode.

  4. Customize.
    Fix to variables.

/* ------------------------
  Grid Setting
------------------------ */
/* Max Column ------- */
$maxcolumn: 12;

/* Grid Gutter Size ------- */
$gutter: 28px;

/* ------------------------
  Margin of container outside
------------------------ */
/* Extra Large Display ------- */
$retina: 468px;

/* Full HD Display ------- */
$desktop: 146px;

/* 1440x800 ------- */
$laptoplarge: 146px;

/* 1366x768 ------- */
$laptop: 139px;

/* iPad Pro 12.9inch ------- */
$ipadpro129-port: 118px;
$ipadpro129-land: 121px;

/* iPad Pro 10.5inch ------- */
$ipadpro105-port: 84px;
$ipadpro105-land: 83px;

/* iPad / iPad mini & Android Tablet ------- */
$ipad-port: 82px;
$ipad-land: 80px;

License

LICENSE.md