Skip to content

Commit 4128552

Browse files
committed
Update compose documentation
1 parent 27b476f commit 4128552

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sketch/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ The example above will be compiled to the following CSS.
345345
## Composition
346346

347347
Because 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
354354
fn button_style() {

sketch/src/sketch.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
22492249
pub fn compose(class) -> Style {
22502250
style.ClassName(class)
22512251
}

0 commit comments

Comments
 (0)