Elevation Scale
<p>Create shadow systems and effect styles with your choice of steps from a custom function.</p><p><br></p><h1><strong>Usage</strong></h1><ol><li>Run the plugin and click the <code>Create a new elevation scale</code> button</li><li>Select the elevation scale frame</li><li>Adjust the settings to your liking</li></ol><p><br></p><p><strong>Changes are automatically applied and saved.</strong></p><p><br></p><h2>Steps</h2><p><code>Steps</code> are the amount of elevations/shadows you want to create. For example <code>steps:2</code> will create two shadows each with all the layers you specify.</p><h3><br></h3><h2>Effect Styles</h2><p>To automatically create & update effect styles enable the <code>Sync Styles</code> option. You can optionally provide a <code>style name</code> that will be used to create the effect styles. If you add a <code>#</code> to the name it will be replaced with the current step. A <code>##</code> will result in a 0 prefixed number if below 10.</p><pre class="ql-syntax" spellcheck="false">// Example style name with # Elevation / Level # // Elevation / Level 0, Elevation / Level 1, ... // Example style name with ## Elevation / ##dp // Elevation / 00dp, Elevation / 01dp, ..., Elevation / 12dp </pre><h3><br></h3><h2>Properties</h2><ul><li>Shadow type: Either <code>dropshadow</code> or <code>innershadow</code></li><li>x: The x offset of the shadow. <code>#</code> is replaced by the current step. E.g. <code>.5*#</code></li><li>y: The y offset of the shadow. <code>#</code> is replaced by the current step. E.g. <code>2+#</code></li><li>blur: The shadows blur radius. <code>#</code> is replaced by the current step. E.g. <code>(1+#)*4</code></li><li>spread: The shadows spread. <code>#</code> is replaced by the current step. E.g. <code>#/.5</code></li><li>color: a 6-digit hex color code between <code>000000</code> and <code>FFFFFF</code></li><li>opacity: The opacity for the color. <code>#</code> is replaced by the current step. E.g. <code>10+#</code> if <code>#</code> = 1 -> <code>11%</code></li></ul><p><br></p><h2>Adding Layers</h2><p>An elevation step consists of one or more elevation layers (each `layer` is an effect e.g. a dropshadow or innershadow). </p><p>Each layer you add will be present on each step.</p><p>To add a new layer, click the "Add layer" button below the list of layers.</p><p>To delete a layer click the trash can icon next to the layer name. (You can not delete the last layer)</p><p><br></p><p>Layer names are purely for your organization of the different layers and have no effect on the elevations or the names.</p><p><br></p><h2><strong>Bug reports, PRs & feature requests</strong></h2><p>If you find a bug or want to help by suggestion or even developing a feature, please reach out on the github project page: <a href="https://github.com/lukasoppermann/elevation-scale/issues" rel="noreferrer noopener nofollow" target="_blank">https://github.com/lukasoppermann/elevation-scale/issues</a></p>
Plugin Preview
About this plugin
Create shadow systems and effect styles with your choice of steps from a custom function.
Usage
- Run the plugin and click the
Create a new elevation scale
button - Select the elevation scale frame
- Adjust the settings to your liking
Changes 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.
// Example style name with # Elevation / Level # // Elevation / Level 0, Elevation / Level 1, ... // Example style name with ## Elevation / ##dp // Elevation / 00dp, Elevation / 01dp, ..., Elevation / 12dp
Properties
- Shadow type: Either
dropshadow
orinnershadow
- 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
andFFFFFF
- 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.
Bug reports, PRs & feature requests
If you find a bug or want to help by suggestion or even developing a feature, please reach out on the github project page: https://github.com/lukasoppermann/elevation-scale/issues
Plugin Details
Version | 10 |
---|---|
Created | February 9, 2021 |
Last Updated | March 5, 2021 |
Category | Software development |
Creator | Lukas Oppermann |
Stats | 2827 installs, 144 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:dist/ui.html
- main:dist/plugin.js
More Like This
Discover other plugins in the Software development category.