Skip to content

Commit ef7ea1c

Browse files
committed
refactor(tokens): retain older custom properties & reorder stacks
1 parent 40c08ed commit ef7ea1c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

components/tokens/custom-spectrum/custom-vars.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,17 @@ governing permissions and limitations under the License.
3535
--spectrum-animation-ease-out: cubic-bezier(0, 0, 0.40, 1);
3636
--spectrum-animation-ease-linear: cubic-bezier(0, 0, 1, 1);
3737

38-
--spectrum-sans-font-family-stack: adobe-clean, 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Trebuchet MS', 'Lucida Grande', sans-serif;
38+
39+
--spectrum-sans-font-family-stack: adobe-clean, var(--spectrum-sans-serif-font-family), 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Trebuchet MS', 'Lucida Grande', sans-serif;
40+
--spectrum-sans-serif-font: var(--spectrum-sans-font-family-stack);
3941

40-
--spectrum-serif-font-family-stack: adobe-clean-serif, 'Source Serif Pro', Georgia, serif;
42+
--spectrum-serif-font-family-stack: adobe-clean-serif, var(--spectrum-serif-font-family), 'Source Serif Pro', Georgia, serif;
43+
--spectrum-serif-font: var(--spectrum-serif-font-family-stack);
4144

4245
--spectrum-code-font-family-stack: 'Source Code Pro', Monaco, monospace;
43-
44-
--spectrum-cjk-font-family-stack: adobe-clean-han-japanese, sans-serif;
46+
47+
--spectrum-cjk-font-family-stack: adobe-clean-han-japanese, var(--spectrum-cjk-font-family), sans-serif;
48+
--spectrum-cjk-font: var(--spectrum-code-font-family-stack);
4549

4650
/* static white / black background color for docs containers */
4751
--spectrum-docs-static-white-background-color: rgb(15, 121, 125);

0 commit comments

Comments
 (0)