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

vue3-box-shadows

v1.1.89

Published

Collection of CSS box-shadows for every taste contains more than 100 simple, beautiful and airy shadows.

Downloads

150

Readme

Vue3 Box-shadows

A collection of simple and airy shadows for Vue.js v3 projects.


discord npm download GitHub issues

GitHub watchers GitHub forks GitHub stars

Note
You are reading the documentation for vue-box-shadows on Vue.js v3.
Documentation for vue-box-shadows for Vue.js v2 is here.

Download and Installation

$ npm i --save-dev vue3-box-shadows
# or yarn
$ yarn add --dev vue3-box-shadows

Usage

import { createApp } from "vue"
import App from "./App.vue"
import shadows from "vue3-box-shadows";

const app = createApp(App);

app.use(shadows);
app.mount('#app');

To create a basic shadow element with minimal configuration, write the following:

<template>
  <div v-box-shadow>
    Add beautiful shadow effects to your project without thinking about CSS.
    Properties are supported by all modern browsers.
  </div>
</template>

To use collection shadows, you need to apply id or short name-$ ($ is value) from the groups table.

<template>
  <!-- use name -->
  <div v-box-shadow:neu-2></div>

  <!-- or -->

  <!--  use id -->
  <div v-box-shadow="34"></div>
</template>

Groups

Examples of shadows can be seen in the table below. To work with shadows on your site, simply select a group that matches your site's style (elevation to example), select an ids or names, and you're done.

| Group | Id | Names | Values | Examples | | ------------------- | :-----: | ---------------------------------- | :----: | :------------: | | None | 0 | none | 1 | --- | | Elevation | 1-24 | el-$ | 1-24 | View | | Borders | 25-30 | bd-$ | 1-6 | View | | Neumorphism | 31-39 | neu-$ or neu-$-i or neu-$-io | 1-3 | View | | Axis x | 40-45 | ax-$ | 1-6 | View | | Axis y | 46-51 | ay-$ | 1-6 | View | | Small inner side | 52-55 | si-$ | 1-4 | View | | Medium inner side | 56-59 | mi-$ | 1-4 | View | | Large inner side | 60-63 | li-$ | 1-4 | View | | Top | 64-69 | t-$ | 1-6 | View | | Bottom | 70-75 | b-$ | 1-6 | View | | Right side | 76-81 | r-$ | 1-6 | View | | Left side | 82-87 | l-$ | 1-6 | View | | Angle: top left | 88-93 | tl-$ | 1-6 | View | | Angle: top right | 94-99 | tr-$ | 1-6 | View | | Angle: bottom right | 100-105 | br-$ | 1-6 | View | | Angle: bottom left | 106-111 | bl-$ | 1-6 | View | | Patterns | 112-115 | p-$ | 1-2 | --- |

Options

| Option | Type | Default | Description | | ---------------- | ------- | -------------------------------- | -------------------------------------------------------------------- | | useClass | Boolean | false | Set to true in order to import styles into <head> automatically. | | shadowBaseCustom | String | "0 2px 8px 0 rgb(50 50 50 / 8%)" | Set a value for box-shadow to change the default property. |

// ...
app.use(shadows, {
  useClass: false,
  shadowBaseCustom: "0 2px 8px 0 rgb(50 50 50 / 8%)",
});

License

Vue-box-shadows is licensed under the MIT license. You are free to use, modify and distribute this software, as long as the copyright header is left intact.


Installing · Usage · Groups · Options