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

box-shadows

v1.0.0

Published

Mini librería CSS de sombras.

Downloads

3

Readme

GitHub License

BoxShadows.css

header

Mini librería CSS de sombras.

Instalación

npm i box-shadows

O descarga el archivo desde la web: https://cssshadows.netlify.app/

Modo de uso

1. Ejemplo con Styled Components:

import styled from "styled-components";
import { sw_b_20_b } from "box-shadows";

const Card = styled.div`
  width: 200px;
  height: 200px;
  box-shadow: ${sw_b_20_b};
`;

2. De forma tradicional:

La forma de utilizar esta librería es como cualquier archivo CSS. Solo debes enlazarlo en el <head>.

Ejemplo:

<head>
  <link rel="stylesheet" href="./shadows.min.css">
</head>

❗ ATENCIÓN ❗

Solo hay clases no puedes usar id.

Entonces debes llamar los class desde las etiquetas que utilizes. Por ejemplo un <div>.

Color de la sombra

  • #CACACA
  • rgb(202, 202, 202)
  • hsl(0, 0%, 79%)

Tipos de clases disponibles

  • Clases con efecto Blur.
  • Clases con efecto Solid.
  • Clases con efecto Multi Colors.

Significado de las letras

Estás letras hacen referencia a la posición de la sombra. Las verás en las clases que están de ejemplo más abajo.

| Letra | Significado | | ----- | ----------- | | C | Center | | L | Left | | R | Right | | T | Top | | B | Botton |

En las sombras multi colores poseen dos posiciones, por ejemplo: left-top, osea posicionada arriba a la izquierda.

Clases efecto Blur

Los números que contienen las clases hacen referencia a la cantidad de píxeles de blur.

Ejemplo:

<div class="sw-b-30-b"></div>

<!--
  Está clase contiene una sombra tipo blur de 30px posicionada en la línea inferior del elemento,
  el nombre completo sería así: "shadows-blur-30-botton".
-->

sample1

| Clases | | ----------- | | sw-b-10-c | | sw-b-10-l | | sw-b-10-r | | sw-b-10-t | | sw-b-10-b | | sw-b-20-c | | sw-b-20-l | | sw-b-20-r | | sw-b-20-t | | sw-b-20-b | | sw-b-30-t | | sw-b-30-l | | sw-b-30-b | | sw-b-30-r | | sw-b-30-c | | sw-b-40-c | | sw-b-40-t | | sw-b-40-l | | sw-b-40-r | | sw-b-40-b | | sw-b-50-c | | sw-b-50-t | | sw-b-50-l | | sw-b-50-r | | sw-b-50-b |

Clases efecto Solid

Los números que contienen las clases hacen referencia a la cantidad de píxeles de Solid.

Ejemplo:

<div class="sw-s-10-r"></div>

sample2

| Clases | | ----------- | | sw-s-10-c | | sw-s-10-l | | sw-s-10-r | | sw-s-10-t | | sw-s-10-b | | sw-s-20-c | | sw-s-20-l | | sw-s-20-r | | sw-s-20-t | | sw-s-20-b |

Clases efecto Multi Colors

Estás clases contienen varias capas de sombras multi colores (Experimental).

Ejemplo:

<div class="sw-s-mlt-clr-l-b"></div>

sample2

| Clases | | ------------------ | | sw-s-mlt-clr-r-t | | sw-s-mlt-clr-l-t | | sw-s-mlt-clr-r-b | | sw-s-mlt-clr-l-b | | sw-s-mlt-clr-t | | sw-s-mlt-clr-b |


Licencia

MIT