svelte-stylo

0.1.1 • Public • Published

Stylo

A set of utility components and functions for quickly building theme-based user interfaces in Svelte.

It's loosely based on Styled System ideas and Theme specification, but implemented as pure Svelte components (without any external dependencies).

Styling is applied using normal Svelte properties, taken from a theme-aware set of CSS properties (and shorthands).

Example:

<Panel
  bg="surface" 
  color="secondary++"
  border 
  shadow="lg"
  rounded="md"
  p="nm" pr="lg" pl="lg"
  m="md">
  A panel with background, color, border, shadow, radii, padding
  and margin using default Theme values
</Panel>

Status

This is work in progress. Not ready for dev or production.

Package Sidebar

Install

npm i svelte-stylo

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

387 kB

Total Files

30

Last publish

Collaborators

  • mazito