File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -345,10 +345,10 @@ The example above will be compiled to the following CSS.
345345## Composition
346346
347347Because we oftentimes need to compose CSS classes, Sketch provides a ` compose `
348- function, acting like CSS Modules ` compose ` property . This allow you to reuse
349- CSS properties from another class, without having the burden of copy-pasting the
350- styles, or having to think on the class names to put in your nodes! Of course,
351- this remains totally optional. An example:
348+ function. This allow you to reuse CSS properties from another class, without
349+ having the burden of copy-pasting the styles, or having to think on the class
350+ names to put in your nodes! Of course, this remains totally optional. An
351+ example:
352352
353353``` gleam
354354fn button_style() {
Original file line number Diff line number Diff line change @@ -2245,7 +2245,7 @@ pub fn important(style: Style) -> Style {
22452245}
22462246
22472247/// Compose styles by inheriting class, and later overrides them.
2248- /// Works similarly to `composes` property in CSS modules .
2248+ /// Every styles from the class will be composed in the resulting class .
22492249pub fn compose ( class ) -> Style {
22502250 style . ClassName ( class )
22512251}
You can’t perform that action at this time.
0 commit comments