Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukasoppermann/elevation-scale
Figma plugin to create elevation systems based on functions.
https://github.com/lukasoppermann/elevation-scale
elevation figma figma-plugin figma-plugins generator shadow
Last synced: about 1 month ago
JSON representation
Figma plugin to create elevation systems based on functions.
- Host: GitHub
- URL: https://github.com/lukasoppermann/elevation-scale
- Owner: lukasoppermann
- Created: 2021-02-09T15:16:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T09:39:58.000Z (over 1 year ago)
- Last Synced: 2023-06-05T10:36:51.969Z (over 1 year ago)
- Topics: elevation, figma, figma-plugin, figma-plugins, generator, shadow
- Language: TypeScript
- Homepage:
- Size: 7.14 MB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Elevation Scale plugin for figma](https://github.com/lukasoppermann/elevation-scale/raw/main/_resources/Elevation-Scale-Plugin-Cover.jpg)
# Elevation Scale> Create shadow systems and effect styles with your choice of steps from a custom function.
## Installation
1. Go to the [elevation scale plugin page](https://www.figma.com/community/plugin/940989130927509964/Elevation-Scale)
2. Click on install in the top right corner## Usage
1. Run the plugin and click the `Create a new elevation scale` button
2. Select the elevation scale frame
3. Adjust the settings to your likingChanges are automatically applied and saved.
### Steps
`Steps` are the amount of elevations/shadows you want to create. For example `steps:2` will create two shadows each with all the layers you specify.### Effect Styles
To automatically create & update effect styles enable the `Sync Styles` option.
You can optionally provide a `style name` that will be used to create the effect styles. If you add a `#` to the name it will be replaced with the current step.
A `##` will result in a 0 prefixed number if below 10.```js
// Example style name with #
Elevation / Level # // Elevation / Level 0, Elevation / Level 1, ...// Example style name with ##
Elevation / ##dp // Elevation / 00dp, Elevation / 01dp, ..., Elevation / 12dp
```If you disable `Sync Styles` the `effect styles` will be deleted as well.
### Properties
- **Shadow type**: Either `dropshadow` or `innershadow`
- **x**: The x offset of the shadow. `#` is replaced by the current step. E.g. `.5*#`
- **y**: The y offset of the shadow. `#` is replaced by the current step. E.g. `2+#`
- **blur**: The shadows blur radius. `#` is replaced by the current step. E.g. `(1+#)*4`
- **spread**: The shadows spread. `#` is replaced by the current step. E.g. `#/.5`
- **color**: a 6-digit hex color code between `000000` and `FFFFFF`
- **opacity**: The opacity for the color. `#` is replaced by the current step. E.g. `10+#` if `#` = 1 -> `11%`### Adding Layers
An elevation step consists of one or more elevation layers (each `layer` is an effect e.g. a dropshadow or innershadow).
Each layer you add will be present on each step.
To add a new layer, click the "Add layer" button below the list of layers.
To delete a layer click the trash can icon next to the layer name. (You can not delete the last layer)Layer names are purely for your organization of the different layers and have no effect on the elevations or the names.