JohnCoates / JohnCoates/CSSketch
Support for content property to change text
Open
- Dominant language
- Objective-C
- Stars
- 1.9k
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Description
I think it would be useful if we can use the `content` property to update the content of a text layer. Even though this property is only valid in a `:before` element, I think in the context of Sketch, it can allow for more applications. For example, when creating a colour palette, we can define the name of the colour and its hex code, which will update the text layers in Sketch:
``` less
.color {
.preview {
background-color: #00ff00;
}
.name {
content: 'Green';
}
.hex {
content: '#00ff00';
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.