All Projects → wagerfield → Onno

wagerfield / Onno

Licence: mit
Responsive style props for building themed design systems

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Onno

Styled System
⬢ Style props for rapid UI development
Stars: ✭ 7,126 (+7401.05%)
Mutual labels:  styled-components, css-in-js, emotion
Styled Ppx
Typed styled components in Reason, OCaml and ReScript
Stars: ✭ 236 (+148.42%)
Mutual labels:  styled-components, css-in-js, emotion
Filbert Js
A lightweight(~1kb) css-in-js framework
Stars: ✭ 167 (+75.79%)
Mutual labels:  styled-components, css-in-js, emotion
Styled Tools
Useful interpolated functions for CSS-in-JS
Stars: ✭ 761 (+701.05%)
Mutual labels:  styled-components, css-in-js, emotion
Twin.macro
🦹‍♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, stitches and goober) at build time.
Stars: ✭ 5,137 (+5307.37%)
Mutual labels:  styled-components, css-in-js, emotion
Next Dark Mode
🌑 Enable dark mode for Next.js apps
Stars: ✭ 133 (+40%)
Mutual labels:  styled-components, css-in-js, emotion
Styled Components Vs Emotion
a short doc comparing the popular CSS-in-JS libraries styled-components and emotion
Stars: ✭ 204 (+114.74%)
Mutual labels:  styled-components, css-in-js, emotion
Grid
This package has moved and renamed
Stars: ✭ 2,079 (+2088.42%)
Mutual labels:  styled-components, css-in-js, emotion
satchel
The little bag of CSS-in-JS superpowers
Stars: ✭ 14 (-85.26%)
Mutual labels:  styled-components, emotion, css-in-js
Styled-Responsive-Media-Queries
Responsive Media Queries for Emotion styled or styled-components — Standard size from Chrome DevTools.
Stars: ✭ 33 (-65.26%)
Mutual labels:  styled-components, emotion, css-in-js
React Next Boilerplate
🚀 A basis for reducing the configuration of your projects with nextJS, best development practices and popular libraries in the developer community.
Stars: ✭ 129 (+35.79%)
Mutual labels:  styled-components, css-in-js, emotion
Design System Utils
👩‍🎨 Access your design tokens with ease
Stars: ✭ 465 (+389.47%)
Mutual labels:  styled-components, css-in-js, emotion
Xstyled
A utility-first CSS-in-JS framework built for React. 💅👩‍🎤⚡️
Stars: ✭ 1,835 (+1831.58%)
Mutual labels:  styled-components, css-in-js, emotion
Goober
🥜 goober, a less than 1KB 🎉 css-in-js alternative with a familiar API
Stars: ✭ 2,317 (+2338.95%)
Mutual labels:  styled-components, css-in-js, emotion
Css In React
🍭 CSS in React - Learn the best CSS in JS frameworks by example
Stars: ✭ 101 (+6.32%)
Mutual labels:  styled-components, css-in-js, emotion
tsstyled
A small, fast, and simple CSS-in-JS solution for React.
Stars: ✭ 52 (-45.26%)
Mutual labels:  styled-components, emotion, css-in-js
Styled Breakpoints
Simple and powerful tool for creating breakpoints in styled components and emotion. 💅
Stars: ✭ 428 (+350.53%)
Mutual labels:  styled-components, css-in-js, emotion
Horror
😱 React HTML elements with CSS-in-JS
Stars: ✭ 78 (-17.89%)
Mutual labels:  styled-components, css-in-js, emotion
Glamorous Native
React Native component styling solved💄
Stars: ✭ 566 (+495.79%)
Mutual labels:  styled-components, css-in-js
Design System
Priceline.com Design System
Stars: ✭ 604 (+535.79%)
Mutual labels:  styled-components, css-in-js

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
  • Works with any CSS in JS library that supports object styles like 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: "coral" }, { color: "ivory" }]
<Box backgroundColor="coral" color="ivory" />

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

Documentation

Credits

Onno is an iteration of Styled System written in TypeScript from the ground up. The core ideas are indebted to the brilliant work of Brent Jackson and the numerous contributors to this library.

Onno started life as a rewrite of Styled System in TypeScript following a discussion on GitHub. However, during the course of this rewrite, a number of new ideas, features and refinements to Styled System's API were introduced that eventually warranted another library.

The additional features introduced by onno are presented in detail here.

Author

Matthew Wagerfield

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].