@foeewni/web-core 3.0.0-alpha.1 → 3.0.0-alpha.11

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.
@@ -8,28 +8,44 @@
8
8
  //
9
9
 
10
10
  // Colours
11
- $foe-primary: #56a085 !default;
12
- $foe-light: #7ae1bd !default;
13
- $foe-secondary: $foe-light !default;
14
- $foe-dark: #3b867f !default;
15
- // $foe-extradark: #232f4a !default;
16
- $foe-extradark: #a01fed !default;
17
- $foe-sunset: #ea5c5c !default;
18
-
19
- $foe-white: #f3f3f7 !default;
11
+ $foe-leaf: #61bdaa !default;
12
+ $foe-iris: #5a54a0 !default;
13
+ $foe-sunset: #ed6132 !default;
14
+ $foe-space: #1e234d !default;
15
+ $foe-ice: #f3f3f7 !default;
16
+ $foe-conch: #f1e2d4 !default;
17
+
18
+ // Tints, would prefer to do this algorithmically but it's useful to have the hex codes on hand to compare with figmas
19
+ $foe-leaf-75: #81cabb !default;
20
+ $foe-leaf-50: #c0e5dd !default;
21
+ $foe-leaf-25: #dff2ee !default;
22
+ $foe-sunset-75: #f1815b !default;
23
+ $foe-sunset-50: #f6b099 !default;
24
+ $foe-sunset-25: #fbdfd6 !default;
25
+ $foe-iris-75: #6d68a7 !default;
26
+ $foe-iris-50: #adaad0 !default;
27
+ $foe-iris-25: #deddec !default;
28
+
29
+ $foe-primary: $foe-leaf !default;
30
+ $foe-light: $foe-leaf-25 !default;
31
+ $foe-secondary: $foe-light !default;
32
+ $foe-dark: $foe-iris !default;
33
+ $foe-extradark: $foe-space !default;
34
+
35
+ $foe-white: #fff !default;
20
36
  $foe-gray: #b1b8c0 !default;
21
- $foe-accent: #34da96 !default;
22
- $foe-offwhite: #f3f3f7 !default;
37
+ $foe-accent: $foe-iris !default;
38
+ $foe-offwhite: $foe-ice !default;
23
39
 
24
40
  $foe-success: #5cb85c !default;
25
41
  $foe-info: #5bc0de !default;
26
42
  $foe-warning: #f0ad4e !default;
27
43
  $foe-danger: #d9534f !default;
28
44
 
29
- $foe-text: #6b6b6f !default;
45
+ $foe-text: $foe-extradark !default;
30
46
 
31
- $foe-donate: #ea4848 !default;
32
- $foe-donate-text: $foe-offwhite !default;
47
+ $foe-donate: $foe-iris !default;
48
+ $foe-donate-text: $foe-ice !default;
33
49
 
34
50
  $foe-join: #ffef1e !default;
35
51
  $foe-join-text: $foe-text !default;
@@ -51,6 +67,11 @@ $foe-nav-shadow: 0 0 .5em .2em rgba(0, 0, 0, .25);
51
67
 
52
68
  $foe-text-shadow: 0 0 .5rem $foe-tint-overlay-heavy !default;
53
69
 
70
+ $foe-backgrounds:
71
+ $foe-leaf-50,
72
+ $foe-sunset-50,
73
+ $foe-iris-50;
74
+
54
75
  //
55
76
  // Palettes vars, needed for Campaignion (mostly) maybe also D8
56
77
  //
