Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/knowler/ui-lab


https://github.com/knowler/ui-lab

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# ui lab

## Styling

These are ideas I’m experimenting with. They aren’t dogma.

- HTML elements should describe what they are semantically and not layout.
- Use custom element names when practical.
- Avoid using `div` or `span`.
- Try to avoid needing to recreate native elements like `button`, `a`,
etc.
- Use `data-` attributes for dynamic reusable styles.
- For example, `data-layout="stack"` instead of making an element out
of it.
- Use CSS custom properties for custom values.

### Inspo

- Every Layout
- Michael Chan (AVO)
- Travis Arnold (JSXUI)