Giter VIP home page Giter VIP logo

lit's Introduction

lit ๐Ÿ”ฅ

npm size install size Downloads tweet button

a ridiculously small responsive css framework.

I challenged myself to see how small I could go, but preserve everything Skeleton, Milligram, and other micro frameworks have to offer.

Features

  • 12 Column Responsive Grid
  • Typography for h1-h6, and body text
  • Three types of buttons
  • Cards
  • Inputs
  • Table Styles

and a little bit more...

util

util is an atomic css addon for lit. It is currently a work in progress, but feel free to check it out at https://ajusa.github.io/lit/docs/util.html

Getting Started

  1. Install lit.css with one of the following:
  • NPM: npm install --save @ajusa/lit
  • CSS3: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ajusa/lit@latest/dist/lit.css" />
  • CSSNext: <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ajusa/lit@latest/src/lit.css" />
  1. Read the Docs to see usage

Note: lit uses PostCSS to transform from CSSNext to CSS3. If you are comfortable outright using CSSNext, you can directly include the lit.css file in the src directory. Otherwise, use the dist/lit.css file.

Supported Browsers

lit supports most modern browsers (Chrome, Firefox, Edge, Opera) but it also has impressive support for older browsers. lit has been tested on Internet Explorer 11 with no issues.

Development Setup

  1. Clone this repository (https://www.github.com/ajusa/lit)
  2. Make sure you have npm installed
  3. Run npm install in the root directory of lit
  4. Once that is completed, run npm run build to build the minified version and the gzipped file.
  5. If you are making changes live, use npm run watch. watch will build the minified css file in ./dist whenever there is a change in ./src/lit.css.

lit's People

Contributors

0xflotus avatar ajusa avatar archae0pteryx avatar dependabot[bot] avatar djnetherton avatar fridzema avatar jamen avatar jpeer264 avatar juhq avatar styfle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lit's Issues

Dark Tehem

Does this framework provide support for a dark theme, or should it be implemented by the user?

Grid system with numbers?

In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit. Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier โ€œB&W?โ€ may be written as โ€œB&W?โ€ or โ€œB\26 W\3Fโ€.

Create development guide

Needs to include how to get set up with lit's build system (gulp), and how to extend and modify lit with minimal hassle. This should go on the readme, with a link from the website.

Dark theme

For people who prefers-color-scheme: dark please ๐Ÿ˜†

Using zopfli to compress squeezes out 3 more bytes

The following outputs a file that is 395 bytes:

function css(done) {
    var postcss = require('gulp-postcss');
    var cleanCSS = require('gulp-clean-css');
    var cssvariables = require('postcss-css-variables');
    var zopfli= require('gulp-zopfli');
    return gulp.src('src/*.css')
        .pipe(postcss([cssvariables()]))
        .pipe(cleanCSS({ level: 2 }))
        .pipe(gulp.dest('dist/'))
        .pipe(zopfli())
        .pipe(gulp.dest('dist/'));
    done();
}

Remove hardcoded font-family Nunito

Hello! It's a bit odd that nunito is hardcoded in the stylesheet, which forces you to install Nunito and misses the point of "ridiculously small". The font-family should be up to the user by default, I think.

Website broken

Github Pages isn't updating right now. I will remove this issue once the website is back up

Publish to npm

The package.json says the name is lit but npm shows something different.

Can you deploy to npm so that other projects can include this as a dependency.
Also CDNs such as unpkg and jsdilvr can work without build tools with npm packages.
For an example, see copee.

Orange Color looks boring

Maybe its just me but the orange color kinda looks bad. It doesn't work with the background, makes it boring I guess. Maybe changing it to some dark contrast color would make the website look great. Also the links are hard to read bcz of the color contrast. Now I'm not a designer but I like beautiful designs & I think the framework is great but the color takes the appeal away. What do you guys think ?

The card example in the docs doesn't work because the w-100 class is missing from the img tag

Hi,

Cf title.

How it should be (actual html of the docs website):

<img src="https://picsum.photos/400/300/?random" class="w-100">

How it is (example), the class="w-100" is missing which makes the card not responsive:

&lt;img src=&quot;https://picsum.photos/400/300/?random&quot;&gt;

Thank you for your work on this library, it's very nice and clean.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.