15.0.0 • Published 9 months ago

@fagforbundet/ngx-components v15.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@fagforbundet/ngx-components

This package makes available the components and global styles needed for most of Fagforbundet's projects.

Styles

Global styles should be made available with classes where feasible (i.e. .ff-checkbox, .ff-button, .ff-dropdown, etc.). The class name combined with the ff- prefix ensures the availability of styles, while also ensuring low probability of hijacking any elements or other styles.

The styles folder contains these folders:

  • abstracts -> Contains styles and variables for design tokens and other things that normally won't affect anything directly
  • base -> Contains a file containing style references for everything one might need when adding the library to a project. Next to this file one can also find some barrel import files for cleanliness
  • components -> Contains styles for design components (i.e. checkbox, button, dropdown, etc.)
  • layouts -> Contains styles for layouts. These are often containers for different scenarios (i.e. page layouts, grids, misc. containers, etc. (not component specific layouts (i.e. menu-boxes)))
  • utilities -> Contains utility styles (i.e. no-scroll, outlines, skeletons, etc.)
  • vendor -> Contains references / imports of styles from vendors that the package depends on

The _index.scss file imports and forwards all relevant styles for use in other projects. To make the variables and mixins available in your application, @use the package:

@use '@fagforbundet/ngx-components' as ff;

To make the global styles (classes) available in your application @include the base mixin:

@use '@fagforbundet/ngx-components' as ff;

@include ff.base();

Variables

This package makes available variables for common design tokens. All variables are prefixed with ff-, and semantic variables are also prefixed with something that denotes the context (i.e. border-clr- or btn-clr-);

Component styles

Component specific styles should "live" in the component's own stylesheet, so that the component becomes self-contained. If the component requires the styles of any external package, these styles should be added to the _vendor.scss file to avoid including the same styles more than once. Two or more components should never require different versions of the same external package.

Fonts

Font files are present in this project for anyone who might need them, but Google Fonts serve them as well.

HTML

<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">

CSS

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

Components

This package also includes all the common components needed to make any interface that Fagforbundet might need. In addition, there are a couple of so-called "bundles", used for common tasks. The bundles are:

  • Auth Bundle -> used for everything related to authenticating with the frontend
  • Helpers Bundle -> contains helpers for miscellaneous
  • Request Bundle -> consolidates the way requests are defined and used
  • Storage Bundle -> consolidates data storage in the browser and in memory
15.0.0-rc.12

9 months ago

15.0.0-rc.11

9 months ago

15.0.0-rc.10

9 months ago

15.0.0-rc.2

9 months ago

15.0.0-rc.3

9 months ago

15.0.0-rc.1

9 months ago

15.0.0-rc.6

9 months ago

15.0.0-rc.7

9 months ago

15.0.0-rc.4

9 months ago

15.0.0-rc.5

9 months ago

14.2.0-rc.1

9 months ago

15.0.0

9 months ago

15.0.0-rc.8

9 months ago

15.0.0-rc.9

9 months ago

11.0.0-rc.1

9 months ago

14.1.0

9 months ago

14.0.1-rc.1

9 months ago

11.0.1-rc.1

9 months ago

12.0.0-rc.1

9 months ago

14.0.0-rc.1

9 months ago

12.0.1-rc.1

9 months ago

14.0.1

9 months ago

14.0.2

9 months ago

13.0.0-rc.1

9 months ago

10.0.0-rc.1

9 months ago

9.0.0

9 months ago

8.0.0

9 months ago

7.0.0

9 months ago

6.0.0

9 months ago

6.0.0-rc.1

9 months ago

5.1.2

11 months ago

5.2.0

11 months ago

5.1.1

11 months ago

5.1.0

11 months ago

5.0.0

11 months ago

5.0.0-rc.1

11 months ago

4.1.0

11 months ago

4.0.0

11 months ago

3.2.1

11 months ago

3.2.0

11 months ago

3.1.0

11 months ago

3.0.1

11 months ago

3.0.0

11 months ago

2.0.0

11 months ago

1.0.0

11 months ago

0.0.2-rc.23

11 months ago

0.0.2-rc.22

11 months ago

0.0.2-rc.21

11 months ago

0.0.2-rc.20

12 months ago

0.0.2-rc.19

12 months ago

0.0.2-rc.18

12 months ago

0.0.2-rc.17

12 months ago

0.0.2-rc.16

12 months ago

0.0.2-rc.15

12 months ago

0.0.2-rc.14

12 months ago

0.0.2-rc.13

12 months ago

0.0.2-rc.12

12 months ago

0.0.2-rc.11

12 months ago

0.0.2-rc.10

12 months ago

0.0.2-rc.9

12 months ago

0.0.2-rc.8

1 year ago

0.0.2-rc.7

1 year ago

0.0.2-rc.6

1 year ago

0.0.2-rc.5

1 year ago

0.0.2-rc.4

1 year ago

0.0.2-rc.3

1 year ago

0.0.2-rc.2

1 year ago

0.0.2-rc.1

1 year ago

0.0.1-rc.27

1 year ago

0.0.1-rc.26

1 year ago

0.0.1-rc.25

1 year ago

0.0.1-rc.24

1 year ago

0.0.1-rc.23

1 year ago

0.0.1-rc.22

1 year ago

0.0.1-rc.21

1 year ago

0.0.1-rc.20

1 year ago

0.0.1-rc.19

1 year ago

0.0.1-rc.18

1 year ago

0.0.1-rc.17

1 year ago

0.0.1-rc.16

1 year ago

0.0.1-rc.15

1 year ago

0.0.1-rc.14

1 year ago

0.0.1-rc.13

1 year ago

0.0.1-rc.12

1 year ago

0.0.1-rc.9

1 year ago

0.0.1-rc.8

1 year ago

0.0.1-rc.7

1 year ago

0.0.1-rc.6

1 year ago

0.0.1-rc.5

1 year ago

0.0.1-rc.4

1 year ago

0.0.1-rc.3

1 year ago

0.0.1-rc.2

1 year ago

0.0.1-rc.1

1 year ago