The Funk in Functional CSS
play_circle_outline
Topic
Front-end
Language
English
Description
One of the most fundamental rules we are taught is to keep it DRY, "Don't Repeat Yourself." Functional CSS speaks to this rule, you write lots of tiny, single-purpose classes that are named based on their visual function, & you only write them once this, which helps give a rhythm & balance to your design and layout. One trade-off with functional CSS is that you only keep the CSS part DRY but the mark-up is quite WET, which is a trade-off that is worth making considering the advantages that come with functional programming e.g, speeding up our work process.