@daffodil/design 0.39.8 → 0.39.12

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 (131) hide show
  1. package/atoms/button/button.component.d.ts +5 -0
  2. package/bundles/daffodil-design-card-examples.umd.js +152 -14
  3. package/bundles/daffodil-design-card-examples.umd.js.map +1 -1
  4. package/bundles/daffodil-design-card-examples.umd.min.js +1 -1
  5. package/bundles/daffodil-design-card-examples.umd.min.js.map +1 -1
  6. package/bundles/daffodil-design-container-examples.umd.js +65 -0
  7. package/bundles/daffodil-design-container-examples.umd.js.map +1 -0
  8. package/bundles/daffodil-design-container-examples.umd.min.js +2 -0
  9. package/bundles/daffodil-design-container-examples.umd.min.js.map +1 -0
  10. package/bundles/daffodil-design-navbar-examples.umd.js +177 -0
  11. package/bundles/daffodil-design-navbar-examples.umd.js.map +1 -0
  12. package/bundles/daffodil-design-navbar-examples.umd.min.js +2 -0
  13. package/bundles/daffodil-design-navbar-examples.umd.min.js.map +1 -0
  14. package/bundles/daffodil-design.umd.js +300 -51
  15. package/bundles/daffodil-design.umd.js.map +1 -1
  16. package/bundles/daffodil-design.umd.min.js +2 -2
  17. package/bundles/daffodil-design.umd.min.js.map +1 -1
  18. package/card/examples/basic-card/basic-card.component.d.ts +1 -0
  19. package/card/examples/card-orientation/card-orientation.component.d.ts +9 -0
  20. package/card/examples/card-orientation/card-orientation.module.d.ts +2 -0
  21. package/card/examples/card-theming/card-theming.component.d.ts +4 -2
  22. package/card/examples/daffodil-design-card-examples.d.ts +2 -0
  23. package/card/examples/daffodil-design-card-examples.metadata.json +1 -1
  24. package/card/examples/linkable-card/linkable-card.component.d.ts +8 -0
  25. package/card/examples/public_api.d.ts +5 -1
  26. package/card/examples/raised-card/raised-card.component.d.ts +6 -0
  27. package/card/examples/stroked-card/stroked-card.component.d.ts +8 -0
  28. package/card/examples/stroked-card/stroked-card.module.d.ts +2 -0
  29. package/container/examples/container-sizes/container-sizes.component.d.ts +8 -0
  30. package/container/examples/container-sizes/container-sizes.module.d.ts +2 -0
  31. package/container/examples/daffodil-design-container-examples.d.ts +4 -0
  32. package/container/examples/daffodil-design-container-examples.metadata.json +1 -0
  33. package/container/examples/examples.d.ts +2 -0
  34. package/container/examples/index.d.ts +1 -0
  35. package/container/examples/package.json +11 -0
  36. package/container/examples/public_api.d.ts +3 -0
  37. package/core/article-encapsulated/article-encapsulated-mixin.d.ts +15 -0
  38. package/core/article-encapsulated/public_api.d.ts +1 -0
  39. package/core/manage-container-layout/manage-container-layout-mixin.d.ts +17 -0
  40. package/core/manage-container-layout/public_api.d.ts +1 -0
  41. package/core/public_api.d.ts +2 -0
  42. package/daff-theme.scss +278 -129
  43. package/daffodil-design.metadata.json +1 -1
  44. package/esm2015/atoms/button/button.component.js +3 -2
  45. package/esm2015/atoms/container/container.component.js +1 -1
  46. package/esm2015/atoms/image/image.component.js +2 -2
  47. package/esm2015/card/examples/basic-card/basic-card.component.js +7 -3
  48. package/esm2015/card/examples/basic-card/basic-card.module.js +3 -1
  49. package/esm2015/card/examples/card-orientation/card-orientation.component.js +24 -0
  50. package/esm2015/card/examples/card-orientation/card-orientation.module.js +27 -0
  51. package/esm2015/card/examples/card-theming/card-theming.component.js +13 -4
  52. package/esm2015/card/examples/daffodil-design-card-examples.js +3 -1
  53. package/esm2015/card/examples/linkable-card/linkable-card.component.js +19 -3
  54. package/esm2015/card/examples/linkable-card/linkable-card.module.js +3 -1
  55. package/esm2015/card/examples/public_api.js +7 -1
  56. package/esm2015/card/examples/raised-card/raised-card.component.js +17 -3
  57. package/esm2015/card/examples/raised-card/raised-card.module.js +3 -3
  58. package/esm2015/card/examples/stroked-card/stroked-card.component.js +27 -0
  59. package/esm2015/card/examples/stroked-card/stroked-card.module.js +27 -0
  60. package/esm2015/container/examples/container-sizes/container-sizes.component.js +23 -0
  61. package/esm2015/container/examples/container-sizes/container-sizes.module.js +23 -0
  62. package/esm2015/container/examples/daffodil-design-container-examples.js +5 -0
  63. package/esm2015/container/examples/examples.js +5 -0
  64. package/esm2015/container/examples/index.js +2 -0
  65. package/esm2015/container/examples/public_api.js +4 -0
  66. package/esm2015/core/article-encapsulated/article-encapsulated-mixin.js +12 -0
  67. package/esm2015/core/article-encapsulated/public_api.js +2 -0
  68. package/esm2015/core/manage-container-layout/manage-container-layout-mixin.js +14 -0
  69. package/esm2015/core/manage-container-layout/public_api.js +2 -0
  70. package/esm2015/core/public_api.js +3 -1
  71. package/esm2015/molecules/accordion/accordion/accordion.component.js +24 -3
  72. package/esm2015/molecules/article/article/article.component.js +1 -1
  73. package/esm2015/molecules/callout/callout/callout.component.js +5 -3
  74. package/esm2015/molecules/card/card/card.component.js +78 -15
  75. package/esm2015/molecules/card/card-content/card-content.directive.js +18 -0
  76. package/esm2015/molecules/card/card-icon/card-icon.directive.js +18 -0
  77. package/esm2015/molecules/card/card.module.js +9 -3
  78. package/esm2015/molecules/card/public_api.js +4 -2
  79. package/esm2015/molecules/feature/feature/feature.component.js +4 -1
  80. package/esm2015/molecules/hero/hero/hero.component.js +6 -4
  81. package/esm2015/molecules/link-set/link-set/link-set.component.js +23 -4
  82. package/esm2015/molecules/list/list/list.component.js +19 -5
  83. package/esm2015/molecules/media-gallery/media-gallery.component.js +20 -4
  84. package/esm2015/molecules/navbar/navbar.component.js +11 -9
  85. package/esm2015/navbar/examples/basic-navbar/basic-navbar.component.js +13 -0
  86. package/esm2015/navbar/examples/basic-navbar/basic-navbar.module.js +20 -0
  87. package/esm2015/navbar/examples/contained-navbar/contained-navbar.component.js +13 -0
  88. package/esm2015/navbar/examples/contained-navbar/contained-navbar.module.js +20 -0
  89. package/esm2015/navbar/examples/daffodil-design-navbar-examples.js +5 -0
  90. package/esm2015/navbar/examples/examples.js +11 -0
  91. package/esm2015/navbar/examples/index.js +2 -0
  92. package/esm2015/navbar/examples/navbar-theming/navbar-theming.component.js +27 -0
  93. package/esm2015/navbar/examples/navbar-theming/navbar-theming.module.js +21 -0
  94. package/esm2015/navbar/examples/public_api.js +10 -0
  95. package/esm2015/navbar/examples/raised-navbar/raised-navbar.component.js +13 -0
  96. package/esm2015/navbar/examples/raised-navbar/raised-navbar.module.js +19 -0
  97. package/fesm2015/daffodil-design-card-examples.js +145 -11
  98. package/fesm2015/daffodil-design-card-examples.js.map +1 -1
  99. package/fesm2015/daffodil-design-container-examples.js +54 -0
  100. package/fesm2015/daffodil-design-container-examples.js.map +1 -0
  101. package/fesm2015/daffodil-design-navbar-examples.js +142 -0
  102. package/fesm2015/daffodil-design-navbar-examples.js.map +1 -0
  103. package/fesm2015/daffodil-design.js +238 -42
  104. package/fesm2015/daffodil-design.js.map +1 -1
  105. package/molecules/accordion/accordion/accordion.component.d.ts +20 -1
  106. package/molecules/callout/callout/callout.component.d.ts +10 -0
  107. package/molecules/card/card/card.component.d.ts +42 -11
  108. package/molecules/card/card-content/card-content.directive.d.ts +6 -0
  109. package/molecules/card/card-icon/card-icon.directive.d.ts +6 -0
  110. package/molecules/card/public_api.d.ts +3 -1
  111. package/molecules/feature/feature/feature.component.d.ts +3 -0
  112. package/molecules/hero/hero/hero.component.d.ts +11 -1
  113. package/molecules/link-set/link-set/link-set.component.d.ts +20 -1
  114. package/molecules/list/list/list.component.d.ts +19 -3
  115. package/molecules/media-gallery/media-gallery.component.d.ts +20 -3
  116. package/molecules/navbar/navbar.component.d.ts +10 -5
  117. package/navbar/examples/basic-navbar/basic-navbar.component.d.ts +2 -0
  118. package/navbar/examples/basic-navbar/basic-navbar.module.d.ts +2 -0
  119. package/navbar/examples/contained-navbar/contained-navbar.component.d.ts +2 -0
  120. package/navbar/examples/contained-navbar/contained-navbar.module.d.ts +2 -0
  121. package/navbar/examples/daffodil-design-navbar-examples.d.ts +4 -0
  122. package/navbar/examples/daffodil-design-navbar-examples.metadata.json +1 -0
  123. package/navbar/examples/examples.d.ts +2 -0
  124. package/navbar/examples/index.d.ts +1 -0
  125. package/navbar/examples/navbar-theming/navbar-theming.component.d.ts +8 -0
  126. package/navbar/examples/navbar-theming/navbar-theming.module.d.ts +2 -0
  127. package/navbar/examples/package.json +11 -0
  128. package/navbar/examples/public_api.d.ts +9 -0
  129. package/navbar/examples/raised-navbar/raised-navbar.component.d.ts +2 -0
  130. package/navbar/examples/raised-navbar/raised-navbar.module.d.ts +2 -0
  131. package/package.json +2 -2
