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

Add some layout primitives #779

Open planktonic opened 1 year ago

planktonic commented 1 year ago

Utility classes can be used to create some complex layouts, but it’d be great to have some commonly-used layouts encapsulated in CSS classes. That would avoid having to recreate them in every codebase and template/component system.

Some possibilities listed below. Probably these would be best implemented using some global spacing and line-height variables — those can be used to ensure everything is spaced consistently.

planktonic commented 1 year ago

Also: a box component, that applies some standard padding around its content, good combined with u-bg classes. The current card component could be a variant of it