New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

styled-skeleton

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-skeleton

Skeleton.css for your styled-components

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

styled-skeleton

Single file with skeleton.css for your styled-components

Original skeleton.css copied and adapted from dhg/Skeleton

Structure borrowed from styled-normalize

Usage

yarn add styled-skeleton styled-components

JavaScript

// ----- styles/index.js
import styledSkeleton from 'styled-skeleton';
import { injectGlobal } from 'styled-components';

export default () => injectGlobal`
  ${styledSkeleton}

  body {
    padding: 0;
    background-color: pink;
  }
`;

// ----- client.js
// ... imports
import baseStyles from './styles/index';

const render = () => {
  baseStyles();

  ReactDOM.render(<AppContainer />, document.getElementById('app-root'));
};

render();

With named import

// ES Modules
import { skeleton, version } from 'styled-skeleton';

// CommonJS
const { skeleton, version } = require('styled-skeleton');

ServerSide Rendering

Styled-components supports SSR, you can read discussion or open RURARAR

Keywords

styled

FAQs

Package last updated on 12 Feb 2018

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