This is not "modern design", these are empty decorations.
And they are made using pseudo-elements (it's easier this way) with absolute positioning and through background properties with repetition. Rustam Bainazarov gave you the correct reference in the comments .