style: rename fontFamilyCode (#40622)

* style: rename fontFamilyCode

* Update seed.ts

* Update mixins.ts
This commit is contained in:
xrkffgg 2023-02-08 10:34:06 +08:00 committed by GitHub
parent 66885f6f5c
commit c325474047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ export interface SeedToken extends PresetColorType {
* @nameEN Font family for code text
* @desc Typography codepre kbd
*/
codeFontFamily: string;
fontFamilyCode: string;
/**
* @nameZH

View File

@ -34,7 +34,7 @@ const seedToken: SeedToken = {
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,
codeFontFamily: `'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,
fontFamilyCode: `'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,
fontSize: 14,
// Line

View File

@ -89,7 +89,7 @@ export const getResetStyles: GenerateStyle<TypographyToken, CSSObject> = (token)
paddingInline: '0.4em',
paddingBlock: '0.2em 0.1em',
fontSize: '85%',
fontFamily: token.codeFontFamily,
fontFamily: token.fontFamilyCode,
background: 'rgba(150, 150, 150, 0.1)',
border: '1px solid rgba(100, 100, 100, 0.2)',
borderRadius: 3,
@ -100,7 +100,7 @@ export const getResetStyles: GenerateStyle<TypographyToken, CSSObject> = (token)
paddingInline: '0.4em',
paddingBlock: '0.15em 0.1em',
fontSize: '90%',
fontFamily: token.codeFontFamily,
fontFamily: token.fontFamilyCode,
background: 'rgba(150, 150, 150, 0.06)',
border: '1px solid rgba(100, 100, 100, 0.2)',
borderBottomWidth: 2,
@ -164,7 +164,7 @@ export const getResetStyles: GenerateStyle<TypographyToken, CSSObject> = (token)
background: 'rgba(150, 150, 150, 0.1)',
border: '1px solid rgba(100, 100, 100, 0.2)',
borderRadius: 3,
fontFamily: token.codeFontFamily,
fontFamily: token.fontFamilyCode,
// Compatible for marked
code: {