38

PylonCSS – SwiftUI-like layout primitives for the web

 4 years ago
source link: https://www.tuicool.com/articles/n63mmyb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Pylon

Declarative layout primitives for CSS & HTML

Pylon encapsulates Flexbox logic into a set of declarative and expressive tags and attributes which, when combined, form robust user interfaces.

yYRviq6.png!web Easily configurable yYRviq6.png!web Pure CSS – no JavaScript yYRviq6.png!web Less than 2kb minified

A thing by @almonk

Westminster 0.5 miles Richmond 2.5 miles Hampstead 4.2 miles Balham 6.0 miles Wapping 10.5 miles
<list>
  <hstack spacing=s>
    <div class="icon"></div>
    <text>Westminster</text>
    <spacer></spacer>
    <text>0.5 miles</text>
  </hstack>
  ...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK