bitcrowd / bitstyles

A complete design system, with base styles and components, built in Sass using CSS variables
https://bitcrowd.github.io/bitstyles
ISC License
16 stars 0 forks source link

[#779] Add some layout primitives (stack) #781

Closed planktonic closed 11 months ago

planktonic commented 1 year ago

Part of #779

Changes

📸 Looks like

Screenshot 2023-05-22 at 16 28 35

How to QA

đź‘€ Visual changes

Check:

đź‘ľ Code changes

Check:

Preflight checks

ArinzeJeffrey-droid commented 1 year ago

How is this different from a-content?

planktonic commented 1 year ago

How is this different from a-content?

@ArinzeJeffrey-droid the content atom is for restricting the width of the element, and applying padding at the sides. The stack atom doesn’t do that, it applies vertical space between each child element (it looks like it “applies space below each child element”, but technically it’s above). Both could be used together, and would probably be great for a main layout area! Perhaps we should add some docs for the layout primitives — I’ve added an issue for that: #791