2.1.29 • Published 5 months ago

@rbc-dsse/framework-library-css v2.1.29

Weekly downloads
159
License
ISC
Repository
-
Last release
5 months ago

RBC Wealth Management UI Library SCSS/CSS base code

Project setup

The CSS library is the main style base on which everything relies on. The Angular (framework-library-angular), React (framework-library-react) and Vuejs (framework-library(-vue)) libraries are all consuming these styles. Combined with the testing repository for Cypress (framework-library-specs), this creates the full ecosystem for the UI library of components for the Design System of RBC Wealth Management.

Architecture

v2/
	- framework-library-specs
	- framework-library-css
	- framework-library(-vue)
	- framework-library-angular
	- framework-library-react

Folder structure

  • /src/ contains the styles for the base and components.
  • /src/components/ contains the stylesheets for the components and modules. Each folder follows a naming convention: NameOfComponent.scss for the main styles of the component and NameOfComponent.dependencies.scss for importing the styles of base components when compiling the single component CSS.
  • /src/Core/ contains all of the base styles for typography, layout, utilities etc.
  • /src/variables/ contains all of the Sass variables to be consumed by base styles and components.
  • /src/_universal.scss contains Sass variables for the RBC brand colours and fonts.
  • /src/_variables.scss contains imports of the necessary Sass variable files.
  • /src/library.scss contains imports of the necessary variables and partial files to be compiled into the main CSS.

Install dependencies

To work on this project, you are going to need sass to build the SCSS into CSS. You can find instructions to install sass: https://sass-lang.com/install

After sass is properly installed, you can run:

npm install

Contribution

Branching model

We are using a standard approach for our branching model. The production code is held in the master branch. The development code is held in the dev branch. All the development work should be made on the dev branch making sure you pull the latest code before contributing back.

  • master : production branch
  • dev : development branch
  • feature/{name of feature} : to branch out and create a feature branch.
  • fix/{name of fix} : to branch out and create a fix branch.
  • v1 : this branch holds the CSS code of the v1 of the library. (Used in Angular v1)

How to work with us

You can create a Pull Request out of dev back to dev. If it is an approved feature or fix, a reviewer will approve the changes and merge it into dev.

Working

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Compiles and minifies full library only for production

npm run build:full

Compiles and minifies individual components only for production

npm run build:individual
2.1.29

5 months ago

2.1.28

11 months ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.24

2 years ago

2.1.23

3 years ago

2.1.22

3 years ago

2.1.20

3 years ago

2.1.19

3 years ago

2.1.18

3 years ago

2.1.17

3 years ago

2.1.16

3 years ago

2.1.14

3 years ago

2.1.15

3 years ago

2.1.13

3 years ago

2.1.12

3 years ago

2.1.10

3 years ago

2.1.11

3 years ago

2.1.9

3 years ago

2.1.8

3 years ago

2.1.7

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.10

3 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

5 years ago