@carbon/elements 10.55.0 → 11.0.1

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 (169) hide show
  1. package/es/index.js +1 -1
  2. package/lib/index.js +0 -4
  3. package/package.json +12 -13
  4. package/src/__tests__/__snapshots__/PublicAPI-test.js.snap +44 -131
  5. package/src/index.js +0 -1
  6. package/umd/index.js +0 -4
  7. package/scss/colors/colors.scss +0 -12
  8. package/scss/colors/index.scss +0 -12
  9. package/scss/colors/mixins.scss +0 -1456
  10. package/scss/elements.scss +0 -17
  11. package/scss/grid/12.scss +0 -41
  12. package/scss/grid/_inlined/12.scss +0 -41
  13. package/scss/grid/_inlined/_mixins.import.scss +0 -431
  14. package/scss/grid/_inlined/_mixins.scss +0 -415
  15. package/scss/grid/_inlined/_prefix.scss +0 -12
  16. package/scss/grid/_mixins.import.scss +0 -431
  17. package/scss/grid/_mixins.scss +0 -415
  18. package/scss/grid/_prefix.scss +0 -12
  19. package/scss/grid/grid.scss +0 -10
  20. package/scss/grid/index.scss +0 -10
  21. package/scss/grid/modules/_breakpoint.scss +0 -198
  22. package/scss/grid/modules/_config.scss +0 -94
  23. package/scss/grid/modules/_css-grid.scss +0 -470
  24. package/scss/grid/modules/_flex-grid.scss +0 -363
  25. package/scss/grid/modules/_mixins.scss +0 -336
  26. package/scss/grid/vendor/@carbon/import-once/import-once.scss +0 -27
  27. package/scss/grid/vendor/@carbon/import-once/index.scss +0 -8
  28. package/scss/grid/vendor/@carbon/layout/_breakpoint.scss +0 -246
  29. package/scss/grid/vendor/@carbon/layout/_convert.import.scss +0 -65
  30. package/scss/grid/vendor/@carbon/layout/_convert.scss +0 -54
  31. package/scss/grid/vendor/@carbon/layout/_key-height.import.scss +0 -117
  32. package/scss/grid/vendor/@carbon/layout/_key-height.scss +0 -111
  33. package/scss/grid/vendor/@carbon/layout/_mini-unit.scss +0 -23
  34. package/scss/grid/vendor/@carbon/layout/_spacing.scss +0 -12
  35. package/scss/grid/vendor/@carbon/layout/_utilities.scss +0 -41
  36. package/scss/grid/vendor/@carbon/layout/generated/_container.scss +0 -73
  37. package/scss/grid/vendor/@carbon/layout/generated/_fluid-spacing.scss +0 -61
  38. package/scss/grid/vendor/@carbon/layout/generated/_icon-size.scss +0 -34
  39. package/scss/grid/vendor/@carbon/layout/generated/_layout.scss +0 -97
  40. package/scss/grid/vendor/@carbon/layout/generated/_size.scss +0 -17
  41. package/scss/grid/vendor/@carbon/layout/generated/_spacing.scss +0 -169
  42. package/scss/grid/vendor/@carbon/layout/index.scss +0 -8
  43. package/scss/grid/vendor/@carbon/layout/layout.scss +0 -12
  44. package/scss/grid/vendor/@carbon/layout/modules/_convert.scss +0 -51
  45. package/scss/grid/vendor/@carbon/layout/modules/_spacing.scss +0 -9
  46. package/scss/grid/vendor/@carbon/layout/modules/_utilities.scss +0 -41
  47. package/scss/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +0 -37
  48. package/scss/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +0 -91
  49. package/scss/icons/icons.scss +0 -10
  50. package/scss/icons/index.scss +0 -8
  51. package/scss/icons/mixins.scss +0 -18
  52. package/scss/import-once/import-once.scss +0 -27
  53. package/scss/import-once/index.scss +0 -8
  54. package/scss/index.scss +0 -15
  55. package/scss/layout/_breakpoint.scss +0 -246
  56. package/scss/layout/_convert.import.scss +0 -65
  57. package/scss/layout/_convert.scss +0 -54
  58. package/scss/layout/_key-height.import.scss +0 -117
  59. package/scss/layout/_key-height.scss +0 -111
  60. package/scss/layout/_mini-unit.scss +0 -23
  61. package/scss/layout/_spacing.scss +0 -12
  62. package/scss/layout/_utilities.scss +0 -41
  63. package/scss/layout/generated/_container.scss +0 -73
  64. package/scss/layout/generated/_fluid-spacing.scss +0 -61
  65. package/scss/layout/generated/_icon-size.scss +0 -34
  66. package/scss/layout/generated/_layout.scss +0 -97
  67. package/scss/layout/generated/_size.scss +0 -17
  68. package/scss/layout/generated/_spacing.scss +0 -169
  69. package/scss/layout/index.scss +0 -8
  70. package/scss/layout/layout.scss +0 -12
  71. package/scss/layout/modules/_convert.scss +0 -51
  72. package/scss/layout/modules/_spacing.scss +0 -9
  73. package/scss/layout/modules/_utilities.scss +0 -41
  74. package/scss/layout/modules/generated/_fluid-spacing.scss +0 -37
  75. package/scss/layout/modules/generated/_spacing.scss +0 -91
  76. package/scss/motion/index.scss +0 -8
  77. package/scss/motion/motion.scss +0 -78
  78. package/scss/themes/_mixins.scss +0 -39
  79. package/scss/themes/_theme-maps.scss +0 -9
  80. package/scss/themes/_tokens.scss +0 -8
  81. package/scss/themes/compat/_themes.scss +0 -8
  82. package/scss/themes/compat/_tokens.scss +0 -8
  83. package/scss/themes/compat/generated/_themes.scss +0 -271
  84. package/scss/themes/compat/generated/_tokens.scss +0 -206
  85. package/scss/themes/generated/_mixins.scss +0 -3622
  86. package/scss/themes/generated/_themes.scss +0 -2955
  87. package/scss/themes/generated/_tokens.scss +0 -3179
  88. package/scss/themes/index.scss +0 -8
  89. package/scss/themes/modules/_config.scss +0 -11
  90. package/scss/themes/modules/_theme.scss +0 -120
  91. package/scss/themes/modules/_themes.scss +0 -8
  92. package/scss/themes/modules/_tokens.scss +0 -8
  93. package/scss/themes/modules/_utilities.scss +0 -18
  94. package/scss/themes/modules/generated/_themes.scss +0 -432
  95. package/scss/themes/modules/generated/_tokens.scss +0 -308
  96. package/scss/themes/themes.scss +0 -10
  97. package/scss/type/_classes.scss +0 -41
  98. package/scss/type/_font-family.scss +0 -70
  99. package/scss/type/_inlined/_classes.scss +0 -41
  100. package/scss/type/_inlined/_font-family.scss +0 -70
  101. package/scss/type/_inlined/_prefix.scss +0 -11
  102. package/scss/type/_inlined/_reset.scss +0 -90
  103. package/scss/type/_inlined/_scale.scss +0 -59
  104. package/scss/type/_inlined/_styles.import.scss +0 -766
  105. package/scss/type/_inlined/_styles.scss +0 -924
  106. package/scss/type/_inlined/font-face/_mono.scss +0 -1166
  107. package/scss/type/_inlined/font-face/_sans-condensed.scss +0 -1009
  108. package/scss/type/_inlined/font-face/_sans.scss +0 -1326
  109. package/scss/type/_inlined/font-face/_serif.scss +0 -1166
  110. package/scss/type/_inlined/font-face/_settings.scss +0 -12
  111. package/scss/type/_prefix.scss +0 -11
  112. package/scss/type/_reset.scss +0 -90
  113. package/scss/type/_scale.scss +0 -59
  114. package/scss/type/_styles.import.scss +0 -766
  115. package/scss/type/_styles.scss +0 -924
  116. package/scss/type/font-face/_mono.scss +0 -1166
  117. package/scss/type/font-face/_sans-condensed.scss +0 -1009
  118. package/scss/type/font-face/_sans.scss +0 -1326
  119. package/scss/type/font-face/_serif.scss +0 -1166
  120. package/scss/type/font-face/_settings.scss +0 -12
  121. package/scss/type/index.scss +0 -8
  122. package/scss/type/modules/_classes.scss +0 -42
  123. package/scss/type/modules/_default-type.scss +0 -55
  124. package/scss/type/modules/_font-family.scss +0 -104
  125. package/scss/type/modules/_prefix.scss +0 -11
  126. package/scss/type/modules/_reset.scss +0 -44
  127. package/scss/type/modules/_scale.scss +0 -57
  128. package/scss/type/modules/_styles.scss +0 -876
  129. package/scss/type/type.scss +0 -8
  130. package/scss/type/vendor/@carbon/grid/12.scss +0 -41
  131. package/scss/type/vendor/@carbon/grid/_inlined/12.scss +0 -41
  132. package/scss/type/vendor/@carbon/grid/_inlined/_mixins.import.scss +0 -431
  133. package/scss/type/vendor/@carbon/grid/_inlined/_mixins.scss +0 -415
  134. package/scss/type/vendor/@carbon/grid/_inlined/_prefix.scss +0 -12
  135. package/scss/type/vendor/@carbon/grid/_mixins.import.scss +0 -431
  136. package/scss/type/vendor/@carbon/grid/_mixins.scss +0 -415
  137. package/scss/type/vendor/@carbon/grid/_prefix.scss +0 -12
  138. package/scss/type/vendor/@carbon/grid/grid.scss +0 -10
  139. package/scss/type/vendor/@carbon/grid/index.scss +0 -10
  140. package/scss/type/vendor/@carbon/grid/modules/_breakpoint.scss +0 -198
  141. package/scss/type/vendor/@carbon/grid/modules/_config.scss +0 -94
  142. package/scss/type/vendor/@carbon/grid/modules/_css-grid.scss +0 -470
  143. package/scss/type/vendor/@carbon/grid/modules/_flex-grid.scss +0 -363
  144. package/scss/type/vendor/@carbon/grid/modules/_mixins.scss +0 -336
  145. package/scss/type/vendor/@carbon/grid/vendor/@carbon/import-once/import-once.scss +0 -27
  146. package/scss/type/vendor/@carbon/grid/vendor/@carbon/import-once/index.scss +0 -8
  147. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_breakpoint.scss +0 -246
  148. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_convert.import.scss +0 -65
  149. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_convert.scss +0 -54
  150. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_key-height.import.scss +0 -117
  151. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_key-height.scss +0 -111
  152. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_mini-unit.scss +0 -23
  153. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_spacing.scss +0 -12
  154. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/_utilities.scss +0 -41
  155. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_container.scss +0 -73
  156. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_fluid-spacing.scss +0 -61
  157. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_icon-size.scss +0 -34
  158. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_layout.scss +0 -97
  159. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_size.scss +0 -17
  160. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/generated/_spacing.scss +0 -169
  161. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/index.scss +0 -8
  162. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/layout.scss +0 -12
  163. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_convert.scss +0 -51
  164. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_spacing.scss +0 -9
  165. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/_utilities.scss +0 -41
  166. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +0 -37
  167. package/scss/type/vendor/@carbon/grid/vendor/@carbon/layout/modules/generated/_spacing.scss +0 -91
  168. package/scss/type/vendor/@carbon/import-once/import-once.scss +0 -27
  169. package/scss/type/vendor/@carbon/import-once/index.scss +0 -8
