1.0.90 • Published 4 years ago

design-system-v1 v1.0.90

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Design System

Overview

This project contains re-usable React components that can be integrated into a web-app provided it supports React.

Components

This project provides the following re-usable components:

NamePurposeExample
ContainerA simple container, which acts like Bootstraps .container
HomePage1A template for a standard homepageexample
HomePage2A template for a standard homepageexample
HomePage3A template for a standard homepageexample
HomePage4A template for a standard homepageexample
NavigationA template for a standard fixed-top navigationexample

Styling

The SCSS files are stored in a 7-1 pattern (7 sub folders and 1 main SCSS file).

The SCSS files are compiled using node-sass.

Adding New Content

Adding a new component

To add a new React component:

  1. Add the component to the 'src/components' folder.
  2. Import and export your new component inside the index file ('src/components/index.js').
  3. Finally run the publish process mentioned below.

To add a new SCSS file:

  1. Add your new SCSS file to the 'src/scss' folder.
  2. Include your new SCSS file into the 'src/scss/main/scss' file at the end of the previously imported files^^.

^^ Order of your SCSS file matters as it will be compiled into a CSS file which may override your new CSS if not placed towards the end.

Build Process

The components in this project are built using Babel.

All generated artifacts are placed in a dist folder. The dist folder contains:

  • components - All transpiled React components that can be re-used.
  • scss - Re-usuable common SCSS files that can integrated into a webapp. By default all main pages (such as homepages, contact us, standard layout use pre-defined styles from the generated main.scss).

To publish components and SCSS (assuming you have bumped the version inside package.json):

$ npm publish

Useful Links

https://itnext.io/how-to-package-your-react-component-for-distribution-via-npm-d32d4bf71b4f

https://jasonwatmore.com/post/2018/04/14/react-npm-how-to-publish-a-react-component-to-npm

https://www.pluralsight.com/guides/publish-es6-react-modules-to-npm

1.0.90

4 years ago

1.0.88

4 years ago

1.0.85

5 years ago

1.0.84

5 years ago

1.0.83

5 years ago

1.0.82

5 years ago

1.0.81

5 years ago

1.0.80

5 years ago

1.0.79

5 years ago

1.0.78

5 years ago

1.0.77

5 years ago

1.0.76

5 years ago

1.0.75

5 years ago

1.0.74

5 years ago

1.0.73

5 years ago

1.0.72

5 years ago

1.0.71

5 years ago

1.0.70

5 years ago

1.0.69

5 years ago

1.0.68

5 years ago

1.0.67

5 years ago

1.0.66

5 years ago

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.60

5 years ago

1.0.58

5 years ago

1.0.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.14

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago