|
35 | 35 | $white: core.daff-map-get($theme, 'core', 'white'); |
36 | 36 | $black: core.daff-map-get($theme, 'core', 'black'); |
37 | 37 | $neutral: core.daff-map-get($theme, 'core', 'neutral'); |
| 38 | + $type: core.daff-map-get($theme, 'core', 'type'); |
38 | 39 |
|
39 | 40 | .daff-card, |
40 | | - .daff-raised-card, |
41 | | - .daff-stroked-card { |
42 | | - @include daff-basic-card-theme-variant( |
43 | | - theming.daff-illuminate($base, $neutral, 1) |
44 | | - ); |
45 | | - |
46 | | - &.daff-primary { |
47 | | - @include daff-basic-card-theme-variant(theming.daff-color($primary)); |
48 | | - } |
| 41 | + .daff-raised-card { |
| 42 | + @include theming.light($type) { |
| 43 | + @include daff-basic-card-theme-variant(theming.daff-color($neutral, 10)); |
| 44 | + |
| 45 | + &.daff-primary { |
| 46 | + @include daff-basic-card-theme-variant(theming.daff-color($primary)); |
| 47 | + } |
49 | 48 |
|
50 | | - &.daff-secondary { |
51 | | - @include daff-basic-card-theme-variant(theming.daff-color($secondary)); |
| 49 | + &.daff-secondary { |
| 50 | + @include daff-basic-card-theme-variant(theming.daff-color($secondary)); |
| 51 | + } |
| 52 | + |
| 53 | + &.daff-tertiary { |
| 54 | + @include daff-basic-card-theme-variant(theming.daff-color($tertiary)); |
| 55 | + } |
52 | 56 | } |
53 | 57 |
|
54 | | - &.daff-tertiary { |
55 | | - @include daff-basic-card-theme-variant(theming.daff-color($tertiary)); |
| 58 | + @include theming.dark($type) { |
| 59 | + @include daff-basic-card-theme-variant(theming.daff-color($neutral, 90)); |
| 60 | + |
| 61 | + &.daff-primary { |
| 62 | + @include daff-basic-card-theme-variant( |
| 63 | + theming.daff-color($primary, 60) |
| 64 | + ); |
| 65 | + } |
| 66 | + |
| 67 | + &.daff-secondary { |
| 68 | + @include daff-basic-card-theme-variant( |
| 69 | + theming.daff-color($secondary, 60) |
| 70 | + ); |
| 71 | + } |
| 72 | + |
| 73 | + &.daff-tertiary { |
| 74 | + @include daff-basic-card-theme-variant( |
| 75 | + theming.daff-color($tertiary, 60) |
| 76 | + ); |
| 77 | + } |
56 | 78 | } |
57 | 79 |
|
58 | 80 | &.daff-theme { |
|
63 | 85 | @include daff-basic-card-theme-variant($base-contrast); |
64 | 86 | } |
65 | 87 |
|
66 | | - &.daff-black { |
67 | | - @include daff-basic-card-theme-variant($black); |
| 88 | + &.daff-dark { |
| 89 | + @include daff-basic-card-theme-variant(theming.daff-color($neutral, 90)); |
68 | 90 | } |
69 | 91 |
|
70 | | - &.daff-white { |
71 | | - @include daff-basic-card-theme-variant($white); |
| 92 | + &.daff-light { |
| 93 | + @include daff-basic-card-theme-variant(theming.daff-color($neutral, 10)); |
72 | 94 | } |
73 | 95 | } |
74 | 96 |
|
75 | 97 | a { |
76 | 98 | &.daff-card, |
77 | | - &.daff-raised-card, |
78 | | - &.daff-stroked-card { |
79 | | - @include daff-linkable-card-theme-variant( |
80 | | - theming.daff-illuminate($base, $neutral, 2) |
81 | | - ); |
82 | | - |
83 | | - &.daff-primary { |
| 99 | + &.daff-raised-card { |
| 100 | + @include theming.light($type) { |
84 | 101 | @include daff-linkable-card-theme-variant( |
85 | | - theming.daff-color($primary, 70) |
| 102 | + theming.daff-color($neutral, 20) |
86 | 103 | ); |
87 | | - } |
88 | 104 |
|
89 | | - &.daff-secondary { |
90 | | - @include daff-linkable-card-theme-variant( |
91 | | - theming.daff-color($secondary, 70) |
92 | | - ); |
| 105 | + &.daff-primary { |
| 106 | + @include daff-linkable-card-theme-variant( |
| 107 | + theming.daff-color($primary, 70) |
| 108 | + ); |
| 109 | + } |
| 110 | + |
| 111 | + &.daff-secondary { |
| 112 | + @include daff-linkable-card-theme-variant( |
| 113 | + theming.daff-color($secondary, 70) |
| 114 | + ); |
| 115 | + } |
| 116 | + |
| 117 | + &.daff-tertiary { |
| 118 | + @include daff-linkable-card-theme-variant( |
| 119 | + theming.daff-color($tertiary, 70) |
| 120 | + ); |
| 121 | + } |
| 122 | + |
| 123 | + &.daff-theme { |
| 124 | + @include daff-linkable-card-theme-variant( |
| 125 | + theming.daff-color($neutral, 10) |
| 126 | + ); |
| 127 | + } |
| 128 | + |
| 129 | + &.daff-theme-contrast { |
| 130 | + @include daff-linkable-card-theme-variant( |
| 131 | + theming.daff-color($neutral, 100) |
| 132 | + ); |
| 133 | + } |
| 134 | + |
| 135 | + &.daff-dark { |
| 136 | + @include daff-linkable-card-theme-variant( |
| 137 | + theming.daff-color($neutral, 90) |
| 138 | + ); |
| 139 | + } |
| 140 | + |
| 141 | + &.daff-light { |
| 142 | + @include daff-linkable-card-theme-variant( |
| 143 | + theming.daff-color($neutral, 10) |
| 144 | + ); |
| 145 | + } |
93 | 146 | } |
94 | 147 |
|
95 | | - &.daff-tertiary { |
| 148 | + @include theming.dark($type) { |
96 | 149 | @include daff-linkable-card-theme-variant( |
97 | | - theming.daff-color($tertiary, 70) |
| 150 | + theming.daff-color($neutral, 80) |
98 | 151 | ); |
99 | | - } |
100 | | - |
101 | | - &.daff-theme { |
102 | | - @include daff-linkable-card-theme-variant( |
103 | | - theming.daff-illuminate($base, $neutral, 1) |
104 | | - ); |
105 | | - } |
106 | 152 |
|
107 | | - &.daff-theme-contrast { |
108 | | - @include daff-linkable-card-theme-variant( |
109 | | - theming.daff-illuminate($base-contrast, $neutral, 1) |
110 | | - ); |
111 | | - } |
112 | | - |
113 | | - &.daff-black { |
114 | | - @include daff-linkable-card-theme-variant( |
115 | | - theming.daff-color($neutral, 100) |
116 | | - ); |
117 | | - } |
118 | | - |
119 | | - &.daff-white { |
120 | | - @include daff-linkable-card-theme-variant( |
121 | | - theming.daff-color($neutral, 10) |
122 | | - ); |
| 153 | + &.daff-primary { |
| 154 | + @include daff-linkable-card-theme-variant( |
| 155 | + theming.daff-color($primary, 70) |
| 156 | + ); |
| 157 | + } |
| 158 | + |
| 159 | + &.daff-secondary { |
| 160 | + @include daff-linkable-card-theme-variant( |
| 161 | + theming.daff-color($secondary, 70) |
| 162 | + ); |
| 163 | + } |
| 164 | + |
| 165 | + &.daff-tertiary { |
| 166 | + @include daff-linkable-card-theme-variant( |
| 167 | + theming.daff-color($tertiary, 70) |
| 168 | + ); |
| 169 | + } |
| 170 | + |
| 171 | + &.daff-theme { |
| 172 | + @include daff-linkable-card-theme-variant( |
| 173 | + theming.daff-color($neutral, 90) |
| 174 | + ); |
| 175 | + } |
| 176 | + |
| 177 | + &.daff-theme-contrast { |
| 178 | + @include daff-linkable-card-theme-variant( |
| 179 | + theming.daff-color($neutral, 10) |
| 180 | + ); |
| 181 | + } |
| 182 | + |
| 183 | + &.daff-dark { |
| 184 | + @include daff-linkable-card-theme-variant( |
| 185 | + theming.daff-color($neutral, 100) |
| 186 | + ); |
| 187 | + } |
| 188 | + |
| 189 | + &.daff-light { |
| 190 | + @include daff-linkable-card-theme-variant( |
| 191 | + theming.daff-color($neutral, 10) |
| 192 | + ); |
| 193 | + } |
123 | 194 | } |
124 | 195 | } |
125 | 196 | } |
|
0 commit comments