Glean

Optimizing our CSS at Glean

Aug 10, 2026
Optimizing our CSS at Glean
SummaryAI, from the source post

This post details Glean's migration from inline styles to vanilla-extract for CSS management. It outlines the survey of CSS frameworks, the decision to choose vanilla-extract due to its zero-runtime overhead and developer experience benefits, and the development of codemods to automate the refactoring of approximately 300 files. The post also discusses the practical benefits of vanilla-extract, such as improved debugging with generated classNames, and the learning curve associated with adopting new CSS practices.