Naming right can save time

Johan kleine Bjällskog
1 min readApr 24, 2023

You might end up in a project and get the task to change font-family , has that happened to you?

and when you start to look around you might see something like this :

export const fontNames = {
lato: '"Lato", "Helvetica", "Arial", sans-serif',
lucida: '"Lucida Grande", "Helvetica", "Arial", sans-serif',
}

and then you start thinking hmm… what was the point of making this variables?, you still need to go to all places and change the name on all places “lato” and “lucida” is used…

--

--

Johan kleine Bjällskog

Lead front-end developer, movie lover and a junkie of series.