package/daff-theme.scss CHANGED
@@ -178,31 +178,31 @@ $error: #dd0000;
178
178
  // 50 apart passes AA level for any size text (except for 10/60)
179
179
 
180
180
  $daff-blue: (
181
- 10: #f1f3fc,
182
- 20: #e4e7fa,
183
- 30: #bec7f7,
184
- 40: #95a6f7,
185
- 50: #6e89fa,
181
+ 10: #ebf1ff,
182
+ 20: #c4d8ff,
183
+ 30: #9dbeff,
184
+ 40: #79a7ff,
185
+ 50: #548fff,
186
186
  60: #1f66ff,
187
- 70: #174fc9,
188
- 80: #183b93,
189
- 90: #132a68,
190
- 100: #0d1b45
187
+ 70: #093cf3,
188
+ 80: #001bcb,
189
+ 90: #00098a,
190
+ 100: #000033
191
191
  );
192
192
 
193
193
  $daff-primary: $daff-blue;
194
194
 
195
195
  $daff-purple: (
196
- 10: #f3f2fc,
197
- 20: #e7e6fa,
198
- 30: #c7c4f7,
199
- 40: #a7a1f7,
200
- 50: #8e84fa,
196
+ 10: #ebebff,
197
+ 20: #d4d3ff,
198
+ 30: #b7b4ff,
199
+ 40: #a19bff,
200
+ 50: #8b82ff,
201
201
  60: #6a57ff,
202
- 70: #4d2df3,
203
- 80: #391dbe,
204
- 90: #281885,
205
- 100: #191057
202
+ 70: #5631f3,
203
+ 80: #3c13bd,
204
+ 90: #2c068a,
205
+ 100: #110033
206
206
  );
