Begoniav2.0style guide home
Press Enter to copy its CSS to the clipboard.

Spacing

Spacing

Click a card to copy its CSS.

Spacing scale: name, size in rem and size in pixels. Select a row to copy its CSS.
NameSizePixelsPreview
0px0px
1px1px
0.125rem2px
0.25rem4px
0.375rem6px
0.5rem8px
0.625rem10px
0.75rem12px
1rem16px
1.25rem20px
1.5rem24px
1.75rem28px
2rem32px
2.25rem36px
2.5rem40px
3rem48px
3.5rem56px
4rem64px
5rem80px
6rem96px
7rem112px
8rem128px

The Begonia blog overrides the two smallest steps: space-1 is 2px and space-1.5 is 4px. The semantic spacing tokens are listed in tokens.json.

Demonstration

64 px
64 px

Chapter 1: Great Mornings

32 px
Lucid Dream
16 px

One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. “What’s happened to me?” he thought. It wasn’t a dream. His room, a proper human room although a little too small, lay peacefully between its four familiar walls. A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame. It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the dull weather. Drops

64 px
64 px