@smitag/angular-shared-ui 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # shared/ui
2
2
 
3
- Anbindung: @use '@smitag/angular-shared-ui/dist/shared-ui/src/lib/styles/style.scss';
3
+ Anbindung: @use '@smitag/angular-shared-ui/src/lib/styles/styles.scss';
4
4
 
5
5
  #### styles
6
6
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@smitag/angular-shared-ui",
3
3
  "email": "benjamin.speidel@smartinsurtech.de",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "license": "MIT",
6
6
  "description": "Styling elements and methods shared by all frontends",
7
7
  "man": "README.md",
@@ -11,5 +11,8 @@
11
11
  "author": {
12
12
  "name": "Benjamin Speidel"
13
13
  },
14
+ "dependencies": {
15
+ "@angular/material": "^17.1.1"
16
+ },
14
17
  "sideEffects": false
15
18
  }
@@ -0,0 +1,161 @@
1
+ @use 'sass:map';
2
+ @use 'node_modules/@angular/material' as mat;
3
+ @use '../components/base';
4
+ @use '../components/helper';
5
+
6
+ $theme-colors: (
7
+ color-primary: (
8
+ 50: #e1e2ed,
9
+ 100: #b5b6d3,
10
+ 200: #8485b6,
11
+ 300: #525499,
12
+ 400: #2d2f83,
13
+ 500: #080a6d,
14
+ 600: #070965,
15
+ 700: #06075a,
16
+ 800: #040550,
17
+ 900: #02033e,
18
+ A100: #7474ff,
19
+ A200: #4141ff,
20
+ A400: #0e0eff,
21
+ A700: #0000f3,
22
+ contrast: (
23
+ 50: #000000,
24
+ 100: #000000,
25
+ 200: #000000,
26
+ 300: #000000,
27
+ 400: #ffffff,
28
+ 500: #ffffff,
29
+ 600: #ffffff,
30
+ 700: #ffffff,
31
+ 800: #ffffff,
32
+ 900: #ffffff,
33
+ A100: #000000,
34
+ A200: #000000,
35
+ A400: #000000,
36
+ A700: #000000,
37
+ ),
38
+ ),
39
+ color-secondary: (
40
+ 50: #e9fbff,
41
+ 100: #c8f5fe,
42
+ 200: #a3effe,
43
+ 300: #7ee8fe,
44
+ 400: #63e3fd,
45
+ 500: #47defd,
46
+ 600: #40dafd,
47
+ 700: #37d5fc,
48
+ 800: #2fd1fc,
49
+ 900: #20c8fc,
50
+ A100: #ffffff,
51
+ A200: #ffffff,
52
+ A400: #ccf2ff,
53
+ A700: #b3ecff,
54
+ contrast: (
55
+ 50: #000000,
56
+ 100: #000000,
57
+ 200: #000000,
58
+ 300: #000000,
59
+ 400: #ffffff,
60
+ 500: #ffffff,
61
+ 600: #ffffff,
62
+ 700: #ffffff,
63
+ 800: #ffffff,
64
+ 900: #ffffff,
65
+ A100: #000000,
66
+ A200: #000000,
67
+ A400: #000000,
68
+ A700: #000000,
69
+ ),
70
+ ),
71
+ color-tertiary: (
72
+ 50: #fffce3,
73
+ 100: #fff8b9,
74
+ 200: #fff38a,
75
+ 300: #ffee5b,
76
+ 400: #ffea37,
77
+ 500: #ffe614,
78
+ 600: #ffe312,
79
+ 700: #ffdf0e,
80
+ 800: #ffdb0b,
81
+ 900: #ffd506,
82
+ A100: #ffffff,
83
+ A200: #fffdf3,
84
+ A400: #fff3c0,
85
+ A700: #ffeea7,
86
+ contrast: (
87
+ 50: #000000,
88
+ 100: #000000,
89
+ 200: #000000,
90
+ 300: #000000,
91
+ 400: #ffffff,
92
+ 500: #ffffff,
93
+ 600: #ffffff,
94
+ 700: #ffffff,
95
+ 800: #ffffff,
96
+ 900: #ffffff,
97
+ A100: #000000,
98
+ A200: #000000,
99
+ A400: #000000,
100
+ A700: #000000,
101
+ ),
102
+ ),
103
+ );
104
+
105
+ @include helper.generateCssVariables($theme-colors);
106
+
107
+ @include helper.generateClasses($theme-colors);
108
+
109
+ $app-primary: mat.define-palette(map.get($theme-colors, 'color-primary'));
110
+ $app-secondary: mat.define-palette(map.get($theme-colors, 'color-secondary'));
111
+ $app-tertiary: mat.define-palette(map.get($theme-colors, 'color-tertiary'));
112
+ $app-warn: mat.define-palette(map.get(base.$base-colors, 'color-warn'));
113
+
114
+ $typography: mat.define-typography-config(
115
+ $font-family: 'Poppins, sans-serif',
116
+ $headline-6:
117
+ mat.define-typography-level(
118
+ $font-size: 20px,
119
+ $line-height: 32px,
120
+ $font-weight: 500,
121
+ $letter-spacing: normal,
122
+ ),
123
+ $body-1:
124
+ mat.define-typography-level(
125
+ $font-size: 16px,
126
+ $line-height: normal,
127
+ $font-weight: 400,
128
+ $letter-spacing: normal,
129
+ ),
130
+ $button:
131
+ mat.define-typography-level(
132
+ $font-size: 14px,
133
+ $line-height: 14px,
134
+ $font-weight: 600,
135
+ $letter-spacing: 0.5px,
136
+ ),
137
+ );
138
+
139
+ $theme: mat.define-light-theme(
140
+ (
141
+ color: (
142
+ primary: $app-primary,
143
+ accent: $app-secondary,
144
+ warn: $app-warn,
145
+ ),
146
+ typography: $typography,
147
+ )
148
+ );
149
+
150
+ @include helper.customComponents(
151
+ mat.get-color-from-palette($app-primary, 500),
152
+ mat.get-color-from-palette($app-secondary, 500),
153
+ mat.get-color-from-palette($app-tertiary, 500)
154
+ );
155
+
156
+ @include helper.whiteToolbar(
157
+ mat.get-color-from-palette($app-primary, 500),
158
+ mat.get-color-from-palette($app-primary, 500)
159
+ );
160
+
161
+ @include mat.all-component-themes($theme);