207
207
 
208
208
  $daff-accent: $daff-purple;
@@ -247,8 +247,8 @@ $daff-red: (
247
247
  );
248
248
 
249
249
  $daff-bronze: (
250
- 10: #fbf2ec,
251
- 20: #f7e1d3,
250
+ 10: #fcf2eb,
251
+ 20: #f7dac6,
252
252
  30: #f2c093,
253
253
  40: #e49d40,
254
254
  50: #d2801a,
@@ -260,14 +260,14 @@ $daff-bronze: (
260
260
  );
261
261
 
262
262
  $daff-green: (
263
- 10: #dafcde,
264
- 20: #a9fbb5,
265
- 30: #4ee56e,
266
- 40: #35c457,
267
- 50: #1da943,
263
+ 10: #c4ffcc,
264
+ 20: #6aff86,
265
+ 30: #00db57,
266
+ 40: #13c049,
267
+ 50: #00aa3c,
268
268
  60: #00852e,
269
- 70: #0e6726,
270
- 80: #0f4c1e,
269
+ 70: #006b23,
270
+ 80: #004b17,
271
271
  90: #0c3515,
272
272
  100: #07230d,
273
273
  );
@@ -1215,31 +1215,31 @@ $error: #dd0000;
1215
1215
  // 50 apart passes AA level for any size text (except for 10/60)
1216
1216
 
1217
1217
  $daff-blue: (
1218
- 10: #f1f3fc,
1219
- 20: #e4e7fa,
1220
- 30: #bec7f7,
1221
- 40: #95a6f7,
1222
- 50: #6e89fa,
1218
+ 10: #ebf1ff,
1219
+ 20: #c4d8ff,
1220
+ 30: #9dbeff,
1221
+ 40: #79a7ff,
1222
+ 50: #548fff,
1223
1223
  60: #1f66ff,
1224
- 70: #174fc9,
1225
- 80: #183b93,
1226
- 90: #132a68,
1227
- 100: #0d1b45
1224
+ 70: #093cf3,
1225
+ 80: #001bcb,
1226
+ 90: #00098a,
1227
+ 100: #000033
1228
1228
  );
1229
1229
 
1230
1230
  $daff-primary: $daff-blue;
1231
1231
 
1232
1232
  $daff-purple: (
1233
- 10: #f3f2fc,
1234
- 20: #e7e6fa,
1235
- 30: #c7c4f7,
1236
- 40: #a7a1f7,
1237
- 50: #8e84fa,
1233
+ 10: #ebebff,
1234
+ 20: #d4d3ff,
1235
+ 30: #b7b4ff,
1236
+ 40: #a19bff,
1237
+ 50: #8b82ff,
1238
1238
  60: #6a57ff,
1239
- 70: #4d2df3,
1240
- 80: #391dbe,
1241
- 90: #281885,
1242
- 100: #191057
1239
+ 70: #5631f3,
1240
+ 80: #3c13bd,
1241
+ 90: #2c068a,
1242
+ 100: #110033
1243
1243
  );
1244
1244
 
1245
1245
  $daff-accent: $daff-purple;
@@ -1284,8 +1284,8 @@ $daff-red: (
1284
1284
  );
1285
1285
 
1286
1286
  $daff-bronze: (
1287
- 10: #fbf2ec,
1288
- 20: #f7e1d3,
1287
+ 10: #fcf2eb,
1288
+ 20: #f7dac6,
1289
1289
  30: #f2c093,
1290
1290
  40: #e49d40,
1291
1291
  50: #d2801a,
@@ -1297,14 +1297,14 @@ $daff-bronze: (
1297
1297
  );
1298
1298
 
1299
1299
  $daff-green: (
1300
- 10: #dafcde,
1301
- 20: #a9fbb5,
1302
- 30: #4ee56e,
1303
- 40: #35c457,
1304
- 50: #1da943,
1300
+ 10: #c4ffcc,
1301
+ 20: #6aff86,
1302
+ 30: #00db57,
1303
+ 40: #13c049,
1304
+ 50: #00aa3c,
1305
1305
  60: #00852e,
1306
- 70: #0e6726,
1307
- 80: #0f4c1e,
1306
+ 70: #006b23,
1307
+ 80: #004b17,
1308
1308
  90: #0c3515,
1309
1309
  100: #07230d,
1310
1310
  );
@@ -1850,31 +1850,31 @@ $error: #dd0000;
1850
1850
  // 50 apart passes AA level for any size text (except for 10/60)
1851
1851
 
1852
1852
  $daff-blue: (
1853
- 10: #f1f3fc,
1854
- 20: #e4e7fa,
1855
- 30: #bec7f7,
1856
- 40: #95a6f7,
1857
- 50: #6e89fa,
1853
+ 10: #ebf1ff,
1854
+ 20: #c4d8ff,
1855
+ 30: #9dbeff,
1856
+ 40: #79a7ff,
1857
+ 50: #548fff,
1858
1858
  60: #1f66ff,
1859
- 70: #174fc9,
1860
- 80: #183b93,
1861
- 90: #132a68,
1862
- 100: #0d1b45
1859
+ 70: #093cf3,
1860
+ 80: #001bcb,
1861
+ 90: #00098a,
1862
+ 100: #000033
1863
1863
  );
1864
1864
 
1865
1865
  $daff-primary: $daff-blue;
1866
1866
 
1867
1867
  $daff-purple: (
1868
- 10: #f3f2fc,
1869
- 20: #e7e6fa,
1870
- 30: #c7c4f7,
1871
- 40: #a7a1f7,
1872
- 50: #8e84fa,
1868
+ 10: #ebebff,
1869
+ 20: #d4d3ff,
1870
+ 30: #b7b4ff,
1871
+ 40: #a19bff,
1872
+ 50: #8b82ff,
1873
1873
  60: #6a57ff,
1874
- 70: #4d2df3,
1875
- 80: #391dbe,
1876
- 90: #281885,
1877
- 100: #191057
1874
+ 70: #5631f3,
1875
+ 80: #3c13bd,
1876
+ 90: #2c068a,
1877
+ 100: #110033
1878
1878
  );
1879
1879
 
1880
1880
  $daff-accent: $daff-purple;
@@ -1919,8 +1919,8 @@ $daff-red: (
1919
1919
  );
1920
1920
 
1921
1921
  $daff-bronze: (
1922
- 10: #fbf2ec,
1923
- 20: #f7e1d3,
1922
+ 10: #fcf2eb,
1923
+ 20: #f7dac6,
1924
1924
  30: #f2c093,
1925
1925
  40: #e49d40,
1926
1926
  50: #d2801a,
@@ -1932,14 +1932,14 @@ $daff-bronze: (
1932
1932
  );
1933
1933
 
1934
1934
  $daff-green: (
1935
- 10: #dafcde,
1936
- 20: #a9fbb5,
1937
- 30: #4ee56e,
1938
- 40: #35c457,
1939
- 50: #1da943,
1935
+ 10: #c4ffcc,
1936
+ 20: #6aff86,
1937
+ 30: #00db57,
1938
+ 40: #13c049,
1939
+ 50: #00aa3c,
1940
1940
  60: #00852e,
1941
- 70: #0e6726,
1942
- 80: #0f4c1e,
1941
+ 70: #006b23,
1942
+ 80: #004b17,
1943
1943
  90: #0c3515,
1944
1944
  100: #07230d,
1945
1945
  );
@@ -2537,7 +2537,7 @@ $supported-theme-types: (
2537
2537
  &.daff-theme-contrast {
2538
2538
  @include daff-icon-button-theme-variant(
2539
2539
  $base-contrast,
2540
- daff-illuminate($base-contrast, $daff-gray, 1)
2540
+ daff-illuminate($base-contrast, $daff-gray, 1),
2541
2541
  daff-illuminate($base-contrast, $daff-gray, 2)
2542
2542
  );
2543
2543
  }
@@ -2981,6 +2981,15 @@ $supported-theme-types: (
2981
2981
  }
2982
2982
  }
2983
2983
 
2984
+ @mixin stopsArticleCascade($selector...) {
2985
+ #{$selector} {
2986
+ &:not(.daff-ae *, .daff-ae) {
2987
+ @content;
2988
+ }
2989
+ }
2990
+ }
2991
+
2992
+
2984
2993
  @mixin daff-article-theme($theme) {
2985
2994
  $primary: map-get($theme, primary);
2986
2995
  $secondary: map-get($theme, secondary);
@@ -2999,22 +3008,15 @@ $supported-theme-types: (
2999
3008
  color: daff-illuminate($base-contrast, $gray, 3);
3000
3009
  }
3001
3010
 
3002
- a {
3011
+ @include stopsArticleCascade(a) {
3003
3012
  color: daff-color($primary);
3004
3013
  }
3005
3014
 
3006
- > {
3007
- h1,
3008
- h2,
3009
- h3,
3010
- h4,
3011
- h5,
3012
- h6 {
3013
- color: $text-color;
3014
- }
3015
+ @include stopsArticleCascade(h1, h2, h3, h4, h5, h6) {
3016
+ color: $text-color;
3015
3017
  }
3016
3018
 
3017
- > p {
3019
+ @include stopsArticleCascade(p) {
3018
3020
  color: $text-color;
3019
3021
  }
3020
3022
 
@@ -3103,6 +3105,38 @@ $supported-theme-types: (
3103
3105
  }
3104
3106
  }
3105
3107
 
3108
+ @mixin daff-basic-card-theme-variant($color) {
3109
+ background: $color;
3110
+ color: daff-text-contrast($color);
3111
+ }
3112
+
3113
+ @mixin daff-linkable-basic-card-theme-variant(
3114
+ $hover-color,
3115
+ $active-color,
3116
+ $shadow-color
3117
+ ) {
3118
+ &:hover,
3119
+ &:focus {
3120
+ background: $hover-color;
3121
+ color: daff-text-contrast($hover-color);
3122
+ }
3123
+
3124
+ &:focus {
3125
+ outline: none;
3126
+ box-shadow: 0 0 0 4px rgba($shadow-color, 0.3);
3127
+ }
3128
+
3129
+ &:active {
3130
+ background: $active-color;
3131
+ color: daff-text-contrast($active-color);
3132
+ }
3133
+ }
3134
+
3135
+ @mixin daff-stroked-card-theme-variant($color) {
3136
+ border: 1px solid $color;
3137
+ }
3138
+
3139
+
3106
3140
  @mixin daff-card-theme($theme) {
3107
3141
  $primary: map-get($theme, primary);
3108
3142
  $secondary: map-get($theme, secondary);
@@ -3111,49 +3145,164 @@ $supported-theme-types: (
3111
3145
  $base-contrast: daff-map-deep-get($theme, 'core.base-contrast');
3112
3146
  $white: daff-map-deep-get($theme, 'core.white');
3113
3147
  $black: daff-map-deep-get($theme, 'core.black');
3148
+ $gray: daff-configure-palette($daff-gray, 60);
3114
3149
 
3115
3150
  .daff-card {
3116
3151
  $root: &;
3117
- background: daff-illuminate($base, $daff-gray, 1);
3118
- color: daff-text-contrast(daff-illuminate($base, $daff-gray, 1));
3152
+ @include daff-basic-card-theme-variant(
3153
+ daff-illuminate($base, $daff-gray, 1)
3154
+ );
3119
3155
 
3120
- &--raised {
3121
- box-shadow: 0 14px 28px 0 rgba($black, 0.12), 0 4px 12px rgba($black, 0.06);
3156
+ &.daff-primary {
3157
+ @include daff-basic-card-theme-variant(daff-color($primary));
3158
+ }
3159
+
3160
+ &.daff-secondary {
3161
+ @include daff-basic-card-theme-variant(daff-color($secondary));
3162
+ }
3163
+
3164
+ &.daff-tertiary {
3165
+ @include daff-basic-card-theme-variant(daff-color($tertiary));
3166
+ }
3167
+
3168
+ &.daff-theme {
3169
+ @include daff-basic-card-theme-variant($base);
3170
+ }
3171
+
3172
+ &.daff-theme-contrast {
3173
+ @include daff-basic-card-theme-variant($base-contrast);
3174
+ }
3175
+
3176
+ &.daff-black {
3177
+ @include daff-basic-card-theme-variant($black);
3178
+ }
3179
+
3180
+ &.daff-white {
3181
+ @include daff-basic-card-theme-variant($white);
3122
3182
  }
3183
+ }
3184
+
3185
+ .daff-raised-card {
3186
+ box-shadow: 0 6px 12px -4px rgba($black, 0.12),
3187
+ 0 4px 8px -2px rgba($black, 0.06);
3188
+ }
3189
+
3190
+ .daff-stroked-card {
3191
+ @include daff-stroked-card-theme-variant(
3192
+ daff-illuminate($base, $daff-gray, 2)
3193
+ );
3123
3194
 
3124
3195
  &.daff-primary {
3125
- background: daff-color($primary);
3126
- color: daff-text-contrast(daff-color($primary));
3196
+ @include daff-stroked-card-theme-variant(
3197
+ daff-illuminate($base-contrast, $primary, 3)
3198
+ );
3127
3199
  }
3128
3200
 
3129
3201
  &.daff-secondary {
3130
- background: daff-color($secondary);
3131
- color: daff-text-contrast(daff-color($secondary));
3202
+ @include daff-stroked-card-theme-variant(
3203
+ daff-illuminate($base-contrast, $secondary, 3)
3204
+ );
3132
3205
  }
3133
3206
 
3134
3207
  &.daff-tertiary {
3135
- background: daff-color($tertiary);
3136
- color: daff-text-contrast(daff-color($tertiary));
3208
+ @include daff-stroked-card-theme-variant(
3209
+ daff-illuminate($base-contrast, $tertiary, 3)
3210
+ );
3137
3211
  }
3138
3212
 
3139
3213
  &.daff-theme {
3140
- background: $base;
3141
- color: daff-text-contrast($base);
3214
+ @include daff-stroked-card-theme-variant(
3215
+ daff-illuminate($base, $daff-gray, 2)
3216
+ );
3142
3217
  }
3143
3218
 
3144
3219
  &.daff-theme-contrast {
3145
- background: $base-contrast;
3146
- color: daff-text-contrast($base-contrast);
3220
+ @include daff-stroked-card-theme-variant(
3221
+ daff-illuminate($base-contrast, $daff-gray, 2)
3222
+ );
3147
3223
  }
3148
3224
 
3149
3225
  &.daff-black {
3150
- background: $black;
3151
- color: daff-text-contrast($black);
3226
+ @include daff-stroked-card-theme-variant(daff-color($gray, 90));
3152
3227
  }
3153
3228
 
3154
3229
  &.daff-white {
3155
- background: $white;
3156
- color: daff-text-contrast($white);
3230
+ @include daff-stroked-card-theme-variant(daff-color($gray, 20));
3231
+ }
3232
+ }
3233
+
3234
+ a {
3235
+ &.daff-card {
3236
+ @include daff-linkable-basic-card-theme-variant(
3237
+ daff-illuminate($base, $daff-gray, 2),
3238
+ daff-illuminate($base, $daff-gray, 3),
3239
+ daff-color($gray)
3240
+ );
3241
+
3242
+ &.daff-primary {
3243
+ @include daff-linkable-basic-card-theme-variant(
3244
+ daff-color($primary, 70),
3245
+ daff-color($primary, 80),
3246
+ daff-color($primary)
3247
+ );
3248
+ }
3249
+
3250
+ &.daff-secondary {
3251
+ @include daff-linkable-basic-card-theme-variant(
3252
+ daff-color($secondary, 70),
3253
+ daff-color($secondary, 80),
3254
+ daff-color($secondary)
3255
+ );
3256
+ }
3257
+
3258
+ &.daff-tertiary {
3259
+ @include daff-linkable-basic-card-theme-variant(
3260
+ daff-color($tertiary, 70),
3261
+ daff-color($tertiary, 80),
3262
+ daff-color($tertiary)
3263
+ );
3264
+ }
3265
+
3266
+ &.daff-theme {
3267
+ @include daff-linkable-basic-card-theme-variant(
3268
+ daff-illuminate($base, $daff-gray, 1),
3269
+ daff-illuminate($base, $daff-gray, 2),
3270
+ daff-color($gray)
3271
+ );
3272
+ }
3273
+
3274
+ &.daff-theme-contrast {
3275
+ @include daff-linkable-basic-card-theme-variant(
3276
+ daff-illuminate($base-contrast, $daff-gray, 1),
3277
+ daff-illuminate($base-contrast, $daff-gray, 2),
3278
+ daff-color($gray)
3279
+ );
3280
+ }
3281
+
3282
+ &.daff-black {
3283
+ @include daff-linkable-basic-card-theme-variant(
3284
+ daff-color($gray, 100),
3285
+ daff-color($gray, 90),
3286
+ daff-color($gray)
3287
+ );
3288
+ }
3289
+
3290
+ &.daff-white {
3291
+ @include daff-linkable-basic-card-theme-variant(
3292
+ daff-color($gray, 10),
3293
+ daff-color($gray, 20),
3294
+ daff-color($gray)
3295
+ );
3296
+ }
3297
+ }
3298
+
3299
+ &.daff-raised-card {
3300
+ &:hover,
3301
+ &:focus,
3302
+ &:active {
3303
+ box-shadow: 0 16px 32px -4px rgba($black, 0.12),
3304
+ 0 8px 12px -2px rgba($black, 0.06);
3305
+ }
3157
3306
  }
3158
3307
  }
3159
3308
  }
@@ -3301,44 +3450,44 @@ $supported-theme-types: (
3301
3450
  $secondary: map-get($theme, secondary);
3302
3451
  $tertiary: map-get($theme, tertiary);
3303
3452
  $base: daff-map-deep-get($theme, 'core.base');
3453
+ $base-contrast: daff-map-deep-get($theme, 'core.base-contrast');
3304
3454
  $white: daff-map-deep-get($theme, 'core.white');
3305
3455
  $black: daff-map-deep-get($theme, 'core.black');
3456
+ $gray: daff-configure-palette($daff-gray, 60);
3306
3457
 
3307
3458
  .daff-navbar {
3308
- @include daff-navbar-theme-variant($base);
3459
+ @include daff-navbar-theme-variant(daff-illuminate($base, $daff-gray, 1));
3309
3460
 
3310
- &--shadowed {
3311
- box-shadow: 0 3px 10px rgba($black, 0.08);
3461
+ &--raised {
3462
+ box-shadow: 0 4px 10px rgba($black, 0.08);
3312
3463
  }
3313
3464
 
3314
3465
  &.daff-primary {
3315
- @include daff-navbar-theme-variant(
3316
- daff-color($primary)
3317
- );
3466
+ @include daff-navbar-theme-variant(daff-color($primary));
3318
3467
  }
3319
3468
 
3320
3469
  &.daff-secondary {
3321
- @include daff-navbar-theme-variant(
3322
- daff-color($secondary)
3323
- );
3470
+ @include daff-navbar-theme-variant(daff-color($secondary));
3324
3471
  }
3325
3472
 
3326
3473
  &.daff-tertiary {
3327
- @include daff-navbar-theme-variant(
3328
- daff-color($tertiary)
3329
- );
3474
+ @include daff-navbar-theme-variant(daff-color($tertiary));
3330
3475
  }
3331
3476
 
3332
3477
  &.daff-black {
3333
- @include daff-navbar-theme-variant(
3334
- $black
3335
- );
3478
+ @include daff-navbar-theme-variant($black);
3336
3479
  }
3337
3480
 
3338
3481
  &.daff-white {
3339
- @include daff-navbar-theme-variant(
3340
- $white
3341
- );
3482
+ @include daff-navbar-theme-variant($white);
3483
+ }
3484
+
3485
+ &.daff-theme {
3486
+ @include daff-navbar-theme-variant($base);
3487
+ }
3488
+
3489
+ &.daff-theme-contrast {
3490
+ @include daff-navbar-theme-variant($base-contrast);
3342
3491
  }
3343
3492
  }
3344
3493
  }