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

gw-ui

v1.3.7

Published

Gordils & Willis UI Kit, react + sass

Downloads

16

Readme

The Gordils & Willis UI-Kit

Separated Sass Styles and React Components, use what you need, leave out what you don't.

See our in progress documentation ui-kit.gordilsandwillis.com

Philosophy

  1. Small Footprint.

We try and keep dependencies to a minimum. Especially with React. There is no way to just import the whole UI Kit instead you always import selectively what you need and leave the rest out of your build.

  1. Override Variables / not css classes Sass

It seems like the most common or adopted pattern for creating custom user interface styles is to import a framework like Bootstrap or Material and override the classes. This is weak because you add a whole bunch of styles that are unnecessary from the original framework as well as a bunch of redundant and uncessecarry files from overriding classes. With this UI Kit, you override variables and let the framework cascade based on your definitions.

  1. Separate Styles and Components

It's kind of ...

Getting Started

npm install gw-ui

Sass Styles

  1. To get started with Sass styles you need to import two dependencies for the ui-kit mixins.scss and variables.scss. These two files are used throughout the both dictate consistent spacing, colors and sizes
@import "{}/node_modules/gw-ui/dist/sass/variables.scss";
@import "{}/node_modules/gw-ui/dist/sass/mixins.scss";
  1. Once you have imported these two files, you will probably want to override the default variables in the UI-Kit with your own to essentially "theme" your project. Take a look at the variables.scss file for a full reference
@import "path/to/my/theme.scss";

and inside define your own values.

	$alert : #DF693D;
	$notify :  #F7C24E;
	$success : #37DCAF;
  1. The next step is to import other utility Sass styles. These are seperated into different functions and it is your choice to include what you need, the files avaliable to you are.

reset.scss : Reset everything

base.scss : Styles for html and body, other basic styles like .container : and * {box-sizing : border-box;}

typography.scss : Styles for typographic elements

rich_text.scss : .rich-text class for rich text containers

grid.scss : Styles for the grid spacing.scss : classes for applying margins and padding to element based on variables. icons.scss : .icon class for material icons animations.scss : basic animations for entering and leaving elements

React Components

for React Components import like this

import { Button, Loader, Input } from 'gw-ui';

The total list of components available is

Basic Inputs
  • Button
  • Input
  • TextArea
  • Select
  • Checkbox
  • Radio
Custom Inputs
  • Toggle
  • Content Editable
  • Editable Item
  • Typeahead
  • FileUpload
  • AddContentBetween
Table
  • Table
  • Column
  • Row
  • Cell
  • ImageCell
  • Actioncell
  • AvatarCell
  • NestedCell
  • SelectCell
  • DateCell
  • ButtonCell
Loaders
  • Loader
  • DotLoader
  • LinearLoader
  • TextLoader
Layout
  • Tabs
  • Collapse
  • Accordion
  • CenteredForm
  • ImageList
Misc
  • Avatar
  • Card
  • Video

Each of these Components has a corresponding Sass style sheet. You can choose to use them without any styles whatsoever or import their corresponding style sheet. *note these stylesheets depend on mixins.scss and variables.scss

if you wish to use them, import an stylesheet with the corrospnding name

@import "{}/node_modules/gw-ui/dist/Button.scss";
@import "{}/node_modules/gw-ui/dist/Loader.scss";
@import "{}/node_modules/gw-ui/dist/Input.scss";

Javascript Utilities

Coming Soon...

TODO

  1. Remove source and dev files on post install,
  2. Remove unneeded sass files
  3. Reorganize input component styles
  4. Finish Documentation
  5. Check / Update Table from Universe Project