Generates CSS snippets from colors, text styles and layers. ⚛️📱
Sample colors output:
:root {
--blue: #0000ff;
--yellow: #ffff00;
--green: #00ff00;
--black: #000000;
--black50: rgba(0, 0, 0, 0.5);
--white: #ffffff;
--red: #ff0000;
}
Sample text style output:
.Sample-text-style {
font-family: Roboto;
font-size: 20px;
font-weight: normal;
font-stretch: normal;
font-style: normal;
line-height: normal;
letter-spacing: normal;
text-align: left;
color: var(--black);
}
.Sample-text-style-with-color {
font-family: Roboto;
font-size: 20px;
font-weight: normal;
font-stretch: normal;
font-style: normal;
line-height: normal;
letter-spacing: normal;
text-align: left;
color: var(--red);
}
Sample layer output:
.Layer-with-shadow {
width: 100px;
height: 100px;
box-shadow: 0 2px 4px 6px var(--black50);
}
Supports HEX, RGB or HSL. Sample colors output as HSL:
:root {
--blue: hsl(240, 100%, 50%);
--black50: hsla(0, 0%, 0%, 0.5);
}
Toggles generating width
and height
properties from layers.
Toggles generating unitless value for line-height
property.
Toggles always generating default values from layers or text styles, such as fontWeight
and fontStyle
.
CSS extension is developed using zem, Zeplin Extension Manager. zem is a command line tool that lets you quickly create and test extensions.
To learn more about zem, see documentation.