New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

picostyled

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picostyled

Lightweight styled components.

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
Maintainers
1
Weekly downloads
 
Created
Source

Picostyled

Lightweight styled components.

774B gzip

Features

  • 🚀 Lightweight CSS in JS library: Only 0.7 KB (bundled & gzipped)
  • 💅 Styled components: Returns styled components like styled-components that everyone loves :)
  • ❤️ For Picodom: Picodom is just 1 KB Virtual DOM builder and patch algorithm
$ npm install picostyled

How to use

Picostyled works well with Media Queries (@media), Pseudo-element and Pseudo-classes (:hover).

const themeColor = '#00897b'
const Text = styled('h1')`
  font-size: ${props => props.small ? '32px' : '64px'};
  cursor: pointer;
  color: white;
  margin: .1em 0;
  transition: all .2s ease-in-out;

  &:hover {
    transform: scale(1.3);
  }

  @media (max-width: 450px) {
    font-size: 32px;
  }
`

const Wrapper = styled('div')`
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background-color: ${themeColor};
`

return (
  <Wrapper>
    <Text>{state.trim() === '' ? ':)' : state}</Text>
    <Text small>components</Text>
  </Wrapper>
)

Perfect example with Picodom and webpack is here.

Keywords

FAQs

Package last updated on 13 Aug 2017

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