Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

onno

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onno

Responsive style props for building themed design systems

  • 0.0.13
  • npm
  • Socket score

Version published
Weekly downloads
2.5K
increased by7.34%
Maintainers
1
Weekly downloads
 
Created
Source

onno

Code Coverage Bundle Size Build Status License

Responsive style props for building themed design systems.

yarn add onno

Features

  • Framework agnostic
  • Zero dependencies
  • First class support for themes and design tokens
  • Compatible with most CSS in JS libraries including styled-components and emotion
  • Written in TypeScript with comprehensive type definitions and interfaces
  • Rigorously tested with 100% code coverage

Usage

import styled from "styled-components"
import { colorSet, spaceSet } from "onno"

const Box = styled.div(colorSet, spaceSet)

// [{ padding: "16px" }]
<Box p={4} />

// [{ margin: "-32px" }]
<Box m={-5} />

// [{ marginLeft: "8px", marginRight: "8px" }, { paddingBottom: "4px" }]
<Box mx={3} pb={2} />

// [{ backgroundColor: "tomato" }, { color: "ivory" }]
<Box backgroundColor="tomato" color="ivory" />

// [{ background: "url(onno.png) center" }]
<Box bg="url(onno.png) center" />

Documentation

Credits

Onno is an iteration of Styled System rewritten in TypeScript from the ground up. A lot of the ideas are owed to the brilliant work of Brent Jackson and the numerous contributors to this library. Credit is also due to Emotion's facepaint for the original ideas behind responsive prop values.

Author

Matthew Wagerfield

License

MIT

Keywords

FAQs

Package last updated on 25 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc