@moduk/frontend 0.2.1 → 0.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduk/frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "The MOD.UK Frontend contains the code you need to start building a user interface for Ministry of Defence platforms and services.",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"sass": "src/css/index.scss",
|
|
@@ -120,11 +120,11 @@
|
|
|
120
120
|
"webpack-cli": "^5.0.1"
|
|
121
121
|
},
|
|
122
122
|
"lint-staged": {
|
|
123
|
-
"*.{js,jsx,ts,tsx}": [
|
|
124
|
-
"
|
|
125
|
-
"
|
|
123
|
+
"*.{cjs,js,jsx,mjs,mts,ts,tsx}": [
|
|
124
|
+
"dprint fmt",
|
|
125
|
+
"eslint --max-warnings 0"
|
|
126
126
|
],
|
|
127
|
-
"*.{md,yaml,yml}": [
|
|
127
|
+
"*.{md,scss,yaml,yml}": [
|
|
128
128
|
"dprint fmt"
|
|
129
129
|
]
|
|
130
130
|
},
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$moduk-colours: (
|
|
2
|
+
'maroon': #532a45,
|
|
3
|
+
'dark-maroon': #4b263e,
|
|
4
|
+
'light-maroon': #643f58,
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
@function moduk-colour($colour-name) {
|
|
8
|
+
$quoted-colour-name: quote($colour-name);
|
|
9
|
+
|
|
10
|
+
@if not map-has-key($moduk-colours, $quoted-colour-name) {
|
|
11
|
+
@error "Unknown colour `#{$quoted-colour-name}`";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@return map-get($moduk-colours, $quoted-colour-name);
|
|
15
|
+
}
|
package/src/css/_variables.scss
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
@forward './colour-palette';
|
|
2
|
+
@use './colour-palette';
|
|
3
|
+
|
|
1
4
|
$moduk-assets-path: '/assets/' !default;
|
|
2
5
|
$moduk-images-path: '#{$moduk-assets-path}images/' !default;
|
|
3
6
|
|
|
4
7
|
$moduk-font-family: 'Hevetica Neue', 'Arial', 'sans-serif' !default;
|
|
5
8
|
|
|
6
|
-
$moduk-brand-colour:
|
|
9
|
+
$moduk-brand-colour: colour-palette.moduk-colour('maroon') !default;
|
|
7
10
|
$moduk-header-link-active: #af6098 !default;
|