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