Building a Web UI Style Guide Using Phoenix Components

107
clicks
Building a Web UI Style Guide Using Phoenix Components

Source: readyforproduction.dev

Type: Post

Marcelo discusses the recent release of a new landing page for their site and how it was the perfect time to think about improving the frontend by fostering reusability and better code organization using Phoenix Components and the Atomic Design methodology. He goes into how a ubiquitous language as described in Domain-Driven Design by Eric Evans, along with a structured frontend style guide, can streamline communication between developers, domain experts, and other team members, thereby leading to better software. By defining Design Tokens using CSS Custom Properties, the team laid the foundation for the visual attributes of their UI components. Throughout the article, Marcelo demonstrates how Phoenix Components are integrated into the website with practical examples, displaying how slots enhance component reusability. Lastly, he shares how the team organized their code into sub-contexts to manage atoms, molecules, and organisms efficiently, touching briefly on the plans to document and test all components thoroughly.

© HashMerge 2024