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

foliage

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foliage

Styled Components for forest

  • 0.103.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.7K
increased by9.06%
Maintainers
1
Weekly downloads
 
Created
Source

foliage 🍃

NPM GitHub

Usage

Edit on Stackblitz

import { using } from 'forest';
import { styled, StyledRoot } from 'foliage';

const Block = styled.div`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  box-shadow: rgba(0, 0, 0, 0.17) 0px 2px 20px;
  box-sizing: border-box;
  min-height: 100vh;
  margin-bottom: 160px;
  background: linear-gradient(20deg, rgb(219, 112, 147), rgb(218, 163, 87));
`;

const Button = styled.a`
  display: inline-block;
  border-radius: 3px;
  padding: 0.5rem 0;
  margin: 0.5rem 1rem;
  width: 11rem;
  background: transparent;
  color: white;
  border: 2px solid white;
  text-decoration: none;

  &[data-fill='true'] {
    background: white;
    color: palevioletred;
  }
`;

function App() {
  Block({
    fn() {
      Button({
        text: 'Google',
        attr: { href: 'https://google.com' },
        data: { fill: true },
      });
      Button({
        text: 'Yandex',
        attr: { href: 'https://yandex.ru' },
      });
    },
  });
}

using(document.querySelector('#root'), App);
using(document.querySelector('head'), StyledRoot);

Keywords

FAQs

Package last updated on 13 Oct 2020

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