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

@patreon/studio

Package Overview
Dependencies
Maintainers
9
Versions
359
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patreon/studio

Patreon Studio Design System

  • 3.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
225
increased by97.37%
Maintainers
9
Weekly downloads
 
Created
Source

Studio Design System

Introduction

Studio Design System is Patreon’s web design system and is built with React and Styled Components and written in Typescript.

The docs for Studio Design System live at https://studio.patreon.com

Getting Started

Installation

npm i -P @patreon/studio

How to use

View available Studio components and how to use them in the docs.

As an example, here’s how you’d import the Text component:

import { Text } from '@patreon/studio'

Docs

How to run the docs locally

Run npm run docs:server and open localhost:3003 in your browser.

Tests

How to run tests

Run npm run test or npm run test:watch

How to use Happo locally

Happo is our tool for visual regression testing. It's integrated as part of our CircleCI tests, but can also be run locally, with a little bit of setup:

  1. Open up 1Password and search for a secure note titled: "Happo .env Variables - Studio"
  2. Create a .env file in the studio directory (it will be ignored by git)
  3. Add the .env variables from the 1Password document to the new file.
  4. If you haven’t already, run npm install to make sure dependencies are installed (dotenv in particular).
  5. Run npm run happo dev, which will watch files for changes and with the --only flag can be limited to specific components. See the docs for more info.
  6. Happo will run tests, then provide a url where you can see the report.

Developing in PRF

  1. Make sure studio is a sibling to patreon_react_features in a devx synced folder
  2. In patreon_react_features exec npm run link:studio
  3. In studio exec npm run build:module:watch
  4. Restart react: devx service react restart
  5. HMR + file watching works!

Keywords

FAQs

Package last updated on 18 Jan 2019

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