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

samwds-jbabbs

v0.2.10

Published

Open source UI components and visual style guide for the System for Award Management environment.

Downloads

23

Readme

Draft SAM Web Design Standards

The Draft SAM Web Design Standards extend the Draft U.S. Web Design Standards, which include a library of open source UI components and visual style guide for U.S. federal government websites.

In addition to defining standards for HTML structure and applied CSS styles, developers for the SAM environment have created user-interface kits (UI kits) available separately to make it even easier to get up and running with developing sites that follow these standards. Further, using the UI kits allows you to quickly develop functioning user interfaces that comply with these standards and allows all of us to make global changes to the SAM environment front-end with minimal development time.

What do I get?

From the SAM Web Design Standards:

  1. The U.S. Web Design Standards (see below).
  2. Font Awesome for easy to use icons.
  3. SAM custom components and HTML.
  4. UI kits for easy HTML generation (separate downloads).

From the U.S. Web Design Standards:

The U.S. Web Design Standards include Sass, HTML structures, and JavaScript, including:

  1. Stanardized HTML for UI components.
  2. A package available through npmjs.org.
  3. A set of flexible Sass files and variables.
  4. jQuery; a lightweight JavaScript library able to manipulate pages and make asynchronous server calls.
  5. Bourbon Neat for creating a grid to allow adaptive page layouts.
  6. Bourbon; a lightweight mixin library for Sass.

Install using Node Package Manager

$ npm install samwds

Usage

The assets will be installed to the node_modules directory of your project under samwds.

Sass:

Add the following to the top of your root SCSS file:

@import '/relative/path/to/node_modules/samwds/src/stylesheets/all';

JavaScript:

Add the following to the top of your root JS file:

require('/relative/path/to/node_modules/samwds/src/js/start.js');

Fonts and images:

Copy the /node_modules/samwds/src/img and /node_modules/samwds/src/fonts directories to a public directory within your project.

Note: It is recommended that you automate this copying using something like npm gulp. This way, when you run npm update any changes to the fonts and images can be easily incorporated.

Project folder structure

The folder containing your compiled CSS and JavaScript should be at the same level within your project as the img and fonts directories.

Example:

public-root/
├── js/
│   └── compiled.js
├── css/
│   └── compiled.css
├── img/
└── fonts/

or

public-root/
└── assets/
    ├── js/
    │   └── compiled.js
    ├── css/
    │   └── compiled.css
    ├── img/
    └── fonts/

Need installation help?

Do you have questions or need help with setup? Did you run into any weird errors while following these instructions? Feel free to open an issue here:

https://github.com/GSA/sam-web-design-standards/issues.

You can also email us directly at [email protected].

Contributing to the code base

For complete instructions on how to contribute code, please read CONTRIBUTING. These instructions also include guidance on how to set up your own copy of the Standards style guide website for development.

If you have questions or concerns about our contributing workflow, please contact us by filing a GitHub issue or ...emailing our team... .

Reuse of open-source style guides

The Standards inherit from the U.S. Web Design Standards distributed by 18f. Thereby, inheriting from the guides listed there.

Licenses and attribution

A few parts of this project are not in the public domain

The Standards inherit from the U.S. Web Design Standards distributed by 18f. Thereby, inheriting the licenses and attributions of that project.

Some files in /dist/fonts and /dist Standards incorporate Font Awesome by Dave Gandy under the SIL Open Font License 1.1.

The rest of this project is in the public domain

The rest of this project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.