Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

💄 style primitive React interfaces with glamorous

NotificationsYou must be signed in to change notification settings

nitin42/glamorous-primitives

Repository files navigation

Build Status

style primitive React interfaces with glamorous

Table of contents

Problem

You cannot useglamorous together withreact-primitives to style the components.

Solution

Combine glamorous with react-primitives by removing implicit dependencies to render the same code across the targets.

Use this packageonly when you want to share the same code across multiple platforms. If you're looking to style the components for a specific platform useglamorous-native for React Native orglamorous for React

Install

npm install glamorous-primitives --save

This also depends onreact andreact-primitives. Make sure you have them installed.

Examples

You can find all the exampleshere.

Demo

Code

Renders on Sketch, Web and Mobile

Documentation

There are no breaking changes inglamorous-primitives except forone thing which means you can do everything you used to do withglamorous andglamorous-native 😄

What's more ?

I am working on 👇🏼

  • className as prop using babel transform
  • css prop (like glamorous)

Caveats

glamorous-primitives does not export the "tiny" version of glamorous like glamorous and glamorous-native.

Resources

Below is the list of resources where you can learn more about primitive interfaces, rendering process across multiple platform and styling the components

License

MIT

About

💄 style primitive React interfaces with glamorous

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp