@guardian/stand 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.
Files changed (83) hide show
  1. package/README.md +445 -7
  2. package/dist/{byline → components/byline}/Byline.cjs +5 -5
  3. package/dist/{byline → components/byline}/Byline.js +5 -5
  4. package/dist/components/byline/styles.cjs +266 -0
  5. package/dist/components/byline/styles.js +256 -0
  6. package/dist/components/tag-picker/TagAutocomplete.cjs +107 -0
  7. package/dist/components/tag-picker/TagAutocomplete.js +26 -0
  8. package/dist/components/tag-picker/TagTable.cjs +203 -0
  9. package/dist/components/tag-picker/TagTable.js +91 -0
  10. package/dist/components/tag-picker/styles.cjs +198 -0
  11. package/dist/components/tag-picker/styles.js +185 -0
  12. package/dist/components/util.cjs +19 -0
  13. package/dist/components/util.js +17 -0
  14. package/dist/index.cjs +16 -1
  15. package/dist/index.js +8 -1
  16. package/dist/styleD/build/css/css/base/colors.css +122 -0
  17. package/dist/styleD/build/css/css/base/typography.css +43 -0
  18. package/dist/styleD/build/css/css/component/byline.css +36 -0
  19. package/dist/styleD/build/css/css/component/tagAutocomplete.css +23 -0
  20. package/dist/styleD/build/css/css/component/tagTable.css +39 -0
  21. package/dist/styleD/build/css/css/semantic/colors.css +27 -0
  22. package/dist/styleD/build/css/css/semantic/typography.css +138 -0
  23. package/dist/styleD/build/typescript/base/colors.cjs +144 -0
  24. package/dist/styleD/build/typescript/base/colors.js +142 -0
  25. package/dist/styleD/build/typescript/base/typography.cjs +65 -0
  26. package/dist/styleD/build/typescript/base/typography.js +63 -0
  27. package/dist/styleD/build/typescript/component/byline.cjs +42 -0
  28. package/dist/styleD/build/typescript/component/byline.js +40 -0
  29. package/dist/styleD/build/typescript/component/tagAutocomplete.cjs +29 -0
  30. package/dist/styleD/build/typescript/component/tagAutocomplete.js +27 -0
  31. package/dist/styleD/build/typescript/component/tagTable.cjs +53 -0
  32. package/dist/styleD/build/typescript/component/tagTable.js +51 -0
  33. package/dist/styleD/build/typescript/semantic/colors.cjs +37 -0
  34. package/dist/styleD/build/typescript/semantic/colors.js +35 -0
  35. package/dist/styleD/build/typescript/semantic/typography.cjs +462 -0
  36. package/dist/styleD/build/typescript/semantic/typography.js +460 -0
  37. package/dist/styleD/utils/semantic/typography.cjs +29 -0
  38. package/dist/styleD/utils/semantic/typography.js +26 -0
  39. package/dist/types/components/byline/Byline.d.ts +83 -0
  40. package/dist/types/components/byline/styles.d.ts +13 -0
  41. package/dist/types/components/byline/theme.d.ts +3 -0
  42. package/dist/types/components/tag-picker/TagAutocomplete.d.ts +117 -0
  43. package/dist/types/components/tag-picker/TagTable.d.ts +126 -0
  44. package/dist/types/components/tag-picker/example-tags.d.ts +2 -0
  45. package/dist/types/components/tag-picker/styles.d.ts +16 -0
  46. package/dist/types/components/tag-picker/types.d.ts +65 -0
  47. package/dist/types/{byline → components}/util.d.ts +1 -0
  48. package/dist/types/index.d.ts +26 -2
  49. package/dist/types/styleD/build/typescript/base/colors.d.ts +144 -0
  50. package/dist/types/styleD/build/typescript/base/typography.d.ts +65 -0
  51. package/dist/types/styleD/build/typescript/component/byline.d.ts +42 -0
  52. package/dist/types/styleD/build/typescript/component/tagAutocomplete.d.ts +29 -0
  53. package/dist/types/styleD/build/typescript/component/tagTable.d.ts +53 -0
  54. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +37 -0
  55. package/dist/types/styleD/build/typescript/semantic/typography.d.ts +462 -0
  56. package/dist/types/styleD/stories/base/Typography.d.ts +1 -0
  57. package/dist/types/styleD/stories/base/storybookColorPalette.d.ts +19 -0
  58. package/dist/types/styleD/stories/semantic/TypographyPresets.d.ts +1 -0
  59. package/dist/types/styleD/utils/semantic/typography.d.ts +16 -0
  60. package/dist/types/styleD/utils/semantic/typography.test.d.ts +1 -0
  61. package/package.json +68 -22
  62. package/dist/byline/styles.cjs +0 -244
  63. package/dist/byline/styles.js +0 -234
  64. package/dist/types/byline/Byline.d.ts +0 -17
  65. package/dist/types/byline/styles.d.ts +0 -11
  66. package/dist/types/byline/theme.d.ts +0 -44
  67. /package/dist/{byline → components/byline}/Preview.cjs +0 -0
  68. /package/dist/{byline → components/byline}/Preview.js +0 -0
  69. /package/dist/{byline → components/byline}/lib.cjs +0 -0
  70. /package/dist/{byline → components/byline}/lib.js +0 -0
  71. /package/dist/{byline → components/byline}/placeholder.cjs +0 -0
  72. /package/dist/{byline → components/byline}/placeholder.js +0 -0
  73. /package/dist/{byline → components/byline}/plugins.cjs +0 -0
  74. /package/dist/{byline → components/byline}/plugins.js +0 -0
  75. /package/dist/{byline → components/byline}/schema.cjs +0 -0
  76. /package/dist/{byline → components/byline}/schema.js +0 -0
  77. /package/dist/types/{byline → components/byline}/Preview.d.ts +0 -0
  78. /package/dist/types/{byline → components/byline}/contributors-fixture.d.ts +0 -0
  79. /package/dist/types/{byline → components/byline}/lib.d.ts +0 -0
  80. /package/dist/types/{byline → components/byline}/lib.test.d.ts +0 -0
  81. /package/dist/types/{byline → components/byline}/placeholder.d.ts +0 -0
  82. /package/dist/types/{byline → components/byline}/plugins.d.ts +0 -0
  83. /package/dist/types/{byline → components/byline}/schema.d.ts +0 -0
