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

cra-template-slds

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cra-template-slds

The SLDS template for Create React App.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cra-template-slds

This is a Create React App template with the Salesforce Lightning Design System (SLDS)

Features

  • Cleaner imports by using absolute imports (doc)

Requirements

  • Node version >= 16

Usage

To use this template, follow the steps below:

  1. Create and initialize the app my-app:

    nvm use v16
    yarn create react-app my-app --template=slds
    

    or

    npx create-react-app my-app --template=slds
    
  2. Setup SLDS:

    cd my-app
    yarn setup-slds
    
  3. Run the app by running yarn start. It should open the browser on localhost:3000 that looks like this:

    Browser Screenshot

Development

To test your CRA template locally, run this command:

yarn create react-app my-app --template=slds --template file:<filepath to this repo>

where filepath to this repo is the file path to this template repo.

For instance,

yarn create react-app my-app --template=slds --template file:./cra-template-slds/

This will create a folder called my-app containing the React app with SLDS

Keywords

FAQs

Package last updated on 27 Jun 2022

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