@nice-digital/nds-core 1.3.1 → 1.3.4-alpha.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": "@nice-digital/nds-core",
3
- "version": "1.3.1",
3
+ "version": "1.3.4-alpha.0",
4
4
  "description": "Core code for the NICE Design System",
5
5
  "author": "Ian Routledge <ian.routledge@nice.org.uk>",
6
6
  "contributors": [
@@ -33,16 +33,16 @@
33
33
  "url": "https://github.com/nice-digital/nice-design-system/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@nice-digital/icons": "^2.2.7",
36
+ "@nice-digital/icons": "^3.0.1-alpha.0",
37
37
  "prop-types": "^15.7.2",
38
38
  "sass-mq": "^6.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "react": "^16 || ^17",
42
- "react-dom": "^16 || ^17"
41
+ "react": "^16 || ^17 || ^18",
42
+ "react-dom": "^16 || ^17 || ^18"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/cli": "^7.5.0"
46
46
  },
47
- "gitHead": "220eade70a5804213c1708624307333777504dc4"
47
+ "gitHead": "ce7769f7847946e5d9eeca4a104df2168c7f9dab"
48
48
  }
@@ -0,0 +1,27 @@
1
+ // Global colours - do not reference these directly, use tokens instead!
2
+
3
+ // Primary palette
4
+ $global-nice-teal: #228096;
5
+ $global-nice-cream: #f7f4f1;
6
+ $global-nice-blue: #00436c;
7
+ $global-white: #fff;
8
+ $global-black: #000;
9
+ $global-nice-black: #0e0e0e;
10
+
11
+ // Secondary palette
12
+ $global-yellow: #ead054;
13
+
14
+ // Tertiary palette
15
+ $global-nice-teal-tint-1: #59a0b0;
16
+ $global-nice-teal-tint-2: #91c0cb;
17
+ $global-nice-teal-tint-3: #c8e0e6;
18
+ $global-nice-blue-tint-1: #407291;
19
+ $global-nice-blue-tint-2: #80a1b5;
20
+ $global-nice-blue-tint-3: #bfd0da;
21
+ $global-nice-cream-1: #ded5ca;
22
+ $global-nice-cream-2: #e6e0d7;
23
+ $global-nice-cream-3: #eeeae4;
24
+ $global-nice-cream-tint-1: #fbfaf8;
25
+ $global-black-tint-1: #404040;
26
+ $global-black-tint-2: #808080;
27
+ $global-black-tint-3: #bfbfbf;
@@ -11,20 +11,20 @@ $nds-base-font-size: $nds-baseline * 4 !default;
11
11
  $nds-base-line-height: $nds-baseline * 6 !default;
12
12
 
13
13
  /// Sans-serif font stack
14
- /// @since 0.2.0
15
- $nds-font-family-sans: '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' !default;
14
+ /// @since 2.0.0
15
+ $nds-font-family-sans: 'Inter, "Helvetica Neue", Helvetica, Arial, sans-serif' !default;
16
16
 
17
17
  /// Serif font stack
18
- /// @since 0.2.0
19
- $nds-font-family-serif: 'Georgia, "Times New Roman", Times, serif' !default;
18
+ /// @since 2.0.0
19
+ $nds-font-family-serif: 'Lora, Georgia, Times, serif' !default;
20
20
 
21
21
  /// Mono font stack
22
22
  /// @since 0.2.0
23
23
  $nds-font-family-mono: 'Monaco, Menlo, Consolas, "Courier New", monospace' !default;
24
24
 
25
25
  /// The font families in use across NICE.
26
- /// @prop {Font stack} sans [Lato, Helvetica Neue, Helvetica, Arial, sans-serif] The sans-serif font stack
27
- /// @prop {Font stack} serif [Georgia, "Times New Roman", Times, serif] The serif font stack
26
+ /// @prop {Font stack} sans [Inter, Helvetica Neue, Helvetica, Arial, sans-serif] The sans-serif font stack
27
+ /// @prop {Font stack} serif [Lora, Georgia, Times, serif] The serif font stack
28
28
  /// @prop {Font stack} mono [Monaco, Menlo, Consolas, "Courier New", monospace] The monospace font stack
29
29
  /// @see font-family
30
30
  /// @since 0.2.0
@@ -102,13 +102,13 @@ $nds-font-sizes: (
102
102
  fs: 18,
103
103
  lh: 24,
104
104
  mb: $nds-spacing-medium,
105
- mt: $nds-spacing-medium
105
+ mt: $nds-spacing-large
106
106
  ),
107
107
  2: (
108
108
  fs: 20,
109
109
  lh: 28,
110
110
  mb: $nds-spacing-medium,
111
- mt: $nds-spacing-medium
111
+ mt: $nds-spacing-large
112
112
  ),
113
113
  3: (
114
114
  fs: 28,
@@ -8,7 +8,8 @@
8
8
  @mixin nds-h1 {
9
9
  @include nds-font(h1);
10
10
  clear: both;
11
- font-weight: 700;
11
+ font-family: nds-get-font-family(serif);
12
+ font-weight: 600;
12
13
  // Letter spacing and text shadow to mimic 900 weight, see https://github.com/nice-digital/nice-design-system/issues/240
13
14
  letter-spacing: 0.5px;
14
15
  max-width: 66ch;
@@ -21,7 +22,8 @@
21
22
  @mixin nds-h2 {
22
23
  @include nds-font(h2);
23
24
  clear: both;
24
- font-weight: 700;
25
+ font-family: nds-get-font-family(serif);
26
+ font-weight: 600;
25
27
  max-width: 66ch;
26
28
  }
27
29
 
@@ -31,7 +33,8 @@
31
33
  @mixin nds-h3 {
32
34
  @include nds-font(h3);
33
35
  clear: both;
34
- font-weight: 700;
36
+ font-family: nds-get-font-family(serif);
37
+ font-weight: 600;
35
38
  max-width: 66ch;
36
39
  }
37
40
 
@@ -41,7 +44,8 @@
41
44
  @mixin nds-h4 {
42
45
  @include nds-font(h4);
43
46
  clear: both;
44
- font-weight: 700;
47
+ font-family: nds-get-font-family(serif);
48
+ font-weight: 600;
45
49
  max-width: 66ch;
46
50
  }
47
51