@@ -0,0 +1,17 @@
1
+ const isObject = (obj) => obj && typeof obj === "object";
2
+ function mergeDeep(obj1, obj2) {
3
+ return [obj1, obj2].reduce((prev, obj) => {
4
+ Object.keys(obj).forEach((key) => {
5
+ const pVal = prev[key];
6
+ const oVal = obj[key];
7
+ if (isObject(pVal) && isObject(oVal)) {
8
+ prev[key] = mergeDeep(pVal, oVal);
9
+ } else {
10
+ prev[key] = oVal;
11
+ }
12
+ });
13
+ return prev;
14
+ }, {});
15
+ }
16
+
17
+ export { mergeDeep };
package/dist/index.cjs CHANGED
@@ -1,7 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var Byline = require('./byline/Byline.cjs');
3
+ var Byline = require('./components/byline/Byline.cjs');
4
+ var TagTable = require('./components/tag-picker/TagTable.cjs');
5
+ var TagAutocomplete = require('./components/tag-picker/TagAutocomplete.cjs');
6
+ var colors = require('./styleD/build/typescript/base/colors.cjs');
7
+ var typography = require('./styleD/build/typescript/base/typography.cjs');
8
+ var colors$1 = require('./styleD/build/typescript/semantic/colors.cjs');
9
+ var typography$1 = require('./styleD/build/typescript/semantic/typography.cjs');
10
+ var typography$2 = require('./styleD/utils/semantic/typography.cjs');
4
11
 
5
12
 
6
13
 
7
14
  exports.Byline = Byline.Byline;
