Stylette: Styling the Web with Natural Language
Abstract
End-users can potentially style and customize websites by editing them through in-browser developer tools. Unfortunately, end-users lack the knowledge needed to translate high-level styling goals into low-level code edits. We present Stylette, a browser extension that enables users to change the style of websites by expressing goals in natural language. By interpreting the user’s goal with a large language model and extracting suggestions from our dataset of 1.7 million web components, Stylette generates a palette of CSS properties and values that the user can apply to reach their goal. A comparative study (N=40) showed that Stylette lowered the learning curve, helping participants perform styling changes 35% faster than those using developer tools. By presenting various alternatives for a single goal, the tool helped participants familiarize themselves with CSS through experimentation. Beyond CSS, our work can be expanded to help novices quickly grasp complex software or programming languages.
- Venue
- CHI 2022
- Volume
- CHI Conference on Human Factors in Computing Systems
- DOI
- 10.1145/3491102.3501931
- https://dl.acm.org/doi/pdf/10.1145/3491102.3501931
- Anthology ID
2022.chi.113
Cite
@inproceedings{kim-etal-2022-stylette,
title = {{Stylette: Styling the Web with Natural Language}},
author = {Tae Soo Kim and DaEun Choi and Yoonseo Choi and Juho Kim},
booktitle = {CHI Conference on Human Factors in Computing Systems},
isbn = {9781450391573},
year = {2022},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3491102.3501931},
url = {https://doi.org/10.1145/3491102.3501931},
abstract = {End-users can potentially style and customize websites by editing them through in-browser developer tools. Unfortunately, end-users lack the knowledge needed to translate high-level styling goals into low-level code edits. We present Stylette, a browser extension that enables users to change the style of websites by expressing goals in natural language. By interpreting the user’s goal with a large language model and extracting suggestions from our dataset of 1.7 million web components, Stylette generates a palette of CSS properties and values that the user can apply to reach their goal. A comparative study (N=40) showed that Stylette lowered the learning curve, helping participants perform styling changes 35\% faster than those using developer tools. By presenting various alternatives for a single goal, the tool helped participants familiarize themselves with CSS through experimentation. Beyond CSS, our work can be expanded to help novices quickly grasp complex software or programming languages.}
}