npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

loriss

v3.3.2

Published

css framework

Downloads

6

Readme

LORISS

Loriss is a css framework based on a 5 colour, 3 font and 12 column style system. Written in sass, loriss is intended to be used in your sass code but the compiled output is available in both .scss (required if you want to use loris' vairables in your own code base) or .css if you want to use the out-of-the-box theming and compose your styles with class names in your markup

To use Loriss run: npm i loriss

Sass import

To use either import in your main scss file: @import "loriss";

Or import in a js file. For example in a React project, add this line near the top of App.js: import "loriss"

You can then use all the loriss styles in your sass code:

h1 {
  @include set-grid-span(8);
  color: $color--complementary;
}

or in your markup:

<h1 class="color--complementary font-family--serif">Loriss</h1>

CSS import

For the compiled css output, use the following import statement in your main .css file: @import "~loriss/css/index.css";

in many of the above cases, you will need a tool such as webpack configured to resolve the node_modules file paths

src files

You also have access to all of the source files if you only want to import a subset of loriss styles. For example, to just get the variables, include this line in your sass file: @import '~loriss/src/variables'

You'll then be able to do stuff like this:

h1 {
    color: $color--secondary;
}

But this would throw an error because we haven't included the mixins:

h1 {
    @include set-grid-span(8);
}

Overwriting

You can overwrite any of the variables in the loriss library. All variables and maps have their values set as !default. This means, if you declare your own value for a particular variable before you include loriss, your value will be preffered to one we set in the variables file. For example:

$color--main: #FD837B;
@import 'loriss';

The above code would also mean any other classes, mixins or variables in loriss that depend on $color--main would be updated accordingly.

Resets

Loriss includes some global css resets. If you want to use your own resets you should make sure you include loriss before your own styles.