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

ui-design

v3.0.0

Published

Mobile first component helper

Downloads

74

Readme



Installation

npm install ui-design

scss

@import "~ui-design/src/index.scss";

css

@import "./node_modules/ui-design/dist/ui-design.css";

html

<link rel="stylesheet" href="./node_modules/ui-design/dist/ui-design.css">

Features


🔖 Align

  • flex-[start|center|end]-[start|center|end][-[sm|md|lg|xl]]
<p class="flex-center-center">
  Align center horizontally and vertically
</p>
  • left|center|right|justify[-[sm|md|lg|xl]]
<p class="center left-sm">
  Align center or left on small screen
</p>
  • v-[middle|top|bottom][-[sm|md|lg|xl]]
<p class="v-middle v-top-sm">
  Align middle or top on small screen
</p>

🔖 Card

card-[0-24]

<p class="card-7">
  Card with box shadow 7
</p>

🔖 Color

  • red|pink|purple|deep-purple|indigo|blue|light-blue|cyan|teal|green|light-green|lime|yellow|amber|orange|deep-orange-[50|100|200|300|400|500|600|700|800|900|a100|a200|a400|a700]
<p class="indigo-50">
  Color indigo 50
</p>
  • brown|grey|blue-grey-[50|100|200|300|400|500|600|700|800|900]
<p class="grey-50">
  Color grey 50
</p>
  • hover-[color]
<p class="hover-indigo-50">
  Color indigo 50 on hover
</p>
  • bg-[color]
<p class="bg-indigo-50">
  Background indigo 50
</p>
  • bg-hover-[color]
<p class="bg-hover-indigo-50">
  Background indigo 50 on hover
</p>

🔖 Display

  • flex|block|inline|inline-block|none[-[sm|md|lg|xl]]
<p class="none block-sm">Display none or block on small screen</p>
  • inline-block[-[sm|md|lg|xl]] fix[-[sm|md|lg|xl]]
<p class="inline-block-sm">Display inline-block on small screen</p>

🔖 Font

  • font[-[sm|md|lg|xl]]-[1-6][-[25|5|75]]
<p class="font-1 font-sm-2-25">
  Font size 1 or 2.25 rem on small screen
</p>
  • [roboto|segoe|georgia|monospace]
<p class="segoe">
  Font family segoe
</p>
  • font-[thin|extra-light|light|normal|medium|semi-bold|bold|extra-bold|black]
<p class="font-thin">
  Font weight thin
</p>
  • hyphens|word-break|txt-scroll|ellipsis
<p class="hyphens">
  Font cesure hyphens
</p>
  • pointer|initial
<p class="pointer">
  Cursor pointer
</p>

🔖 Gride

  • w|flex-w|w-auto|w-min|w-max|vw|flex-vw|vw-min|vw-max[-[sm|md|lg|xl]][1-12]
<p class="w-12 w-6-sm">
  Width 100% or 50% on small screen
</p>
  • h|h-auto|h-min|h-max|vh|flex-vh|vh-min|vh-max[-[sm|md|lg|xl]][1-12]
<p class="h-12 h-6-sm">
  Height 100% or 50% on small screen
</p>

🔖 Position

  • z-[1-10]
<p class="z-9">
  Z index 9
</p>
  • overflow[-[x|y]]-[auto|hidden|scroll]
<p class="overflow-x-hidden">
  Overflow x hidden
</p>
  • static|relative|absolute|fixed[-[sm|md|lg|xl]]
<p class="absolute relative-sm">
  Position absolute or relative on small screen
</p>
  • left|top|right|bottom[-[sm|md|lg|xl]]-[1-12]
<p class="left-0 left-sm-6">
  Left 0% or 50% on small screen
</p>

🔖 Spacing

  • wrap|nowrap[-[sm|md|lg|xl]]
<p class="flex wrap nowrap-sm">
  Flex wrap or no wrap on small screen
</p>
  • grow|nogrow[-[sm|md|lg|xl]]
<p class="flex grow nogrow-sm">
  Flex grow or no grow on small screen
</p>
  • shrink|noshrink[-[sm|md|lg|xl]]
<p class="flex shrink noshrink-sm">
  Flex shrink or no shrink on small screen
</p>
  • offset[-[r|t|b]][-[sm|md|lg|xl]]-[1-12]
<p class="offset-6 offset-sm-12">
  Offset left 50% or 100% on small screen
</p>
  • m|ml|mt|mr|mb[-[sm|md|lg|xl]]-[1-12]
<p class="m-4 m-sm-8">
  Margin .5em or 1em on small screen
</p>
  • p|pl|pt|pr|pb[-[sm|md|lg|xl]]-[1-12]
<p class="p-4 p-sm-8">
  Padding .5em or 1em on small screen
</p>
  • box[-[sm|md|lg|xl]]
<p class="box-sm">
  Border box on small screen
</p>

🎫 License

This project is licensed under the MIT License