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

@devfolioco/genesis

Package Overview
Dependencies
Maintainers
6
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devfolioco/genesis

Devfolio's Design System

  • 2.8.5-beta.6
  • beta
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
6
Weekly downloads
 
Created
Source

Genesis

Netlify Status

Demo | Source

Usage

Make sure you have react and styled-components installed in your project and then run:

yarn add @devfolioco/genesis

Basic Example:

import React, { Component } from 'react';
import { Button, ThemeProvider } from '@devfolioco/genesis';

export default class App extends Component {
  render() {
    return (
      <div>
        <ThemeProvider>
          <Button appearance="primary">Devfolio!</Button>
        </ThemeProvider>
      </div>
    );
  }
}

It's required to import ThemeProvider and wrap all components in it, as it provides the colors and typography.

Development

Make sure you have all the dependencies installed:

yarn

We use React Storybook for component development.

Start the server using:

yarn start

Write stories for the components in the respective folders as component-name.stories.js.

To build the storybook run:

yarn build-storybook

This generates a static Storybook in the "storybook-static" directory.

Adding Icons

We rely on the generateIcons.js script to dynamically create the icon components!

For e.g., Adding an asset named devfolio.svg to src/assests/icons creates and exports an icon component named Devfolio from AllIcons.tsx.

FAQs

Package last updated on 15 Mar 2021

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