All Projects → hnzycfcfed → styled-px2vw

hnzycfcfed / styled-px2vw

Licence: MIT license
Extension of styled-components with features for convert px to vw units

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to styled-px2vw

A Journey Toward Better Style
A Journey toward better style
Stars: ✭ 245 (+181.61%)
Mutual labels:  css-in-js
winampify
⚡ A Spotify web client with an OS-looking interface and a reimplementation of the classic audio player Winamp.
Stars: ✭ 180 (+106.9%)
Mutual labels:  css-in-js
morfeo
Morfeo is a tool to build design systems based on a theme. It helps you to follow a design language and write consistent UIs, whatever it is the framework of your choice. It's easy to use and, with the browser extension, your theme and your components are automatically documented.
Stars: ✭ 30 (-65.52%)
Mutual labels:  css-in-js
Arc
React starter kit based on Atomic Design
Stars: ✭ 2,780 (+3095.4%)
Mutual labels:  css-in-js
Further
🦄🌈🍄 algebraic style composition for functional UIs
Stars: ✭ 254 (+191.95%)
Mutual labels:  css-in-js
postcss-jsx
PostCSS syntax for parsing CSS in JS literals
Stars: ✭ 73 (-16.09%)
Mutual labels:  css-in-js
Styled Ppx
Typed styled components in Reason, OCaml and ReScript
Stars: ✭ 236 (+171.26%)
Mutual labels:  css-in-js
react-transition-components
Easily configurable React components for animations / transitions 💃
Stars: ✭ 18 (-79.31%)
Mutual labels:  css-in-js
Cssobj
Runtime CSS manager, Turn CSS into dynamic JS module, Stylesheet CRUD (Create, Read, Update, Delete) in CSSOM, name space (local) class names
Stars: ✭ 253 (+190.8%)
Mutual labels:  css-in-js
styled-media-helper
💅 Helps manage media queries with styled components
Stars: ✭ 76 (-12.64%)
Mutual labels:  css-in-js
Oceanwind
Compiles tailwind shorthand into css at runtime
Stars: ✭ 248 (+185.06%)
Mutual labels:  css-in-js
Css In Js 101
💈 CSS-in-JS 101: All you need to know
Stars: ✭ 252 (+189.66%)
Mutual labels:  css-in-js
ui
The Blockstack design system implemented with react, styled-components, and styled-system.
Stars: ✭ 34 (-60.92%)
Mutual labels:  css-in-js
Styled Props
Simple lib that allows you to set styled props in your styled-components without stress.
Stars: ✭ 247 (+183.91%)
Mutual labels:  css-in-js
spring-keyframes
✌️1.4kb library to generate css keyframes in css-in-js based on a spring algorithm, with emotion
Stars: ✭ 65 (-25.29%)
Mutual labels:  css-in-js
Awesome Styled Components
A curated list of awesome styled-components resources 💅
Stars: ✭ 2,869 (+3197.7%)
Mutual labels:  css-in-js
objectify-css
CLI for converting CSS rules to JavaScript style objects
Stars: ✭ 46 (-47.13%)
Mutual labels:  css-in-js
csx
Utility functions for TypeStyle
Stars: ✭ 92 (+5.75%)
Mutual labels:  css-in-js
vue-jss-plugin
JSS plugin implementation for Vue.js
Stars: ✭ 24 (-72.41%)
Mutual labels:  css-in-js
stitches-utils
Helpful stitches shorthand utilities combined in one package
Stars: ✭ 35 (-59.77%)
Mutual labels:  css-in-js

styled-px2vw

Travis (.org) npm npm David David GitHub stars

English | 简体中文

Extension of styled-components with features for convert px to vw units.
See the documentation at styled-components.com/docs for more information about using styled-components!

Quicklinks to some of the most-visited pages:

Important

Based on 750px design draft.

Motivation

Styled-px2vw mainly solves the problem of screen adaptation of multiple device sizes on mobile, The size of mobile devices is various, The current popular solution is to use vw units, Unfortunately, styled-components does not support this feature, so we developed the styled-px2vw component to solve the adaptation problem, Of course, there may be many problems in this, I hope that developers join together to optimize styled-px2vw, together to create a better front-end ecosystem.

Features

Installation

yarn:

yarn add styled-px2vw

npm:

npm i --save styled-px2vw

Example

style

Output

converted

Screenshot

screenshot

Migrate

Just change styled-components to styled-px2vw

import styled, { createGlobalStyle,... } from 'styled-components';

const Button = styled.button`
  color: white;
  font-size: 36px;
  margin: 10px;
  height: 85px;
  border: 2px solid palevioletred;
  border-radius: 3px;
`;

to

import styled, { createGlobalStyle,... } from 'styled-px2vw';

const Button = styled.button`
  color: white;
  font-size: 36px;
  margin: 10px;
  height: 85px;
  border: 2px solid palevioletred;
  border-radius: 3px;
`;

License

Licensed under the MIT License, Copyright © 2018-present hnzycfc.com, https://www.hnzycfc.com/

See LICENSE for more information.

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].