1.2.0 • Published 3 years ago
@bcgov-nr/nr-fsa-theme v1.2.0
NR-FSA-Theme
Description
This is a common repo for maintaining the FSA design system code. The design system is built on top of the Carbon Design System. Link to Figma FSA Design System
Landing page styling can be found in Landing Page
Installation and Usage
Prerequisite
Your project need to have Sass configured to load .scss files
Installation
- NPM
- use
npm i @bcgov-nr/nr-fsa-theme
- use
- Yarn
- use
yarn add @bcgov-nr/nr-fsa-theme
- use
Usage (React)
- Create a
custom.scssfile in./src - Add
import './custom.scss';to yourApp.tsxfile - Configure your
custom.scssfile to your taste with this example - Add a global css prefix
bxto your project- in
./src/index.tsx:import { ClassPrefix } from '@carbon/react';
- wrap your
<App />withClassPrefix:<ClassPrefix prefix="bx"> <App /> </ClassPrefix>
- in