1.2.0 • Published 8 months ago

@bcgov-nr/nr-fsa-theme v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Issues Pull Requests MIT License Lifecycle

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
  • Yarn
    • use yarn add @bcgov-nr/nr-fsa-theme

Usage (React)

  • Create a custom.scss file in ./src
  • Add import './custom.scss'; to your App.tsx file
  • Configure your custom.scss file to your taste with this example
  • Add a global css prefix bx to your project
    • in ./src/index.tsx:
      • import { ClassPrefix } from '@carbon/react';
    • wrap your <App /> with ClassPrefix:
      • <ClassPrefix prefix="bx">
          <App />
        </ClassPrefix>
1.2.0

8 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.7

12 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

0.0.1

1 year ago