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

glasses-ui

v0.0.4-3

Published

<h1 align="center"> <img src="https://github.com/oguzhan18/glasses-ui/blob/master/src/assets/logo/glasses-ui-logo.png?raw=true" widht="400" height="350"></h1>

Downloads

2

Readme

GitHub license

Glasses UI a collection of reusable CSS classes to enhance your web development experience. This library provides various utilities, styles, and components that you can easily integrate into your projects.

Table of Contents

Installation

You can install the library via npm:

npm i glasses-ui

Usage

To use the library in your project, import the style.scss file into your main SCSS file:

@import 'glasses-ui/style';

After importing, you can start using the provided CSS classes in your HTML files.

Button Styles

The library provides pre-defined button styles that you can use by adding the corresponding classes to your buttons:

  • .btn-primary: Primary button style with a blue background color.
  • .btn-danger: Danger button style with a red background color.
  • .btn-success: Success button style with a green background color.
  • .btn-warning: Warning button style with a yellow background color.
  • .btn-info: Info button style with a cyan background color.

You can also adjust the button size by adding classes like .btn-sm, .btn-md, .btn-lg, or .btn-xl.

<button class="btn-primary">Primary Button</button>
<button class="btn-danger btn-md">Medium Danger Button</button>

Border Styles

The library provides various border styles that you can apply to your elements:

  • .border-none: No border.

  • .border-solid: Solid border style.

  • .border-dashed: Dashed border style.

  • .border-dotted: Dotted border style.

  • .border-double: Double border style. You can also adjust the border width and color using the following classes:

  • .border-width-1px: 1-pixel border width.

  • .border-width-2px: 2-pixel border width.

  • .border-width-3px: 3-pixel border width. ... (add more as needed)

To specify the border color, use classes like .border-color-primary, .border-color-danger, etc., where the color corresponds to the button styles.

<div class="border-solid border-width-2px border-color-primary">Solid Border</div>
<div class="border-dashed border-width-1px border-color-danger">Dashed Border</div>

Shadow Styles

The library provides shadow styles that you can apply to elements:

  • .shadow-box: Basic box shadow effect.
  • .shadow-text: Shadow effect for text elements. You can also adjust the shadow size by using classes like .shadow-sm, .shadow-md, .shadow-lg, etc.
<div class="shadow-box shadow-md">Box with Shadow</div>
<p class="shadow-text shadow-sm">Text with Shadow</p>

Text Styles

The library offers various text styles:

  • .text-center: Center-align text.
  • .text-left: Left-align text.
  • .text-right: Right-align text.
  • .text-uppercase: Convert text to uppercase.
  • .text-lowercase: Convert text to lowercase.
  • .text-capitalize: Capitalize the first letter of each word.
<h1 class="text-center">Centered Heading</h1>
<p class="text-uppercase">uppercase text</p>

Background Styles

The library provides background color classes:

  • .bg-primary: Blue background color.
  • .bg-danger: Red background color.
  • .bg-success: Green background color.
  • .bg-warning: Yellow background color.
  • .bg-info: Cyan background color. You can also add custom background colors using the .bg-custom class and specifying the desired color using inline CSS.
<div class="bg-primary">Blue Background</div>
<div class="bg-custom" style="background-color: #FFA500;">Custom Background</div>

Interactions

The library allows you to add interaction styles:

  • .hover-transform: Apply a transformation on hover.
  • .hover-rotate: Rotate an element on hover.
  • .hover-scale: Scale an element on hover.
<div class="hover-transform rotate(10deg) scale(1.2)">Transform on Hover</div>

Custom Buttons

You can create custom buttons with your own styles by using the following classes:

  • .btn-custom-1: Custom button with a green background and white text.
  • .btn-custom-2: Custom button with a red border, white text, and 2px border width.
<button class="btn-custom-1">Custom Button 1</button>
<button class="btn-custom-2">Custom Button 2</button>

Flexbox Utilities

The library includes useful flexbox utilities:

  • .flex-container: Set an element as a flex container.
  • .flex-item: Set an element as a flex item.
  • .flex-row: Set flex direction to row.
  • .flex-column: Set flex direction to column.
  • .flex-wrap: Enable flex items to wrap if necessary.
  • .justify-content-center: Center-align flex items horizontally.
  • .justify-content-start: Align flex items to the start of the container.
  • .justify-content-end: Align flex items to the end of the container.
  • .align-items-center: Center-align flex items vertically.
  • .align-items-start: Align flex items to the top of the container.
  • .align-items-end: Align flex items to the bottom of the container.
<div class="flex-container justify-content-center align-items-center">
 <div class="flex-item">Flex Item 1</div>
 <div class="flex-item">Flex Item 2</div>
</div>

License

This project is licensed under the MIT License.