15
+ exports.TagTable = TagTable.TagTable;
16
+ exports.TagAutocomplete = TagAutocomplete.TagAutocomplete;
17
+ exports.baseColors = colors.baseColors;
18
+ exports.baseTypography = typography.baseTypography;
19
+ exports.semanticColors = colors$1.semanticColors;
20
+ exports.semanticTypography = typography$1.semanticTypography;
21
+ exports.convertTypographyToEmotionObjectStyle = typography$2.convertTypographyToEmotionObjectStyle;
22
+ exports.convertTypographyToEmotionStringStyle = typography$2.convertTypographyToEmotionStringStyle;
package/dist/index.js CHANGED
@@ -1 +1,8 @@
1
- export { Byline } from './byline/Byline.js';
1
+ export { Byline } from './components/byline/Byline.js';
2
+ export { TagTable } from './components/tag-picker/TagTable.js';
3
+ export { TagAutocomplete } from './components/tag-picker/TagAutocomplete.js';
4
+ export { baseColors } from './styleD/build/typescript/base/colors.js';
5
+ export { baseTypography } from './styleD/build/typescript/base/typography.js';
6
+ export { semanticColors } from './styleD/build/typescript/semantic/colors.js';
7
+ export { semanticTypography } from './styleD/build/typescript/semantic/typography.js';
8
+ export { convertTypographyToEmotionObjectStyle, convertTypographyToEmotionStringStyle } from './styleD/utils/semantic/typography.js';
@@ -0,0 +1,122 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --base-colors-neutral-0: #000000;
7
+ --base-colors-neutral-50: #121212;
8
+ --base-colors-neutral-100: #333333;
9
+ --base-colors-neutral-200: #545454;
10
+ --base-colors-neutral-300: #666666;
11
+ --base-colors-neutral-400: #8d8d8d;
12
+ --base-colors-neutral-500: #999999;
13
+ --base-colors-neutral-550: #aeaeae;
14
+ --base-colors-neutral-600: #bababa;
15
+ --base-colors-neutral-625: #c1c1c1;
16
+ --base-colors-neutral-650: #cccccc;
17
+ --base-colors-neutral-700: #dcdcdc;
18
+ --base-colors-neutral-750: #e6e6e6;
19
+ --base-colors-neutral-800: #ededed;
20
+ --base-colors-neutral-850: #f6f6f6;
21
+ --base-colors-neutral-900: #ffffff;
22
+ --base-colors-red-50: #3d0e08;
23
+ --base-colors-red-100: #65170e;
24
+ --base-colors-red-200: #8c2113;
25
+ --base-colors-red-300: #b42a19;
26
+ --base-colors-red-400: #db331e;
27
+ --base-colors-red-500: #e15847;
28
+ --base-colors-red-600: #e87c6f;
29
+ --base-colors-red-700: #eea198;
30
+ --base-colors-red-800: #f5c6c0;
31
+ --base-colors-red-900: #fbebe9;
32
+ --base-colors-blue-50: #061d3c;
33
+ --base-colors-blue-100: #092f62;
34
+ --base-colors-blue-200: #0d4289;
35
+ --base-colors-blue-300: #1054af;
36
+ --base-colors-blue-400: #1467d6;
37
+ --base-colors-blue-500: #3e82dd;
38
+ --base-colors-blue-600: #699ee5;
39
+ --base-colors-blue-700: #93b9ec;
40
+ --base-colors-blue-800: #bdd4f4;
41
+ --base-colors-blue-900: #e8f0fb;
42
+ --base-colors-cyan-50: #00202f;
43
+ --base-colors-cyan-100: #00344e;
44
+ --base-colors-cyan-200: #00496c;
45
+ --base-colors-cyan-300: #005d8b;
46
+ --base-colors-cyan-400: #0072a9;
47
+ --base-colors-cyan-500: #2e8bb8;
48
+ --base-colors-cyan-600: #5ca5c8;
49
+ --base-colors-cyan-700: #8abed7;
50
+ --base-colors-cyan-800: #b8d8e7;
51
+ --base-colors-cyan-900: #e6f1f6;
52
+ --base-colors-teal-50: #050e0f;
53
+ --base-colors-teal-100: #0e2729;
54
+ --base-colors-teal-200: #174044;
55
+ --base-colors-teal-300: #287279;
56
+ --base-colors-teal-400: #318b94;
57
+ --base-colors-teal-500: #56a0a7;
58
+ --base-colors-teal-600: #7bb5bb;
59
+ --base-colors-teal-700: #a0cace;
60
+ --base-colors-teal-800: #c5dfe1;
61
+ --base-colors-teal-900: #eaf3f4;
62
+ --base-colors-green-50: #162c11;
63
+ --base-colors-green-100: #24491d;
64
+ --base-colors-green-200: #326528;
65
+ --base-colors-green-300: #408233;
66
+ --base-colors-green-400: #4e9e3e;
67
+ --base-colors-green-500: #6eaf61;
68
+ --base-colors-green-600: #8ec183;
69
+ --base-colors-green-700: #aed2a6;
70
+ --base-colors-green-800: #cde4c9;
71
+ --base-colors-green-900: #edf5ec;
72
+ --base-colors-yellow-50: #433608;
73
+ --base-colors-yellow-100: #6f590c;
74
+ --base-colors-yellow-200: #9a7c11;
75
+ --base-colors-yellow-300: #c69f16;
76
+ --base-colors-yellow-400: #f1c21b;
77
+ --base-colors-yellow-500: #f4cd44;
78
+ --base-colors-yellow-600: #f6d86d;
79
+ --base-colors-yellow-700: #f9e396;
80
+ --base-colors-yellow-800: #fbeebf;
81
+ --base-colors-yellow-900: #fef9e8;
82
+ --base-colors-orange-50: #45260e;
83
+ --base-colors-orange-100: #713e17;
84
+ --base-colors-orange-200: #9d5621;
85
+ --base-colors-orange-300: #c96e2a;
86
+ --base-colors-orange-400: #f58633;
87
+ --base-colors-orange-500: #f79c58;
88
+ --base-colors-orange-600: #f9b27c;
89
+ --base-colors-orange-700: #fac7a1;
90
+ --base-colors-orange-800: #fcddc6;
91
+ --base-colors-orange-900: #fef3eb;
92
+ --base-colors-magenta-50: #350e20;
93
+ --base-colors-magenta-100: #581734;
94
+ --base-colors-magenta-200: #7a2048;
95
+ --base-colors-magenta-300: #9d295d;
96
+ --base-colors-magenta-400: #bf3271;
97
+ --base-colors-magenta-500: #cb578b;
98
+ --base-colors-magenta-600: #d67ca4;
99
+ --base-colors-magenta-700: #e2a1be;
100
+ --base-colors-magenta-800: #edc6d7;
101
+ --base-colors-magenta-900: #f9ebf1;
102
+ --base-colors-warm-purple-50: #220b30;
103
+ --base-colors-warm-purple-100: #381350;
104
+ --base-colors-warm-purple-200: #4e1a6f;
105
+ --base-colors-warm-purple-300: #64228e;
106
+ --base-colors-warm-purple-400: #7a29ad;
107
+ --base-colors-warm-purple-500: #9250bc;
108
+ --base-colors-warm-purple-600: #aa76cb;
109
+ --base-colors-warm-purple-700: #c29dd9;
110
+ --base-colors-warm-purple-800: #dac3e8;
111
+ --base-colors-warm-purple-900: #f2eaf7;
112
+ --base-colors-cool-purple-50: #232740;
113
+ --base-colors-cool-purple-100: #394069;
114
+ --base-colors-cool-purple-200: #505a92;
115
+ --base-colors-cool-purple-300: #6773bb;
116
+ --base-colors-cool-purple-400: #7d8ce4;
117
+ --base-colors-cool-purple-500: #94a1e9;
118
+ --base-colors-cool-purple-600: #acb5ee;
119
+ --base-colors-cool-purple-700: #c3caf3;
120
+ --base-colors-cool-purple-800: #dbdff7;
121
+ --base-colors-cool-purple-900: #f2f4fc;
122
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --base-typography-family-open-sans: 'Open Sans';
7
+ --base-typography-family-open-sans-compact: 'Open Sans';
8
+ --base-typography-family-guardian-text-egyptian: GuardianTextEgyptian;
9
+ --base-typography-family-guardian-headline: 'GH Guardian Headline';
10
+ --base-typography-size-12-px: 12px;
11
+ --base-typography-size-14-px: 14px;
12
+ --base-typography-size-16-px: 16px;
13
+ --base-typography-size-18-px: 18px;
14
+ --base-typography-size-20-px: 20px;
15
+ --base-typography-size-24-px: 24px;
16
+ --base-typography-size-28-px: 28px;
17
+ --base-typography-size-32-px: 32px;
18
+ --base-typography-size-36-px: 36px;
19
+ --base-typography-size-42-px: 42px;
20
+ --base-typography-size-48-px: 48px;
21
+ --base-typography-weight-guardian-text-egyptian-normal: 400;
22
+ --base-typography-weight-guardian-text-egyptian-bold: 700;
23
+ --base-typography-weight-guardian-headline-bold: 700;
24
+ --base-typography-weight-open-sans-light: 340;
25
+ --base-typography-weight-open-sans-normal: 460;
26
+ --base-typography-weight-open-sans-semi-bold: 600;
27
+ --base-typography-weight-open-sans-bold: 700;
28
+ --base-typography-weight-open-sans-compact-light: 360;
29
+ --base-typography-weight-open-sans-compact-normal: 460;
30
+ --base-typography-weight-open-sans-compact-semi-bold: 600;
31
+ --base-typography-weight-open-sans-compact-bold: 700;
32
+ --base-typography-width-open-sans: 95;
33
+ --base-typography-width-open-sans-compact: 88;
34
+ --base-typography-style-normal: normal;
35
+ --base-typography-style-italic: italic;
36
+ --base-typography-line-height-tight: 1.15;
37
+ --base-typography-line-height-normal: 1.3;
38
+ --base-typography-line-height-loose: 1.4;
39
+ --base-typography-letter-spacing-densest-px: -1px;
40
+ --base-typography-letter-spacing-denser-px: -0.5px;
41
+ --base-typography-letter-spacing-dense-px: -0.2px;
42
+ --base-typography-letter-spacing-default-px: 0px;
43
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-byline-color: #000000;
7
+ --component-byline-background-color: #ffffff;
8
+ --component-byline-readonly-background-color: #dcdcdc;
9
+ --component-byline-border-color: #000000;
10
+ --component-byline-border-width: 1px;
11
+ --component-byline-border-style: solid;
12
+ --component-byline-line-height: 1.8;
13
+ --component-byline-chip-color: #000000;
14
+ --component-byline-chip-border-color: #dcdcdc;
15
+ --component-byline-chip-border-width: 1px;
16
+ --component-byline-chip-border-style: solid;
17
+ --component-byline-chip-border-radius: 8px;
18
+ --component-byline-chip-padding-x: 4px;
19
+ --component-byline-chip-padding-y: 2px;
20
+ --component-byline-chip-selected-border-color: #bdd4f4;
21
+ --component-byline-chip-tagged-background-color: #dcdcdc;
22
+ --component-byline-chip-untagged-color: #000000;
23
+ --component-byline-dropdown-border-color: #cccccc;
24
+ --component-byline-dropdown-border-width: 1px;
25
+ --component-byline-dropdown-border-style: solid;
26
+ --component-byline-dropdown-background-color: #ffffff;
27
+ --component-byline-dropdown-li-color: #000000;
28
+ --component-byline-dropdown-li-border-bottom-color: #cccccc;
29
+ --component-byline-dropdown-li-border-bottom-width: 1px;
30
+ --component-byline-dropdown-li-border-bottom-style: solid;
31
+ --component-byline-dropdown-li-selected-background-color: #56a0a7;
32
+ --component-byline-dropdown-li-selected-color: #ffffff;
33
+ --component-byline-dropdown-max-height: 320px;
34
+ --component-byline-invisibles-color: #bababa;
35
+ --component-byline-placeholder-color: #8d8d8d;
36
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-tag-autocomplete-input-color: #000000;
7
+ --component-tag-autocomplete-input-background-color: #ffffff;
8
+ --component-tag-autocomplete-input-disabled-background-color: #dcdcdc;
9
+ --component-tag-autocomplete-input-border-width: 1px;
10
+ --component-tag-autocomplete-input-border-style: solid;
11
+ --component-tag-autocomplete-input-border-color: #8d8d8d;
12
+ --component-tag-autocomplete-input-padding: 11px;
13
+ --component-tag-autocomplete-listbox-border-width: 1px;
14
+ --component-tag-autocomplete-listbox-border-style: solid;
15
+ --component-tag-autocomplete-listbox-border-color: #8d8d8d;
16
+ --component-tag-autocomplete-listbox-padding-y: 8px;
17
+ --component-tag-autocomplete-listbox-padding-x: 0px;
18
+ --component-tag-autocomplete-listbox-background-color: #ffffff;
19
+ --component-tag-autocomplete-listbox-item-padding-y: 8px;
20
+ --component-tag-autocomplete-listbox-item-padding-x: 12px;
21
+ --component-tag-autocomplete-listbox-item-background-hover-color: #ededed;
22
+ --component-tag-autocomplete-listbox-item-background-focused-color: #ededed;
23
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-tag-table-heading-background-color: #dcdcdc;
7
+ --component-tag-table-heading-font-weight: 700;
8
+ --component-tag-table-heading-padding-top: 3px;
9
+ --component-tag-table-heading-padding-right: 5px;
10
+ --component-tag-table-heading-padding-bottom: 3px;
11
+ --component-tag-table-heading-padding-left: 12px;
12
+ --component-tag-table-cell-padding-x: 5px;
13
+ --component-tag-table-cell-padding-y: 3px;
14
+ --component-tag-table-cell-first-cell-padding-left: 12px;
15
+ --component-tag-table-cell-border-between-cells-border-width: 1px;
16
+ --component-tag-table-cell-border-between-cells-border-style: solid;
17
+ --component-tag-table-cell-border-between-cells-border-color: #ffffff;
18
+ --component-tag-table-row-height: 28px;
19
+ --component-tag-table-row-background-color: #ededed;
20
+ --component-tag-table-row-background-hover-color: #f6f6f6;
21
+ --component-tag-table-row-border-bottom-border-width: 1px;
22
+ --component-tag-table-row-border-bottom-border-style: solid;
23
+ --component-tag-table-row-border-bottom-border-color: #ffffff;
24
+ --component-tag-table-row-first-row-background-color: #aed2a6;
25
+ --component-tag-table-row-first-row-background-hover-color: #8ec183;
26
+ --component-tag-table-add-button-color: #ffffff;
27
+ --component-tag-table-add-button-padding-x: 10px;
28
+ --component-tag-table-add-button-padding-y: 0px;
29
+ --component-tag-table-add-button-background-color: #8d8d8d;
30
+ --component-tag-table-add-button-background-hover-color: #545454;
31
+ --component-tag-table-add-button-font-weight: 400;
32
+ --component-tag-table-add-button-font-size: 13px;
33
+ --component-tag-table-type-badge-color: #000000;
34
+ --component-tag-table-type-badge-background-color: #ffffff;
35
+ --component-tag-table-type-badge-padding-x: 6px;
36
+ --component-tag-table-type-badge-padding-y: 2px;
37
+ --component-tag-table-type-badge-font-weight: 700;
38
+ --component-tag-table-type-badge-font-size: 10px;
39
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --semantic-colors-text-primary: #000000;
7
+ --semantic-colors-text-secondary: #333333;
8
+ --semantic-colors-text-tertiary: #666666;
9
+ --semantic-colors-text-inverse-default: #dcdcdc;
10
+ --semantic-colors-text-inverse-secondary: #cccccc;
11
+ --semantic-colors-text-inverse-tertiary: #aeaeae;
12
+ --semantic-colors-text-inverse-strong: #ffffff;
13
+ --semantic-colors-text-warning: #8c2113;
14
+ --semantic-colors-text-success: #326528;
15
+ --semantic-colors-surface-light-1: #f6f6f6;
16
+ --semantic-colors-surface-light-2: #ededed;
17
+ --semantic-colors-surface-dark-1: #333333;
18
+ --semantic-colors-border-subtle: #cccccc;
19
+ --semantic-colors-border-default: #8d8d8d;
20
+ --semantic-colors-border-strong: #545454;
21
+ --semantic-colors-border-inverse-strong: #ffffff;
22
+ --semantic-colors-bg-default-on-dark: #121212;
23
+ --semantic-colors-bg-default-on-light: #ffffff;
24
+ --semantic-colors-status-status-draft: #f1c21b;
25
+ --semantic-colors-status-status-live: #4e9e3e;
26
+ --semantic-colors-status-status-selected: #0072a9;
27
+ }
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --semantic-typography-title-sm-font: normal 700 18px/1.15
7
+ 'GH Guardian Headline';
8
+ --semantic-typography-title-sm-letter-spacing: 0px;
9
+ --semantic-typography-title-sm-font-width: 100;
10
+ --semantic-typography-title-md-font: normal 700 20px/1.15
11
+ 'GH Guardian Headline';
12
+ --semantic-typography-title-md-letter-spacing: 0px;
13
+ --semantic-typography-title-md-font-width: 100;
14
+ --semantic-typography-title-lg-font: normal 700 24px/1.15
15
+ 'GH Guardian Headline';
16
+ --semantic-typography-title-lg-letter-spacing: 0px;
17
+ --semantic-typography-title-lg-font-width: 100;
18
+ --semantic-typography-title-xl-font: normal 700 32px/1.15
19
+ 'GH Guardian Headline';
20
+ --semantic-typography-title-xl-letter-spacing: 0px;
21
+ --semantic-typography-title-xl-font-width: 100;
22
+ --semantic-typography-heading-xs-font: normal 700 12px/1.15 'Open Sans';
23
+ --semantic-typography-heading-xs-letter-spacing: 0px;
24
+ --semantic-typography-heading-xs-font-width: 95;
25
+ --semantic-typography-heading-sm-font: normal 700 14px/1.15 'Open Sans';
26
+ --semantic-typography-heading-sm-letter-spacing: -0.2px;
27
+ --semantic-typography-heading-sm-font-width: 95;
28
+ --semantic-typography-heading-md-font: normal 700 16px/1.15 'Open Sans';
29
+ --semantic-typography-heading-md-letter-spacing: -0.5px;
30
+ --semantic-typography-heading-md-font-width: 95;
31
+ --semantic-typography-heading-lg-font: normal 700 18px/1.15 'Open Sans';
32
+ --semantic-typography-heading-lg-letter-spacing: -0.5px;
33
+ --semantic-typography-heading-lg-font-width: 95;
34
+ --semantic-typography-heading-xl-font: normal 700 20px/1.15 'Open Sans';
35
+ --semantic-typography-heading-xl-letter-spacing: -0.5px;
36
+ --semantic-typography-heading-xl-font-width: 95;
37
+ --semantic-typography-heading-2xl-font: normal 700 24px/1.15 'Open Sans';
38
+ --semantic-typography-heading-2xl-letter-spacing: -1px;
39
+ --semantic-typography-heading-2xl-font-width: 95;
40
+ --semantic-typography-heading-compact-xs-font: normal 700 12px/1.15
41
+ 'Open Sans';
42
+ --semantic-typography-heading-compact-xs-letter-spacing: 0px;
43
+ --semantic-typography-heading-compact-xs-font-width: 88;
44
+ --semantic-typography-heading-compact-sm-font: normal 700 14px/1.15
45
+ 'Open Sans';
46
+ --semantic-typography-heading-compact-sm-letter-spacing: 0px;
47
+ --semantic-typography-heading-compact-sm-font-width: 88;
48
+ --semantic-typography-heading-compact-md-font: normal 700 16px/1.15
49
+ 'Open Sans';
50
+ --semantic-typography-heading-compact-md-letter-spacing: -0.2px;
51
+ --semantic-typography-heading-compact-md-font-width: 88;
52
+ --semantic-typography-heading-compact-lg-font: normal 700 18px/1.15
53
+ 'Open Sans';
54
+ --semantic-typography-heading-compact-lg-letter-spacing: -0.2px;
55
+ --semantic-typography-heading-compact-lg-font-width: 88;
56
+ --semantic-typography-heading-compact-xl-font: normal 700 20px/1.15
57
+ 'Open Sans';
58
+ --semantic-typography-heading-compact-xl-letter-spacing: -0.5px;
59
+ --semantic-typography-heading-compact-xl-font-width: 88;
60
+ --semantic-typography-heading-compact-2xl-font: normal 700 24px/1.15
61
+ 'Open Sans';
62
+ --semantic-typography-heading-compact-2xl-letter-spacing: -0.5px;
63
+ --semantic-typography-heading-compact-2xl-font-width: 88;
64
+ --semantic-typography-body-sm-font: normal 460 14px/1.3 'Open Sans';
65
+ --semantic-typography-body-sm-letter-spacing: 0px;
66
+ --semantic-typography-body-sm-font-width: 95;
67
+ --semantic-typography-body-md-font: normal 460 16px/1.3 'Open Sans';
68
+ --semantic-typography-body-md-letter-spacing: 0px;
69
+ --semantic-typography-body-md-font-width: 95;
70
+ --semantic-typography-body-lg-font: normal 460 18px/1.3 'Open Sans';
71
+ --semantic-typography-body-lg-letter-spacing: 0px;
72
+ --semantic-typography-body-lg-font-width: 95;
73
+ --semantic-typography-body-xl-font: normal 460 20px/1.3 'Open Sans';
74
+ --semantic-typography-body-xl-letter-spacing: 0px;
75
+ --semantic-typography-body-xl-font-width: 95;
76
+ --semantic-typography-body-italic-sm-font: italic 460 14px/1.3 'Open Sans';
77
+ --semantic-typography-body-italic-sm-letter-spacing: 0px;
78
+ --semantic-typography-body-italic-sm-font-width: 95;
79
+ --semantic-typography-body-italic-md-font: italic 460 16px/1.3 'Open Sans';
80
+ --semantic-typography-body-italic-md-letter-spacing: 0px;
81
+ --semantic-typography-body-italic-md-font-width: 95;
82
+ --semantic-typography-body-italic-lg-font: italic 460 18px/1.3 'Open Sans';
83
+ --semantic-typography-body-italic-lg-letter-spacing: 0px;
84
+ --semantic-typography-body-italic-lg-font-width: 95;
85
+ --semantic-typography-body-italic-xl-font: italic 460 20px/1.3 'Open Sans';
86
+ --semantic-typography-body-italic-xl-letter-spacing: 0px;
87
+ --semantic-typography-body-italic-xl-font-width: 95;
88
+ --semantic-typography-body-compact-sm-font: normal 460 14px/1.3 'Open Sans';
89
+ --semantic-typography-body-compact-sm-letter-spacing: 0px;
90
+ --semantic-typography-body-compact-sm-font-width: 88;
91
+ --semantic-typography-body-compact-md-font: normal 460 16px/1.3 'Open Sans';
92
+ --semantic-typography-body-compact-md-letter-spacing: 0px;
93
+ --semantic-typography-body-compact-md-font-width: 88;
94
+ --semantic-typography-body-compact-lg-font: normal 460 18px/1.3 'Open Sans';
95
+ --semantic-typography-body-compact-lg-letter-spacing: 0px;
96
+ --semantic-typography-body-compact-lg-font-width: 88;
97
+ --semantic-typography-body-compact-xl-font: normal 460 20px/1.3 'Open Sans';
98
+ --semantic-typography-body-compact-xl-letter-spacing: 0px;
99
+ --semantic-typography-body-compact-xl-font-width: 88;
100
+ --semantic-typography-body-compact-italic-sm-font: italic 460 14px/1.3
101
+ 'Open Sans';
102
+ --semantic-typography-body-compact-italic-sm-letter-spacing: 0px;
103
+ --semantic-typography-body-compact-italic-sm-font-width: 88;
104
+ --semantic-typography-body-compact-italic-md-font: italic 460 16px/1.3
105
+ 'Open Sans';
106
+ --semantic-typography-body-compact-italic-md-letter-spacing: 0px;
107
+ --semantic-typography-body-compact-italic-md-font-width: 88;
108
+ --semantic-typography-body-compact-italic-lg-font: italic 460 18px/1.3
109
+ 'Open Sans';
110
+ --semantic-typography-body-compact-italic-lg-letter-spacing: 0px;
111
+ --semantic-typography-body-compact-italic-lg-font-width: 88;
112
+ --semantic-typography-body-compact-italic-xl-font: italic 460 20px/1.3
113
+ 'Open Sans';
114
+ --semantic-typography-body-compact-italic-xl-letter-spacing: 0px;
115
+ --semantic-typography-body-compact-italic-xl-font-width: 88;
116
+ --semantic-typography-meta-md-font: normal 460 12px/1.3 'Open Sans';
117
+ --semantic-typography-meta-md-letter-spacing: 0px;
118
+ --semantic-typography-meta-md-font-width: 95;
119
+ --semantic-typography-meta-compact-md-font: normal 460 12px/1.3 'Open Sans';
120
+ --semantic-typography-meta-compact-md-letter-spacing: 0px;
121
+ --semantic-typography-meta-compact-md-font-width: 88;
122
+ --semantic-typography-article-body-md-font: normal 400 16px/1.4
123
+ GuardianTextEgyptian;
124
+ --semantic-typography-article-body-md-letter-spacing: 0px;
125
+ --semantic-typography-article-body-md-font-width: 100;
126
+ --semantic-typography-article-body-bold-md-font: normal 700 16px/1.4
127
+ GuardianTextEgyptian;
128
+ --semantic-typography-article-body-bold-md-letter-spacing: 0px;
129
+ --semantic-typography-article-body-bold-md-font-width: 100;
130
+ --semantic-typography-article-body-italic-md-font: italic 400 16px/1.4
131
+ GuardianTextEgyptian;
132
+ --semantic-typography-article-body-italic-md-letter-spacing: 0px;
133
+ --semantic-typography-article-body-italic-md-font-width: 100;
134
+ --semantic-typography-article-body-bold-italic-md-font: italic 700 16px/1.4
135
+ GuardianTextEgyptian;
136
+ --semantic-typography-article-body-bold-italic-md-letter-spacing: 0px;
137
+ --semantic-typography-article-body-bold-italic-md-font-width: 100;
138
+ }
@@ -0,0 +1,144 @@
1
+ 'use strict';
2
+
3
+ const baseColors = {
4
+ neutral: {
5
+ "0": "#000000",
6
+ "50": "#121212",
7
+ "100": "#333333",
8
+ "200": "#545454",
9
+ "300": "#666666",
10
+ "400": "#8d8d8d",
11
+ "500": "#999999",
12
+ "550": "#aeaeae",
13
+ "600": "#bababa",
14
+ "625": "#c1c1c1",
15
+ "650": "#cccccc",
16
+ "700": "#dcdcdc",
17
+ "750": "#e6e6e6",
18
+ "800": "#ededed",
19
+ "850": "#f6f6f6",
20
+ "900": "#ffffff"
21
+ },
22
+ red: {
23
+ "50": "#3d0e08",
24
+ "100": "#65170e",
25
+ "200": "#8c2113",
26
+ "300": "#b42a19",
27
+ "400": "#db331e",
28
+ "500": "#e15847",
29
+ "600": "#e87c6f",
30
+ "700": "#eea198",
31
+ "800": "#f5c6c0",
32
+ "900": "#fbebe9"
33
+ },
34
+ blue: {
35
+ "50": "#061d3c",
36
+ "100": "#092f62",
37
+ "200": "#0d4289",
38
+ "300": "#1054af",
39
+ "400": "#1467d6",
40
+ "500": "#3e82dd",
41
+ "600": "#699ee5",
42
+ "700": "#93b9ec",
43
+ "800": "#bdd4f4",
44
+ "900": "#e8f0fb"
45
+ },
46
+ cyan: {
47
+ "50": "#00202f",
48
+ "100": "#00344e",
49
+ "200": "#00496c",
50
+ "300": "#005d8b",
51
+ "400": "#0072a9",
52
+ "500": "#2e8bb8",
53
+ "600": "#5ca5c8",
54
+ "700": "#8abed7",
55
+ "800": "#b8d8e7",
56
+ "900": "#e6f1f6"
57
+ },
58
+ teal: {
59
+ "50": "#050e0f",
60
+ "100": "#0e2729",
61
+ "200": "#174044",
62
+ "300": "#287279",
63
+ "400": "#318b94",
64
+ "500": "#56a0a7",
65
+ "600": "#7bb5bb",
66
+ "700": "#a0cace",
67
+ "800": "#c5dfe1",
68
+ "900": "#eaf3f4"
69
+ },
70
+ green: {
71
+ "50": "#162c11",
72
+ "100": "#24491d",
73
+ "200": "#326528",
74
+ "300": "#408233",
75
+ "400": "#4e9e3e",
76
+ "500": "#6eaf61",
77
+ "600": "#8ec183",
78
+ "700": "#aed2a6",
79
+ "800": "#cde4c9",
80
+ "900": "#edf5ec"
81
+ },
82
+ yellow: {
83
+ "50": "#433608",
84
+ "100": "#6f590c",
85
+ "200": "#9a7c11",
86
+ "300": "#c69f16",
87
+ "400": "#f1c21b",
88
+ "500": "#f4cd44",
89
+ "600": "#f6d86d",
90
+ "700": "#f9e396",
91
+ "800": "#fbeebf",
92
+ "900": "#fef9e8"
93
+ },
94
+ orange: {
95
+ "50": "#45260e",
96
+ "100": "#713e17",
97
+ "200": "#9d5621",
98
+ "300": "#c96e2a",
99
+ "400": "#f58633",
100
+ "500": "#f79c58",
101
+ "600": "#f9b27c",
102
+ "700": "#fac7a1",
103
+ "800": "#fcddc6",
104
+ "900": "#fef3eb"
105
+ },
106
+ magenta: {
107
+ "50": "#350e20",
108
+ "100": "#581734",
109
+ "200": "#7a2048",
110
+ "300": "#9d295d",
111
+ "400": "#bf3271",
112
+ "500": "#cb578b",
113
+ "600": "#d67ca4",
114
+ "700": "#e2a1be",
115
+ "800": "#edc6d7",
116
+ "900": "#f9ebf1"
117
+ },
118
+ "warm-purple": {
119
+ "50": "#220b30",
120
+ "100": "#381350",
121
+ "200": "#4e1a6f",
122
+ "300": "#64228e",
123
+ "400": "#7a29ad",
124
+ "500": "#9250bc",
125
+ "600": "#aa76cb",
126
+ "700": "#c29dd9",
127
+ "800": "#dac3e8",
128
+ "900": "#f2eaf7"
129
+ },
130
+ "cool-purple": {
131
+ "50": "#232740",
132
+ "100": "#394069",
133
+ "200": "#505a92",
134
+ "300": "#6773bb",
135
+ "400": "#7d8ce4",
136
+ "500": "#94a1e9",
137
+ "600": "#acb5ee",
138
+ "700": "#c3caf3",
139
+ "800": "#dbdff7",
140
+ "900": "#f2f4fc"
141
+ }
142
+ };
143
+
144
+ exports.baseColors = baseColors;