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

elzar

v0.1.8-beta.5

Published

resmio glamourous style guide in sass mode

Downloads

13

Readme

elzar

resmio glamourous style guide

We are publishing this styleguide as a bower package so we can require it in any app. The styleguide is already registered as a Bower package called elzar, so to install it on a project you need to run bower install elzar --save (if you don't have bower installed run npm install bower -g to install it, if you don't have npm install Node)
When we have changes that we want to push to the places where elzar is used we need to do some work. This is how it goes.

##How to work with elzar## This is just a workflow I just came up with, so feel free to point any error/improvement.

  1. Clone elzar by doing git clone [email protected]:resmio/elzar.git

  2. Run cd elzar to enter the elzar folder repo

  3. Create a branch with your feature name (git checkout -b your-feature-name)

  4. Run gulp watch to start the compiling process, it will automatically open a browser pointing to index.html, every time you change the code gulp will update the files and refresh the browser. If this doesn't happen check the terminal for error messages. You need chrome canary installed since it is the browser that gulp will open by default.

  5. Create your awesome feature, once finished run git add -A to tell git that you want all the changes included in your commit, then run git commit to save all your changes in a commit, it will open a text editor enter here a message describing what your changes are for (ie: Styled the headers to use Comic Sans and adding a blink effect to the links), save the text file and your changes are commited.

  6. Push your branch to github git push origin your-branch-name.

  7. Go to the elzar repo on github and do a pull request. This means that you want your changes integrated into the master elzar branch. Here is an explanation on how to create a pull request.

  8. Celebrate!

##How to update the npm module## Best to do this when the branch is tested and the feature is merged into master, but we can do it from any branch. Here's how to do it:

  1. Stage and commit all your changes.

  2. Go to the elzar directory in the terminal and run npm version <type> replacing with the kind of update you are doing (we use semantic versioning) this is: patch, minor or major. This will update package.json to reflect the new version.

  3. Run npm publish to update the changes in the npm repo.

  4. You will need to update the elzar version in the repo where you use it. You can do this by running npm update -S elzar the -S causes the version to be also updated in package.json.

##The ten commandments of sane style sheets## These are extracted from the great book Enduring CSS For more info on stylesheets check this other readme

  1. Have a single source of truth for all key selectors.
    Overrides, media queries and all the rules modifying an element are in the same declaration.

  2. Do not nest selectors (except media queries or (not many) overrides).
    Each key selector gets its own class and rule block, do not nest child elements. Do NOT do things like this:

.MarketGrid > .PhoneOnlyContainer > .ClickToCallHeader > .ClickToCal\ lHeaderMessage > .MessageHolder > span {
font-weight: bold;
padding-right: 5px; }
  1. Do not use ID selectors.
    Please don't, they introduce specifity and specifity is evil.

  2. Do not write vendor prefixes in the source stylesheets
    We will add them later using a post-processor.

  3. Use variables for colors, sizing, z-index and breakpoints
    It helps us maintain consistency, to find the colors please use htmlcsscolor to avoid things like $red-darker-than-darkest.
    For breakpoints we use the $breakpoint-a $breakpoint-b scheme, a being the smallest one.

  4. Write rules mobile first, avoid max-width
    It's easier and allows us to get into a mobile-first mentality, the only time we are allowed to use max-width is when we want to isolate some style to a middle range viewport.

  5. Use mixins (or variables) for font-stacks
    Put it in the body declaration and only override if necessary, if you don't need complicated logic, use a variable instead.

  6. Comment all magic numbers and browser hacks
    If a situation arises where a pixel based value needs entering into the authoring style sheets that isn’t already defined in the variables this should serve as a red flag to you. About browser hacks it is clear now what that clever hack does, but it won't probably be in three months so put a comment there.

  7. Do not inline images (still not sure about this one)
    We will use a post-processor to inline them later. But this is still a work in progress, so just use regular background-images for now.

  8. Simple is a lot better than complicated
    Try and write CSS code that is as simple as possible for others to reason about in future. Writing loops, mixins and functions should be minimised or used very seldom.