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

@dnanpm/styleguide

Package Overview
Dependencies
Maintainers
6
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dnanpm/styleguide

Styles and styled components for DNA.

  • 1.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
193
decreased by-68.2%
Maintainers
6
Weekly downloads
 
Created
Source

DNA Styleguide

Styles and styled components for DNA.

Table of Contents

  1. Prerequisites
  2. Installation
  3. Usage
  4. IE11 Support NextJS
  5. How to see all the components
  6. Linting
  7. Changelog
  8. Contributing
  9. Publishing

Prerequisites

Node v10.13.0 NPM v6.9.0

Installation

A step by step series of examples that tell you how to get a development env running.

npm install @dnanpm/styleguide

Usage

import { Label, createStyled } from "@dnanpm/styleguide";
import { ThemeInterface } from './theme';

const {
    styled,
    css,
    createGlobalStyle,
    keyframes,
    ThemeProvider,
    ServerStyleSheet,
} = createStyled<ThemeInterface>();

const TestComponent = () =>
    <ThemeProvider theme={theme}>
        <Label color="slateGray">Label text</Label>
    </ThemeProvider>

export default TestComponent;

IE11 Support NextJS

In next.config.js you need to use next-transpile-modules package to allow nextjs to be able to transpile styleguide and related es6 modules based on babel config.

// next.config.js
const withTM = require('next-transpile-modules')(['@dnanpm/styleguide', "react-spring"]);

module.exports = withTM();

How to see all the components

This package is using styleguidist to show and list all the components in it:

npm run styleguide

Linting

The project is using TSLINT.

To check if the project has any linting issues, run the following command:

npm run tslint-check

Changelog

Recently Updated? Please read the changelog.

Contributing

How to contribute? Please read the contributing.

Publishing

How to publish new version? Please read the publish.

Keywords

FAQs

Package last updated on 18 Nov 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