@@ -1,51 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- @use 'sass:meta';
9
- @use 'sass:math';
10
-
11
- /// Default font size
12
- /// @type Number
13
- /// @access public
14
- /// @group @carbon/layout
15
- $base-font-size: 16px !default;
16
-
17
- /// Convert a given px unit to a rem unit
18
- /// @param {Number} $px - Number with px unit
19
- /// @return {Number} Number with rem unit
20
- /// @access public
21
- /// @group @carbon/layout
22
- @function rem($px) {
23
- @if unit($px) != 'px' {
24
- // TODO: update to @error in v11
25
- @warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
26
- }
27
-
28
- @if meta.function-exists('div', 'math') {
29
- @return math.div($px, $base-font-size) * 1rem;
30
- } @else {
31
- @return ($px / $base-font-size) * 1rem;
32
- }
33
- }
34
-
35
- /// Convert a given px unit to a em unit
36
- /// @param {Number} $px - Number with px unit
37
- /// @return {Number} Number with em unit
38
- /// @access public
39
- /// @group @carbon/layout
40
- @function em($px) {
41
- @if unit($px) != 'px' {
42
- // TODO: update to @error in v11
43
- @warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
44
- }
45
-
46
- @if meta.function-exists('div', 'math') {
47
- @return math.div($px, $base-font-size) * 1em;
48
- } @else {
49
- @return ($px / $base-font-size) * 1em;
50
- }
51
- }
@@ -1,9 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- @forward './generated/fluid-spacing';
9
- @forward './generated/spacing';
@@ -1,41 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- /// Map deep get
9
- /// @author Hugo Giraudel
10
- /// @access public
11
- /// @param {Map} $map - Map
12
- /// @param {Arglist} $keys - Key chain
13
- /// @return {*} Desired value
14
- /// @group @carbon/layout
15
- @function map-deep-get($map, $keys...) {
16
- @each $key in $keys {
17
- $map: map.get($map, $key);
18
- }
19
- @return $map;
20
- }
21
-
22
- /// Provide a map and index, and get back the relevant key value
23
- /// @access public
24
- /// @param {Map} $map - Map
25
- /// @param {Integer} $index - Key chain
26
- /// @return {String} Desired value
27
- /// @group @carbon/layout
28
- @function key-by-index($map, $index) {
29
- $keys: map.keys($map);
30
- @return nth($keys, $index);
31
- }
32
-
33
- /// Pass in a map, and get the last one in the list back
34
- /// @access public
35
- /// @param {Map} $map - Map
36
- /// @return {*} Desired value
37
- /// @group @carbon/layout
38
- @function last-map-item($map) {
39
- $total-length: list.length($map);
40
- @return map-get($map, carbon--key-by-index($map, $total-length));
41
- }
@@ -1,37 +0,0 @@
1
- // Code generated by @carbon/layout. DO NOT EDIT.
2
- //
3
- // Copyright IBM Corp. 2018, 2019
4
- //
5
- // This source code is licensed under the Apache-2.0 license found in the
6
- // LICENSE file in the root directory of this source tree.
7
- //
8
-
9
- /// @type Number
10
- /// @access public
11
- /// @group @carbon/layout
12
- $fluid-spacing-01: 0 !default;
13
-
14
- /// @type Number
15
- /// @access public
16
- /// @group @carbon/layout
17
- $fluid-spacing-02: 2vw !default;
18
-
19
- /// @type Number
20
- /// @access public
21
- /// @group @carbon/layout
22
- $fluid-spacing-03: 5vw !default;
23
-
24
- /// @type Number
25
- /// @access public
26
- /// @group @carbon/layout
27
- $fluid-spacing-04: 10vw !default;
28
-
29
- /// @type Map
30
- /// @access public
31
- /// @group @carbon/layout
32
- $fluid-spacing: (
33
- fluid-spacing-01: $fluid-spacing-01,
34
- fluid-spacing-02: $fluid-spacing-02,
35
- fluid-spacing-03: $fluid-spacing-03,
36
- fluid-spacing-04: $fluid-spacing-04,
37
- );
@@ -1,91 +0,0 @@
1
- // Code generated by @carbon/layout. DO NOT EDIT.
2
- //
3
- // Copyright IBM Corp. 2018, 2019
4
- //
5
- // This source code is licensed under the Apache-2.0 license found in the
6
- // LICENSE file in the root directory of this source tree.
7
- //
8
-
9
- /// @type Number
10
- /// @access public
11
- /// @group @carbon/layout
12
- $spacing-01: 0.125rem !default;
13
-
14
- /// @type Number
15
- /// @access public
16
- /// @group @carbon/layout
17
- $spacing-02: 0.25rem !default;
18
-
19
- /// @type Number
20
- /// @access public
21
- /// @group @carbon/layout
22
- $spacing-03: 0.5rem !default;
23
-
24
- /// @type Number
25
- /// @access public
26
- /// @group @carbon/layout
27
- $spacing-04: 0.75rem !default;
28
-
29
- /// @type Number
30
- /// @access public
31
- /// @group @carbon/layout
32
- $spacing-05: 1rem !default;
33
-
34
- /// @type Number
35
- /// @access public
36
- /// @group @carbon/layout
37
- $spacing-06: 1.5rem !default;
38
-
39
- /// @type Number
40
- /// @access public
41
- /// @group @carbon/layout
42
- $spacing-07: 2rem !default;
43
-
44
- /// @type Number
45
- /// @access public
46
- /// @group @carbon/layout
47
- $spacing-08: 2.5rem !default;
48
-
49
- /// @type Number
50
- /// @access public
51
- /// @group @carbon/layout
52
- $spacing-09: 3rem !default;
53
-
54
- /// @type Number
55
- /// @access public
56
- /// @group @carbon/layout
57
- $spacing-10: 4rem !default;
58
-
59
- /// @type Number
60
- /// @access public
61
- /// @group @carbon/layout
62
- $spacing-11: 5rem !default;
63
-
64
- /// @type Number
65
- /// @access public
66
- /// @group @carbon/layout
67
- $spacing-12: 6rem !default;
68
-
69
- /// @type Number
70
- /// @access public
71
- /// @group @carbon/layout
72
- $spacing-13: 10rem !default;
73
-
74
- /// @type Map
75
- /// @access public
76
- /// @group @carbon/layout
77
- $spacing: (
78
- spacing-01: $spacing-01,
79
- spacing-02: $spacing-02,
80
- spacing-03: $spacing-03,
81
- spacing-04: $spacing-04,
82
- spacing-05: $spacing-05,
83
- spacing-06: $spacing-06,
84
- spacing-07: $spacing-07,
85
- spacing-08: $spacing-08,
86
- spacing-09: $spacing-09,
87
- spacing-10: $spacing-10,
88
- spacing-11: $spacing-11,
89
- spacing-12: $spacing-12,
90
- spacing-13: $spacing-13,
91
- );
@@ -1,8 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- @import 'motion';
@@ -1,78 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- /// @access public
9
- /// @group @carbon/motion
10
- $fast-01: 70ms !default;
11
-
12
- /// @access public
13
- /// @group @carbon/motion
14
- $fast-02: 110ms !default;
15
-
16
- /// @access public
17
- /// @group @carbon/motion
18
- $moderate-01: 150ms !default;
19
-
20
- /// @access public
21
- /// @group @carbon/motion
22
- $moderate-02: 240ms !default;
23
-
24
- /// @access public
25
- /// @group @carbon/motion
26
- $slow-01: 400ms !default;
27
-
28
- /// @access public
29
- /// @group @carbon/motion
30
- $slow-02: 700ms !default;
31
-
32
- /// Common component easings
33
- /// @type Map
34
- /// @access public
35
- /// @group @carbon/motion
36
- $carbon--easings: (
37
- standard: (
38
- productive: cubic-bezier(0.2, 0, 0.38, 0.9),
39
- expressive: cubic-bezier(0.4, 0.14, 0.3, 1),
40
- ),
41
- entrance: (
42
- productive: cubic-bezier(0, 0, 0.38, 0.9),
43
- expressive: cubic-bezier(0, 0, 0.3, 1),
44
- ),
45
- exit: (
46
- productive: cubic-bezier(0.2, 0, 1, 0.9),
47
- expressive: cubic-bezier(0.4, 0.14, 1, 1),
48
- ),
49
- );
50
-
51
- /// Get the transition-timing-function for a given easing and motion mode
52
- /// @param {String} $name - Can be `standard`, `entrance`, or `exit`
53
- /// @param {String} $mode [productive] - Can be `productive` or `expressive`
54
- /// @param {Map} $easings [$carbon--easings] - Easings map
55
- /// @access public
56
- /// @group @carbon/motion
57
- /// @return {Function} CSS `cubic-bezier()` function
58
- @function carbon--motion($name, $mode: productive, $easings: $carbon--easings) {
59
- @if map-has-key($easings, $name) {
60
- $easing: map-get($easings, $name);
61
- @if map-has-key($easing, $mode) {
62
- @return map-get($easing, $mode);
63
- } @else {
64
- @error 'Unable to find a mode for the easing #{$easing} called: #{$mode}.';
65
- }
66
- } @else {
67
- @error 'Unable to find an easing named #{$name} in our supported easings.';
68
- }
69
- }
70
-
71
- /// Set the transition-timing-function for a given easing and motion mode
72
- /// @param {String} $name - The name of the easing curve to apply
73
- /// @param {String} $mode - The mode for the easing curve to use
74
- /// @access public
75
- /// @group @carbon/motion
76
- @mixin carbon--motion($name, $mode) {
77
- transition-timing-function: carbon--motion($name, $mode);
78
- }
@@ -1,39 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- /// @access private
9
- /// @group @carbon/themes
10
- $custom-property-prefix: 'cds' !default;
11
-
12
- /// @access private
13
- /// @group @carbon/themes
14
- @mixin custom-property($name, $value, $prefix: $custom-property-prefix) {
15
- @if type-of($value) == map {
16
- @each $property, $property-value in $value {
17
- // Only support one-level of depth for values that are maps. This is to
18
- // avoid bringing properties like `breakpoints` on type tokens
19
- @if type-of($property-value) != map {
20
- @include custom-property('#{$name}-#{$property}', $property-value);
21
- }
22
- }
23
- } @else {
24
- --#{$prefix}-#{$name}: #{$value};
25
- }
26
- }
27
-
28
- /// @access private
29
- /// @group @carbon/themes
30
- @function should-emit($theme-a, $theme-b, $token, $emit-difference) {
31
- @if $emit-difference == false {
32
- @return true;
33
- }
34
- @return map-get($theme-a, $token) != map-get($theme-b, $token);
35
- }
36
-
37
- // We import mixins last so that these methods are made available to the
38
- // carbon--theme mixin
39
- @import './generated/mixins';
@@ -1,9 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- @import './generated/tokens';
9
- @import './generated/themes';
@@ -1,8 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- @import './generated/tokens';
@@ -1,8 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- @forward 'generated/themes';
@@ -1,8 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2018, 2018
3
- //
4
- // This source code is licensed under the Apache-2.0 license found in the
5
- // LICENSE file in the root directory of this source tree.
6
- //
7
-
8
- @forward 'generated/tokens';
@@ -1,271 +0,0 @@
1
- // Code generated by @carbon/themes. DO NOT EDIT.
2
- //
3
- // Copyright IBM Corp. 2018, 2019
4
- //
5
- // This source code is licensed under the Apache-2.0 license found in the
6
- // LICENSE file in the root directory of this source tree.
7
- //
8
-
9
- /// Token values for the white theme
10
- $white: (
11
- active-danger: #750e13,
12
- active-light-ui: #c6c6c6,
13
- active-primary: #002d9c,
14
- active-secondary: #6f6f6f,
15
- active-tertiary: #002d9c,
16
- active-ui: #c6c6c6,
17
- button-separator: #e0e0e0,
18
- danger-01: #da1e28,
19
- danger-02: #da1e28,
20
- decorative-01: #e0e0e0,
21
- disabled-01: #f4f4f4,
22
- disabled-02: #c6c6c6,
23
- disabled-03: #8d8d8d,
24
- hover-danger: #b81921,
25
- hover-field: #e5e5e5,
26
- hover-light-ui: #e5e5e5,
27
- hover-primary: #0353e9,
28
- hover-primary-text: #0043ce,
29
- hover-row: #e5e5e5,
30
- hover-secondary: #4c4c4c,
31
- hover-selected-ui: #cacaca,
32
- hover-tertiary: #0353e9,
33
- hover-ui: #e5e5e5,
34
- icon-01: #161616,
35
- icon-02: #525252,
36
- icon-03: #ffffff,
37
- interactive-01: #0f62fe,
38
- interactive-02: #393939,
39
- interactive-03: #0f62fe,
40
- interactive-04: #0f62fe,
41
- inverse-01: #ffffff,
42
- inverse-02: #393939,
43
- inverse-focus-ui: #ffffff,
44
- inverse-hover-ui: #4c4c4c,
45
- inverse-link: #78a9ff,
46
- inverse-support-01: #fa4d56,
47
- inverse-support-02: #42be65,
48
- inverse-support-03: #f1c21b,
49
- inverse-support-04: #4589ff,
50
- link-01: #0f62fe,
51
- link-02: #0043ce,
52
- overlay-01: rgba(22, 22, 22, 0.5),
53
- selected-light-ui: #e0e0e0,
54
- selected-ui: #e0e0e0,
55
- skeleton-01: #e5e5e5,
56
- skeleton-02: #c6c6c6,
57
- support-01: #da1e28,
58
- support-02: #198038,
59
- support-03: #f1c21b,
60
- support-04: #0043ce,
61
- text-01: #161616,
62
- text-02: #525252,
63
- text-03: #a8a8a8,
64
- text-04: #ffffff,
65
- text-05: #6f6f6f,
66
- ui-01: #f4f4f4,
67
- ui-02: #ffffff,
68
- ui-03: #e0e0e0,
69
- ui-04: #8d8d8d,
70
- ui-05: #161616,
71
- ui-background: #ffffff,
72
- visited-link: #8a3ffc,
73
- ) !default;
74
-
75
- /// Token values for the g10 theme
76
- $g10: (
77
- active-danger: #750e13,
78
- active-light-ui: #c6c6c6,
79
- active-primary: #002d9c,
80
- active-secondary: #6f6f6f,
81
- active-tertiary: #002d9c,
82
- active-ui: #c6c6c6,
83
- button-separator: #e0e0e0,
84
- danger-01: #da1e28,
85
- danger-02: #da1e28,
86
- decorative-01: #e0e0e0,
87
- disabled-01: #ffffff,
88
- disabled-02: #c6c6c6,
89
- disabled-03: #8d8d8d,
90
- hover-danger: #b81921,
91
- hover-field: #e5e5e5,
92
- hover-light-ui: #e5e5e5,
93
- hover-primary: #0353e9,
94
- hover-primary-text: #0043ce,
95
- hover-row: #e5e5e5,
96
- hover-secondary: #4c4c4c,
97
- hover-selected-ui: #cacaca,
98
- hover-tertiary: #0353e9,
99
- hover-ui: #e5e5e5,
100
- icon-01: #161616,
101
- icon-02: #525252,
102
- icon-03: #ffffff,
103
- interactive-01: #0f62fe,
104
- interactive-02: #393939,
105
- interactive-03: #0f62fe,
106
- interactive-04: #0f62fe,
107
- inverse-01: #ffffff,
108
- inverse-02: #393939,
109
- inverse-focus-ui: #ffffff,
110
- inverse-hover-ui: #4c4c4c,
111
- inverse-link: #78a9ff,
112
- inverse-support-01: #fa4d56,
113
- inverse-support-02: #42be65,
114
- inverse-support-03: #f1c21b,
115
- inverse-support-04: #4589ff,
116
- link-01: #0f62fe,
117
- link-02: #0043ce,
118
- overlay-01: rgba(22, 22, 22, 0.5),
119
- selected-light-ui: #e0e0e0,
120
- selected-ui: #e0e0e0,
121
- skeleton-01: #e5e5e5,
122
- skeleton-02: #c6c6c6,
123
- support-01: #da1e28,
124
- support-02: #198038,
125
- support-03: #f1c21b,
126
- support-04: #0043ce,
127
- text-01: #161616,
128
- text-02: #525252,
129
- text-03: #a8a8a8,
130
- text-04: #ffffff,
131
- text-05: #6f6f6f,
132
- ui-01: #ffffff,
133
- ui-02: #f4f4f4,
134
- ui-03: #e0e0e0,
135
- ui-04: #8d8d8d,
136
- ui-05: #161616,
137
- ui-background: #f4f4f4,
138
- visited-link: #8a3ffc,
139
- ) !default;
140
-
141
- /// Token values for the g90 theme
142
- $g90: (
143
- active-danger: #750e13,
144
- active-light-ui: #8d8d8d,
145
- active-primary: #002d9c,
146
- active-secondary: #393939,
147
- active-tertiary: #c6c6c6,
148
- active-ui: #6f6f6f,
149
- button-separator: #161616,
150
- danger-01: #da1e28,
151
- danger-02: #ff8389,
152
- decorative-01: #6f6f6f,
153
- disabled-01: #393939,
154
- disabled-02: #6f6f6f,
155
- disabled-03: #a8a8a8,
156
- hover-danger: #b81921,
157
- hover-field: #4c4c4c,
158
- hover-light-ui: #656565,
159
- hover-primary: #0353e9,
160
- hover-primary-text: #a6c8ff,
161
- hover-row: #4c4c4c,
162
- hover-secondary: #606060,
163
- hover-selected-ui: #656565,
164
- hover-tertiary: #f4f4f4,
165
- hover-ui: #4c4c4c,
166
- icon-01: #f4f4f4,
167
- icon-02: #c6c6c6,
168
- icon-03: #ffffff,
169
- interactive-01: #0f62fe,
170
- interactive-02: #6f6f6f,
171
- interactive-03: #ffffff,
172
- interactive-04: #4589ff,
173
- inverse-01: #161616,
174
- inverse-02: #f4f4f4,
175
- inverse-focus-ui: #0f62fe,
176
- inverse-hover-ui: #e5e5e5,
177
- inverse-link: #0f62fe,
178
- inverse-support-01: #da1e28,
179
- inverse-support-02: #24a148,
180
- inverse-support-03: #f1c21b,
181
- inverse-support-04: #0f62fe,
182
- link-01: #78a9ff,
183
- link-02: #a6c8ff,
184
- overlay-01: rgba(0, 0, 0, 0.65),
185
- selected-light-ui: #6f6f6f,
186
- selected-ui: #525252,
187
- skeleton-01: #353535,
188
- skeleton-02: #525252,
189
- support-01: #ff8389,
190
- support-02: #42be65,
191
- support-03: #f1c21b,
192
- support-04: #4589ff,
193
- text-01: #f4f4f4,
194
- text-02: #c6c6c6,
195
- text-03: #6f6f6f,
196
- text-04: #ffffff,
197
- text-05: #8d8d8d,
198
- ui-01: #393939,
199
- ui-02: #525252,
200
- ui-03: #525252,
201
- ui-04: #8d8d8d,
202
- ui-05: #f4f4f4,
203
- ui-background: #262626,
204
- visited-link: #be95ff,
205
- ) !default;
206
-
207
- /// Token values for the g100 theme
208
- $g100: (
209
- active-danger: #750e13,
210
- active-light-ui: #6f6f6f,
211
- active-primary: #002d9c,
212
- active-secondary: #393939,
213
- active-tertiary: #c6c6c6,
214
- active-ui: #525252,
215
- button-separator: #161616,
216
- danger-01: #da1e28,
217
- danger-02: #fa4d56,
218
- decorative-01: #525252,
219
- disabled-01: #262626,
220
- disabled-02: #525252,
221
- disabled-03: #8d8d8d,
222
- hover-danger: #b81921,
223
- hover-field: #353535,
224
- hover-light-ui: #4c4c4c,
225
- hover-primary: #0353e9,
226
- hover-primary-text: #a6c8ff,
227
- hover-row: #353535,
228
- hover-secondary: #606060,
229
- hover-selected-ui: #4c4c4c,
230
- hover-tertiary: #f4f4f4,
231
- hover-ui: #353535,
232
- icon-01: #f4f4f4,
233
- icon-02: #c6c6c6,
234
- icon-03: #ffffff,
235
- interactive-01: #0f62fe,
236
- interactive-02: #6f6f6f,
237
- interactive-03: #ffffff,
238
- interactive-04: #4589ff,
239
- inverse-01: #161616,
240
- inverse-02: #f4f4f4,
241
- inverse-focus-ui: #0f62fe,
242
- inverse-hover-ui: #e5e5e5,
243
- inverse-link: #0f62fe,
244
- inverse-support-01: #da1e28,
245
- inverse-support-02: #24a148,
246
- inverse-support-03: #f1c21b,
247
- inverse-support-04: #0f62fe,
248
- link-01: #78a9ff,
249
- link-02: #a6c8ff,
250
- overlay-01: rgba(0, 0, 0, 0.65),
251
- selected-light-ui: #525252,
252
- selected-ui: #393939,
253
- skeleton-01: #353535,
254
- skeleton-02: #525252,
255
- support-01: #fa4d56,
256
- support-02: #42be65,
257
- support-03: #f1c21b,
258
- support-04: #4589ff,
259
- text-01: #f4f4f4,
260
- text-02: #c6c6c6,
261
- text-03: #6f6f6f,
262
- text-04: #ffffff,
263
- text-05: #8d8d8d,
264
- ui-01: #262626,
265
- ui-02: #393939,
266
- ui-03: #393939,
267
- ui-04: #6f6f6f,
268
- ui-05: #f4f4f4,
269
- ui-background: #161616,
270
- visited-link: #be95ff,
271
- ) !default;