@mathstack/app-kit 1.1.0
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/LICENSE +21 -0
- package/README.md +32 -0
- package/baseline-styles/_css-reset.scss +118 -0
- package/baseline-styles/_grid.scss +4 -0
- package/baseline-styles/_index.scss +6 -0
- package/baseline-styles/_sass-utils.scss +23 -0
- package/baseline-styles/_themes.scss +19 -0
- package/baseline-styles/_typography.scss +232 -0
- package/baseline-styles/_webkit-scrollbar.scss +22 -0
- package/baseline-styles/theming/_colors.scss +46 -0
- package/baseline-styles/theming/_index.scss +2 -0
- package/baseline-styles/theming/_typography.scss +32 -0
- package/fesm2022/mathstack-app-kit.mjs +846 -0
- package/fesm2022/mathstack-app-kit.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/assets/assets-resource.d.ts +11 -0
- package/lib/assets/assets-service.d.ts +35 -0
- package/lib/assets/index.d.ts +1 -0
- package/lib/content-parsing/index.d.ts +2 -0
- package/lib/content-parsing/markdown-parser.d.ts +54 -0
- package/lib/content-parsing/shiki-highlighter.d.ts +77 -0
- package/lib/core/utilities/deep-merge.d.ts +1 -0
- package/lib/core/utilities/index.d.ts +2 -0
- package/lib/core/utilities/safe-assign.d.ts +18 -0
- package/lib/documentation-display/active-heading-tracker.d.ts +14 -0
- package/lib/documentation-display/document-index/document-index.component.d.ts +17 -0
- package/lib/documentation-display/documentation-config-parser.d.ts +41 -0
- package/lib/documentation-display/documentation-content-service.d.ts +50 -0
- package/lib/documentation-display/documentation-display.component.d.ts +39 -0
- package/lib/documentation-display/index.d.ts +6 -0
- package/lib/documentation-display/navigation-siblings/navigation-siblings.component.d.ts +18 -0
- package/lib/ng-utilities/index.d.ts +2 -0
- package/lib/ng-utilities/ng-on-changes.d.ts +22 -0
- package/lib/ng-utilities/run-ng-change-detection-then.d.ts +22 -0
- package/package.json +41 -0
- package/public-api.d.ts +6 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mathematica
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# AppDevKit
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version
|
|
4
|
+
18.2.0.
|
|
5
|
+
|
|
6
|
+
## Code scaffolding
|
|
7
|
+
|
|
8
|
+
Run `ng generate component component-name --project app-dev-kit` to generate a new component. You
|
|
9
|
+
can also use
|
|
10
|
+
`ng generate directive|pipe|service|class|guard|interface|enum|module --project app-dev-kit`.
|
|
11
|
+
|
|
12
|
+
> Note: Don't forget to add `--project app-dev-kit` or else it will be added to the default project
|
|
13
|
+
> in your `angular.json` file.
|
|
14
|
+
|
|
15
|
+
## Build
|
|
16
|
+
|
|
17
|
+
Run `ng build app-dev-kit` to build the project. The build artifacts will be stored in the `dist`
|
|
18
|
+
directory.
|
|
19
|
+
|
|
20
|
+
## Publishing
|
|
21
|
+
|
|
22
|
+
After building your library with `ng build app-dev-kit`, go to the dist folder `cd dist/app-dev-kit`
|
|
23
|
+
and run `npm publish`.
|
|
24
|
+
|
|
25
|
+
## Running unit tests
|
|
26
|
+
|
|
27
|
+
Run `ng test app-dev-kit` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
28
|
+
|
|
29
|
+
## Further help
|
|
30
|
+
|
|
31
|
+
To get more help on the Angular CLI use `ng help` or go check out the
|
|
32
|
+
[Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
@mixin css-reset($default-font: var(--hsi-adk-font-sans), $color-text: #000) {
|
|
2
|
+
$system-font-family:
|
|
3
|
+
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica,
|
|
4
|
+
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
5
|
+
|
|
6
|
+
*,
|
|
7
|
+
*::before,
|
|
8
|
+
*::after {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body {
|
|
13
|
+
min-height: 100vh;
|
|
14
|
+
width: 100vw;
|
|
15
|
+
overflow-x: hidden;
|
|
16
|
+
background: white;
|
|
17
|
+
font-family: $default-font, $system-font-family;
|
|
18
|
+
color: $color-text;
|
|
19
|
+
font-size: 1rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
body,
|
|
23
|
+
h1,
|
|
24
|
+
h2,
|
|
25
|
+
h3,
|
|
26
|
+
h4,
|
|
27
|
+
p,
|
|
28
|
+
figure,
|
|
29
|
+
blockquote,
|
|
30
|
+
dl,
|
|
31
|
+
dd {
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
p {
|
|
36
|
+
line-height: 1.5;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
button,
|
|
40
|
+
a {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
color: $color-text;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
button {
|
|
46
|
+
border: none;
|
|
47
|
+
background: none;
|
|
48
|
+
padding: 0;
|
|
49
|
+
padding-block: 0;
|
|
50
|
+
padding-inline: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
a {
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
ul[role='list'],
|
|
58
|
+
ol[role='list'] {
|
|
59
|
+
list-style: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
html:focus-within {
|
|
63
|
+
scroll-behavior: smooth;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
a:not([class]) {
|
|
67
|
+
text-decoration-skip-ink: auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
img,
|
|
71
|
+
picture {
|
|
72
|
+
max-width: 100%;
|
|
73
|
+
display: block;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
input,
|
|
77
|
+
button,
|
|
78
|
+
textarea,
|
|
79
|
+
select {
|
|
80
|
+
font: inherit;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
fieldset {
|
|
84
|
+
border: none;
|
|
85
|
+
padding: 0;
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding-inline-start: 0;
|
|
88
|
+
padding-inline-end: 0;
|
|
89
|
+
margin-inline-start: 0;
|
|
90
|
+
margin-inline-end: 0;
|
|
91
|
+
padding-block-start: 0;
|
|
92
|
+
padding-block-end: 0;
|
|
93
|
+
min-inline-size: 0px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
legend {
|
|
97
|
+
padding: 0;
|
|
98
|
+
margin: 0;
|
|
99
|
+
padding-inline-start: 0;
|
|
100
|
+
padding-inline-end: 0;
|
|
101
|
+
border: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media (prefers-reduced-motion: reduce) {
|
|
105
|
+
html:focus-within {
|
|
106
|
+
scroll-behavior: auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
*,
|
|
110
|
+
*::before,
|
|
111
|
+
*::after {
|
|
112
|
+
animation-duration: 0.01ms !important;
|
|
113
|
+
animation-iteration-count: 1 !important;
|
|
114
|
+
transition-duration: 0.01ms !important;
|
|
115
|
+
scroll-behavior: auto !important;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
// create mixin
|
|
3
|
+
@mixin map-scss-vars-into-css-vars($map, $prefix: '', $key: '') {
|
|
4
|
+
@each $name, $value in $map {
|
|
5
|
+
// copy the map key
|
|
6
|
+
$key-copy: $key;
|
|
7
|
+
// create name for CSS custom property that contains:
|
|
8
|
+
// current key + child key from nested map
|
|
9
|
+
@if $name != 'rest' {
|
|
10
|
+
$key: #{$key}-#{$name};
|
|
11
|
+
}
|
|
12
|
+
@if meta.type-of($value) == 'map' {
|
|
13
|
+
// if value is a map, invoke it once more
|
|
14
|
+
@include map-scss-vars-into-css-vars($value, $prefix, $key);
|
|
15
|
+
} @else if $prefix == '' {
|
|
16
|
+
-#{$key}: #{$value};
|
|
17
|
+
} @else {
|
|
18
|
+
--#{$prefix}#{$key}: #{$value};
|
|
19
|
+
}
|
|
20
|
+
// next iteration of loop should go with unchanged key
|
|
21
|
+
$key: $key-copy;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use './sass-utils';
|
|
2
|
+
@use './theming';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Create CSS color and typography variables for theming.
|
|
6
|
+
*
|
|
7
|
+
* Intended to be used globally (at html-level) in a consuming application, which will allow for easy overriding at a lower level.
|
|
8
|
+
*/
|
|
9
|
+
@mixin create-theme() {
|
|
10
|
+
@include sass-utils.map-scss-vars-into-css-vars(
|
|
11
|
+
theming.$colors,
|
|
12
|
+
'hsi-adk-color'
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
@include sass-utils.map-scss-vars-into-css-vars(
|
|
16
|
+
theming.$font,
|
|
17
|
+
'hsi-adk-font'
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
@mixin display-large {
|
|
2
|
+
font-family: var(--hsi-adk-font-sans);
|
|
3
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
4
|
+
font-size: 57pt;
|
|
5
|
+
letter-spacing: -0.25pt;
|
|
6
|
+
line-height: 64pt;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin display-medium {
|
|
10
|
+
font-family: var(--hsi-adk-font-sans);
|
|
11
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
12
|
+
font-size: 45pt;
|
|
13
|
+
letter-spacing: 0;
|
|
14
|
+
line-height: 52pt;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin display-small {
|
|
18
|
+
font-family: var(--hsi-adk-font-sans);
|
|
19
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
20
|
+
font-size: 36pt;
|
|
21
|
+
letter-spacing: 0;
|
|
22
|
+
line-height: 44pt;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin headline-large {
|
|
26
|
+
font-family: var(--hsi-adk-font-sans);
|
|
27
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
28
|
+
font-size: 32pt;
|
|
29
|
+
letter-spacing: 0;
|
|
30
|
+
line-height: 40pt;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin headline-medium {
|
|
34
|
+
font-family: var(--hsi-adk-font-sans);
|
|
35
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
36
|
+
font-size: 28pt;
|
|
37
|
+
letter-spacing: 0;
|
|
38
|
+
line-height: 36pt;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin headline-small {
|
|
42
|
+
font-family: var(--hsi-adk-font-sans);
|
|
43
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
44
|
+
font-size: 24pt;
|
|
45
|
+
letter-spacing: 0;
|
|
46
|
+
line-height: 32pt;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin title-large {
|
|
50
|
+
font-family: var(--hsi-adk-font-sans);
|
|
51
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
52
|
+
font-size: 22pt;
|
|
53
|
+
letter-spacing: 0;
|
|
54
|
+
line-height: 28pt;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin title-medium {
|
|
58
|
+
font-family: var(--hsi-adk-font-sans);
|
|
59
|
+
font-weight: var(--hsi-adk-font-weight-medium);
|
|
60
|
+
font-size: 16pt;
|
|
61
|
+
letter-spacing: 0.15pt;
|
|
62
|
+
line-height: 24pt;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@mixin title-small {
|
|
66
|
+
font-family: var(--hsi-adk-font-sans);
|
|
67
|
+
font-weight: var(--hsi-adk-font-weight-medium);
|
|
68
|
+
font-size: 14pt;
|
|
69
|
+
letter-spacing: 0.1pt;
|
|
70
|
+
line-height: 20pt;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin body-large {
|
|
74
|
+
font-family: var(--hsi-adk-font-sans);
|
|
75
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
76
|
+
font-size: 16pt;
|
|
77
|
+
letter-spacing: 0.5pt;
|
|
78
|
+
line-height: 24pt;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@mixin body-medium {
|
|
82
|
+
font-family: var(--hsi-adk-font-sans);
|
|
83
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
84
|
+
font-size: 14pt;
|
|
85
|
+
letter-spacing: 0.25pt;
|
|
86
|
+
line-height: 20pt;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin body-small {
|
|
90
|
+
font-family: var(--hsi-adk-font-sans);
|
|
91
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
92
|
+
font-size: 12pt;
|
|
93
|
+
letter-spacing: 0.4pt;
|
|
94
|
+
line-height: 16pt;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Not from Material 3 - serve HSI need to communication higher density of information
|
|
98
|
+
@mixin body-xs {
|
|
99
|
+
font-family: var(--hsi-adk-font-sans);
|
|
100
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
101
|
+
font-size: 11pt;
|
|
102
|
+
letter-spacing: 0;
|
|
103
|
+
line-height: 16pt;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Not from Material 3 - serve HSI need to communication higher density of information
|
|
107
|
+
@mixin body-2xs {
|
|
108
|
+
font-family: var(--hsi-adk-font-sans);
|
|
109
|
+
font-weight: var(--hsi-adk-font-weight-regular);
|
|
110
|
+
font-size: 10pt;
|
|
111
|
+
letter-spacing: 0;
|
|
112
|
+
line-height: 16pt;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@mixin label-large {
|
|
116
|
+
font-family: var(--hsi-adk-font-sans);
|
|
117
|
+
font-weight: var(--hsi-adk-font-weight-medium);
|
|
118
|
+
font-size: 14pt;
|
|
119
|
+
letter-spacing: 0.25pt;
|
|
120
|
+
line-height: 20pt;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@mixin label-large-prominent {
|
|
124
|
+
@include label-large;
|
|
125
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@mixin label-large-caps {
|
|
129
|
+
@include label-large;
|
|
130
|
+
text-transform: uppercase;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@mixin label-large-caps-prominent {
|
|
134
|
+
@include label-large-caps;
|
|
135
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@mixin label-medium {
|
|
139
|
+
font-family: var(--hsi-adk-font-sans);
|
|
140
|
+
font-weight: var(--hsi-adk-font-weight-medium);
|
|
141
|
+
font-size: 12pt;
|
|
142
|
+
letter-spacing: 0.5pt;
|
|
143
|
+
line-height: 16pt;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@mixin label-medium-prominent {
|
|
147
|
+
@include label-medium;
|
|
148
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@mixin label-medium-caps {
|
|
152
|
+
@include label-medium;
|
|
153
|
+
text-transform: uppercase;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@mixin label-medium-caps-prominent {
|
|
157
|
+
@include label-medium-caps;
|
|
158
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@mixin label-small {
|
|
162
|
+
font-family: var(--hsi-adk-font-sans);
|
|
163
|
+
font-weight: var(--hsi-adk-font-weight-medium);
|
|
164
|
+
font-size: 11pt;
|
|
165
|
+
letter-spacing: 0.5pt;
|
|
166
|
+
line-height: 16pt;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@mixin label-small-prominent {
|
|
170
|
+
@include label-small;
|
|
171
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@mixin label-small-caps {
|
|
175
|
+
@include label-small;
|
|
176
|
+
text-transform: uppercase;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@mixin label-small-caps-prominent {
|
|
180
|
+
@include label-small-caps;
|
|
181
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// Not from Material 3 - serves HSI need to communication higher density of information
|
|
185
|
+
@mixin label-xs {
|
|
186
|
+
font-family: var(--hsi-adk-font-sans);
|
|
187
|
+
font-weight: var(--hsi-adk-font-weight-medium);
|
|
188
|
+
font-size: 10pt;
|
|
189
|
+
letter-spacing: 0.25pt;
|
|
190
|
+
line-height: 14pt;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@mixin label-xs-prominent {
|
|
194
|
+
@include label-xs;
|
|
195
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@mixin label-xs-caps {
|
|
199
|
+
@include label-xs;
|
|
200
|
+
letter-spacing: 0.8pt;
|
|
201
|
+
text-transform: uppercase;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@mixin label-xs-caps-prominent {
|
|
205
|
+
@include label-xs-caps;
|
|
206
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Not from Material 3 - serves HSI need to communication higher density of information
|
|
210
|
+
@mixin label-2xs {
|
|
211
|
+
font-family: var(--hsi-adk-font-sans);
|
|
212
|
+
font-weight: var(--hsi-adk-font-weight-medium);
|
|
213
|
+
font-size: 9pt;
|
|
214
|
+
letter-spacing: 0.25pt;
|
|
215
|
+
line-height: 12pt;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@mixin label-2xs-prominent {
|
|
219
|
+
@include label-2xs;
|
|
220
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@mixin label-2xs-caps {
|
|
224
|
+
@include label-2xs;
|
|
225
|
+
letter-spacing: 0.8pt;
|
|
226
|
+
text-transform: uppercase;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@mixin label-2xs-caps-prominent {
|
|
230
|
+
@include label-2xs-caps;
|
|
231
|
+
font-weight: var(--hsi-adk-font-weight-bold);
|
|
232
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@mixin custom-webkit-scrollbar(
|
|
2
|
+
$vertical-scrollbar-thickness: 8px,
|
|
3
|
+
$horizontal-scrollbar-thickness: 12px,
|
|
4
|
+
$color: lightgray,
|
|
5
|
+
$background: white,
|
|
6
|
+
$border-radius: 50%
|
|
7
|
+
) {
|
|
8
|
+
::-webkit-scrollbar {
|
|
9
|
+
width: $vertical-scrollbar-thickness;
|
|
10
|
+
height: $horizontal-scrollbar-thickness;
|
|
11
|
+
border-radius: $border-radius;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
::-webkit-scrollbar-track {
|
|
15
|
+
background: $background;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
::-webkit-scrollbar-thumb {
|
|
19
|
+
background: $color;
|
|
20
|
+
border-radius: $vertical-scrollbar-thickness;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
$primary: (
|
|
2
|
+
0: #000000,
|
|
3
|
+
5: #000c38,
|
|
4
|
+
10: #001550,
|
|
5
|
+
15: #001e68,
|
|
6
|
+
20: #002780,
|
|
7
|
+
25: #003099,
|
|
8
|
+
30: #003ab3,
|
|
9
|
+
35: #0043ce,
|
|
10
|
+
40: #1550e1,
|
|
11
|
+
50: #3d6bfb,
|
|
12
|
+
60: #6889ff,
|
|
13
|
+
70: #90a7ff,
|
|
14
|
+
80: #b6c4ff,
|
|
15
|
+
90: #dce1ff,
|
|
16
|
+
95: #eff0ff,
|
|
17
|
+
98: #faf8ff,
|
|
18
|
+
99: #fefbff,
|
|
19
|
+
100: #ffffff,
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
$muted-primary: (
|
|
23
|
+
0: #000000,
|
|
24
|
+
5: #141821,
|
|
25
|
+
10: #20283c,
|
|
26
|
+
15: #2b3246,
|
|
27
|
+
20: #353c4f,
|
|
28
|
+
25: #404759,
|
|
29
|
+
30: #4c5263,
|
|
30
|
+
35: #575d6e,
|
|
31
|
+
40: #636878,
|
|
32
|
+
50: #7b7f8e,
|
|
33
|
+
60: #9397a4,
|
|
34
|
+
70: #adb0ba,
|
|
35
|
+
80: #c7cad1,
|
|
36
|
+
90: #e1e4e9,
|
|
37
|
+
95: #eff1f5,
|
|
38
|
+
98: #f9f9fb,
|
|
39
|
+
99: #fcfcfd,
|
|
40
|
+
100: #ffffff,
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
$colors: (
|
|
44
|
+
'primary': $primary,
|
|
45
|
+
'muted-primary': $muted-primary,
|
|
46
|
+
);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
|
|
2
|
+
|
|
3
|
+
// Fonts
|
|
4
|
+
$font: (
|
|
5
|
+
'sans': (
|
|
6
|
+
'Noto Sans',
|
|
7
|
+
sans-serif,
|
|
8
|
+
),
|
|
9
|
+
'serif': (
|
|
10
|
+
'Noto Serif',
|
|
11
|
+
serif,
|
|
12
|
+
),
|
|
13
|
+
'mono': (
|
|
14
|
+
'Noto Sans Mono',
|
|
15
|
+
monospace,
|
|
16
|
+
),
|
|
17
|
+
'weight': (
|
|
18
|
+
'light': 100,
|
|
19
|
+
'regular': 400,
|
|
20
|
+
'medium': 500,
|
|
21
|
+
'semibold': 600,
|
|
22
|
+
'bold': 700,
|
|
23
|
+
),
|
|
24
|
+
'line-height': (
|
|
25
|
+
0: 1,
|
|
26
|
+
1: 1.125,
|
|
27
|
+
2: 1.25,
|
|
28
|
+
3: 1.5,
|
|
29
|
+
4: 1.75,
|
|
30
|
+
5: 2,
|
|
31
|
+
),
|
|
32
|
+
);
|