@@ -219,11 +240,11 @@ $theme-colors: map-merge(
219
240
  $theme-color-interval: 8%;
220
241
 
221
242
  // The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
222
- $yiq-contrasted-threshold: 150;
243
+ $yiq-contrasted-threshold: 142; // this works for a hover cover for text-dark over leaf - any higher and it uses text-light.
223
244
 
224
245
  // Customize the light and dark text colors for use in our YIQ color contrast function.
225
- $yiq-text-dark: $gray-900;
226
- $yiq-text-light: $white;
246
+ $yiq-text-dark: $foe-extradark;
247
+ $yiq-text-light: $foe-offwhite;
227
248
 
228
249
  // Options
229
250
  //
@@ -288,8 +309,8 @@ $body-color: $foe-text;
288
309
  //
289
310
  // Style anchor elements.
290
311
 
291
- $link-color: theme-color("primary");
292
- $link-decoration: none;
312
+ $link-color: theme-color("accent");
313
+ $link-decoration: underline;
293
314
  $link-hover-color: darken($link-color, 15%);
294
315
  $link-hover-decoration: underline;
295
316
 
@@ -391,7 +412,7 @@ $line-height-sm: 1.5;
391
412
  $border-width: 1px;
392
413
  $border-color: $gray-300;
393
414
 
394
- $border-radius: .1rem * 3;
415
+ $border-radius: 0; // .1rem * 3;
395
416
  $border-radius-lg: .1rem * 4;
396
417
  $border-radius-sm: .1rem * 2;
397
418
 
@@ -399,8 +420,8 @@ $box-shadow-sm: 0 .125rem .25rem rgba($black, .075);
399
420
  $box-shadow: 0 .5rem 1rem rgba($black, .15);
400
421
  $box-shadow-lg: 0 1rem 3rem rgba($black, .175);
401
422
 
402
- $component-active-color: $gray-900;
403
- $component-active-bg: theme-color("accent");
423
+ $component-active-color: $foe-extradark;
424
+ $component-active-bg: theme-color("primary");
404
425
 
405
426
  $caret-width: .3em;
406
427
 
@@ -408,6 +429,12 @@ $transition-base: all .2s ease-in-out;
408
429
  $transition-fade: opacity .15s linear;
409
430
  $transition-collapse: height .35s ease;
410
431
 
432
+ $foe-element-default-focus-width: .125rem;
433
+ $foe-element-default-focus-color: $black;
434
+
435
+ $foe-element-default-outline: .125rem solid $white;
436
+ $foe-element-default-outline-offset: .125rem;
437
+
411
438
 
412
439
  // Fonts
413
440
  //
@@ -422,7 +449,8 @@ $font-family-base: $font-family-sans-serif;
422
449
 
423
450
  $font-size-base: 1rem; // Assumes the browser default, typically `16px`
424
451
  $font-size-lg: ($font-size-base * 1.25);
425
- $font-size-sm: ($font-size-base * .7);
452
+ // #13222 increase small text to just above 12px as per footer design https://www.figma.com/design/gimnDUG8AGkZdwuLTSGdkK/Design-system-%E2%80%93-Meg?node-id=197-22&t=bFuYz1SRqubH1qkg-0
453
+ $font-size-sm: ($font-size-base * .8);
426
454
 
427
455
  $font-weight-light: 300;
428
456
  $font-weight-normal: 400;
@@ -432,9 +460,9 @@ $font-weight-heavy: 700;
432
460
  $font-weight-base: $font-weight-normal;
433
461
  $line-height-base: 1.5;
434
462
 
435
- $h1-font-size: calc(56 / 16) * $font-size-base;
436
- $h2-font-size: calc(44 / 16) * $font-size-base;
437
- $h3-font-size: calc(34 / 16) * $font-size-base;
463
+ $h1-font-size: calc(60 / 16) * $font-size-base;
464
+ $h2-font-size: calc(40 / 16) * $font-size-base;
465
+ $h3-font-size: calc(32 / 16) * $font-size-base;
438
466
  $h4-font-size: calc(26 / 16) * $font-size-base;
439
467
  $h5-font-size: calc(20 / 16) * $font-size-base;
440
468
  $h6-font-size: calc(16 / 16) * $font-size-base;
@@ -450,23 +478,23 @@ $headings-map: (
450
478
 
451
479
  $headings-margin-bottom: calc($spacer / 2);
452
480
  $headings-font-family: inherit;
453
- $headings-font-weight: 600;
481
+ $headings-font-weight: 900;
454
482
  $headings-line-height: 1.2;
455
- $headings-color: $foe-primary;
483
+ $headings-color: $foe-accent;
456
484
 
457
485
  $display1-size: calc(60 / 16) * $font-size-base;
458
486
  $display2-size: calc(60 / 16) * $font-size-base;
459
487
  $display3-size: 4.5rem;
460
488
  $display4-size: 3.5rem;
461
489
 
462
- $display1-weight: 600;
490
+ $display1-weight: 900;
463
491
  $display2-weight: 300;
464
492
  $display3-weight: 300;
465
493
  $display4-weight: 300;
466
494
  $display-line-height: $headings-line-height;
467
495
 
468
- $lead-font-size: ($font-size-base * 1.25);
469
- $lead-font-weight: 300;
496
+ $lead-font-size: $font-size-base;
497
+ $lead-font-weight: bold;
470
498
 
471
499
  $small-font-size: 80%;
472
500
 
@@ -528,9 +556,9 @@ $input-btn-padding-y: .5rem;
528
556
  $input-btn-padding-x: .75rem;
529
557
  $input-btn-line-height: $line-height-base;
530
558
 
531
- $input-btn-focus-width: .2rem;
532
- $input-btn-focus-color: rgba($component-active-bg, .75);
533
- $input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color;
559
+ $input-btn-focus-width: $foe-element-default-focus-width;
560
+ $input-btn-focus-color: $foe-element-default-focus-color;
561
+ $input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !important; //to override bootstrap default in button-variant mixin
534
562
 
535
563
  $input-btn-padding-y-sm: .25rem;
536
564
  $input-btn-padding-x-sm: .5rem;