2.0.3 • Published 1 year ago

vue-box-shadows v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Vue Box-shadows

Collection of CSS box-shadows for every taste contains more than 100 simple, beautiful and airy shadows. Add beautiful shadow effects to your Vue project without thinking about CSS.


discord GitHub contributors npm download GitHub issues GitHub license

GitHub watchers GitHub forks GitHub stars

Note
You are reading the documentation for vue-box-shadows on vue 2.
Documentation for vue-box-shadows for vue 3 is here.

Install

$ npm i vue-box-shadows
# or yarn
$ yarn add vue-box-shadows

How to use

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

<script>
  import Vue from "vue";
  import vueBoxShadows from "vue-box-shadows";

  Vue.use(vueBoxShadows, {
    // options
  });

  export default {};
</script>

<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 ids or short names from the groups table.

Note
Note that ids and names are used differently:

<script>
  export default {
    data: () => ({
      items: [2, 4, 2],
    }),
  };
</script>

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

  <!-- or -->

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

  <!-- use shadow ids in a loop -->
  <div v-for="(item, index) in items" :key="index" v-box-shadow="item">
    {{ item }}
  </div>
</template>

Groups

The entire list of shadows can be viewed here or separately in the table below.

GroupIdNames ($ is value/number)ValuesExamples
None0none1---
Elevation1-24el-$1-24View
Borders25-30bd-$1-6View
Neumorphism31-39neu-$ or neu-$-i or neu-$-io1-3View
Axis x40-45ax-$1-6View
Axis y46-51ay-$1-6View
Small inner side52-55si-$1-4View
Medium inner side56-59mi-$1-4View
Large inner side60-63li-$1-4View
Top64-69t-$1-6View
Bottom70-75b-$1-6View
Right side76-81r-$1-6View
Left side82-87l-$1-6View
Angle: top left88-93tl-$1-6View
Angle: top right94-99tr-$1-6View
Angle: bottom right100-105br-$1-6View
Angle: bottom left106-111bl-$1-6View
Patterns112-115p-$1-2---

Options

OptionTypeDefaultDescription
useClassBooleanfalseSet to true in order to import styles into <head> automatically.
shadowBaseCustomString"0 2px 8px 0 rgb(50 50 50 / 8%)"Set a value for box-shadow to change the default property.

Browser compatibility

Properties are supported by all modern browsers. You can find out about browser support for earlier versions on the Can I Use site.

Contributing

Feedback, bug reports, and pull requests are welcome. Read the detailed information about contributions in the CONTRIBUTING.md file.

Note Bug reporting
If you find a bug and would like to report it, please make sure the request is not on the list of known issues.

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

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago