Create shadow systems and effect styles with your choice of steps from a custom function.
- Go to the elevation scale plugin page
- Click on install in the top right corner
- 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
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.
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
If you disable Sync Styles
the effect styles
will be deleted as well.
- 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%
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.