Skip to content

Commit 00649e3

Browse files
committed
[fix](@svelteui/core): add missing fontFamily to components
1 parent 138a23d commit 00649e3

File tree

20 files changed

+26
-9
lines changed

20 files changed

+26
-9
lines changed

packages/svelteui-core/src/components/Accordion/AccordionItem/AccordionItem.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default createStyles(
6969
}
7070
},
7171
controlContent: {
72+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
7273
color: 'inherit',
7374
fontWeight: 400,
7475
flex: 1,

packages/svelteui-core/src/components/Alert/Alert.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface AlertStylesParams {
1111
export default createStyles((theme, { color, radius, variant }: AlertStylesParams, getRef) => {
1212
return {
1313
root: {
14+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
1415
position: 'relative',
1516
overflow: 'hidden',
1617
padding: `${theme.space.sm.value}px ${theme.space.md.value}px`,

packages/svelteui-core/src/components/AppShell/HorizontalSection/HorizontalSection.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default createStyles(
5252
5
5353
)}`
5454
},
55-
fontFamily: '$standard' || 'sans-serif',
55+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
5656
...position,
5757
top: position?.top || 'var(--svelteui-header-height)',
5858
zIndex,

packages/svelteui-core/src/components/AppShell/VerticalSection/VerticalSection.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default createStyles(
2323
...position,
2424
zIndex,
2525
height,
26-
fontFamily: '$standard' || 'sans-serif',
26+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
2727
maxHeight: height,
2828
position: fixed ? 'fixed' : 'static',
2929
boxSizing: 'border-box',

packages/svelteui-core/src/components/Badge/Badge.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export default createStyles(
7373
width: fullWidth ? '100%' : 'auto',
7474
textTransform: 'uppercase',
7575
borderRadius: theme.fn.radius(radius),
76+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
7677
fontWeight: 700,
7778
letterSpacing: 0.25,
7879
cursor: 'default',

packages/svelteui-core/src/components/Blockquote/Blockquote.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default createStyles((theme, { color }: BlockquoteStylesParams) => {
1010
darkMode: {
1111
color: theme.fn.themeColor('dark', 0)
1212
},
13+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
1314
fontSize: theme.fontSizes.lg.value,
1415
lineHeight: theme.lineHeights.md.value,
1516
color: theme.fn.themeColor('black'),

packages/svelteui-core/src/components/Breadcrumbs/BreadcrumbsItem/BreadcrumbsItem.styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export const fontSizes = {
1616

1717
export default createStyles((theme, { color, size }: BreadcrumbItemStylesParams) => ({
1818
root: {
19-
position: 'relative'
19+
position: 'relative',
20+
fontFamily: theme.fonts.standard.value ?? 'sans-serif'
2021
},
2122
wrapper: {
2223
display: 'flex',

packages/svelteui-core/src/components/Button/Button.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default createStyles(
8989
typeof size === 'number'
9090
? `0px ${size}px`
9191
: sizes[compact ? `compact-${size}` : size].padding,
92-
fontFamily: '$standard',
92+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
9393
fontWeight: '$semibold',
9494
fontSize: `$${size}`,
9595
lineHeight: 1,

packages/svelteui-core/src/components/Button/UnstyledButton/UnstyledButton.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default createStyles((theme) => ({
1010
border: 0,
1111
padding: 0,
1212
appearance: 'none',
13+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
1314
fontSize: theme.fontSizes.md.value,
1415
backgroundColor: 'transparent',
1516
textAlign: 'left',

packages/svelteui-core/src/components/Chip/Chip.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default createStyles(
5858
border: '1px solid transparent',
5959
borderRadius: theme.fn.radius(radius),
6060
height: theme.fn.size({ size, sizes }),
61+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
6162
fontSize: theme.fn.size({ size, sizes: theme.fontSizes }),
6263
lineHeight: `${theme.fn.size({ size, sizes }) - 2}px`,
6364
paddingLeft: theme.fn.size({ size, sizes: padding }),

packages/svelteui-core/src/components/Image/Image.styles.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ export interface ImageStylesParams {
1111

1212
export default createStyles((theme, { radius, height, width, fit }: ImageStylesParams) => {
1313
return {
14-
root: {},
14+
root: {
15+
fontFamily: theme.fonts.standard.value ?? 'sans-serif'
16+
},
1517
imageWrapper: {
1618
position: 'relative'
1719
},
@@ -23,7 +25,6 @@ export default createStyles((theme, { radius, height, width, fit }: ImageStylesP
2325
image: {
2426
width,
2527
height,
26-
fontFamily: '$standard',
2728
display: 'block',
2829
border: 0,
2930
borderRadius: theme.fn.radius(radius),

packages/svelteui-core/src/components/Input/Input.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default createStyles(
6565
appearance: 'none',
6666
resize,
6767
boxSizing: 'border-box',
68+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
6869
fontSize: typeof size === 'number' ? `${size}px` : `${size}`,
6970
width: '100%',
7071
color: 'Black',

packages/svelteui-core/src/components/InputWrapper/InputWrapper.styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default createStyles((theme, { size }: InputWrapperStyleParams) => {
1717
},
1818
display: 'inline-block',
1919
marginBottom: 4,
20+
fontFamily: theme.fonts.standard.value ?? 'sans-serif',
2021
fontSize: theme.fontSizes[size].value,
2122
fontWeight: 500,
2223
color: theme.fn.themeColor('gray', 9),
@@ -48,7 +49,7 @@ export default createStyles((theme, { size }: InputWrapperStyleParams) => {
4849

4950
required: {
5051
[`${theme.dark} &`]: {
51-
color: '$red500'
52+
color: theme.fn.themeColor('red', 5)
5253
},
5354
color: theme.fn.themeColor('red', 7)
5455
}

packages/svelteui-core/src/components/Menu/Menu.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export default createStyles((theme, { size }: MenuStyleParams) => ({
9292
color: theme.fn.themeColor('gray', 2),
9393
fontWeight: 500,
9494
fontSize: theme.fontSizes.xs,
95+
fontFamily: theme.fonts.standard.value,
9596
padding: `${parseInt(theme.space.xs.value) / 2}px ${parseInt(theme.space.sm.value)}px`,
9697
cursor: 'default'
9798
}

packages/svelteui-core/src/components/Menu/MenuItem/MenuItem.styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export default createStyles((theme, { color, radius }: MenuItemStylesParams) =>
3535
}
3636
},
3737
WebkitTapHighlightColor: 'transparent',
38-
fontSize: theme.fontSizes.sm,
38+
fontFamily: theme.fonts.standard.value,
39+
fontSize: theme.fontSizes.sm.value,
3940
border: 0,
4041
backgroundColor: 'transparent',
4142
outline: 0,

packages/svelteui-core/src/components/Modal/Modal.styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export default createStyles((theme, { centered, overflow, size, zIndex }: ModalS
5555
marginRight: +theme.space.md.value,
5656
textOverflow: 'ellipsis',
5757
display: 'block',
58-
wordBreak: 'break-word'
58+
wordBreak: 'break-word',
59+
fontFamily: theme.fonts.standard.value
5960
},
6061

6162
modal: {

packages/svelteui-core/src/components/Notification/Notification.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default createStyles((theme, { color, radius }: NotificationStylesParams,
1818
backgroundColor: theme.fn.themeColor('dark', 6),
1919
border: `1px solid ${theme.fn.themeColor('dark', 6)}`
2020
},
21+
fontFamily: theme.fonts.standard.value,
2122
boxSizing: 'border-box',
2223
position: 'relative',
2324
display: 'flex',

packages/svelteui-core/src/components/Tabs/Tab/Tab.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export default createStyles((theme, { color, orientation }: TabStyleParams) => {
8585
backgroundColor: 'transparent',
8686
border: 0,
8787
padding: `0 ${theme.space.mdPX}`,
88+
fontFamily: theme.fonts.standard.value,
8889
fontSize: theme.fontSizes.sm,
8990
cursor: 'pointer',
9091
width: orientation === 'vertical' ? '100%' : 'auto',

packages/svelteui-core/src/components/Timeline/TimelineItem/TimelineItem.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default createStyles(
2727
paddingLeft: align === 'left' ? theme.space.xlPX.value : 0,
2828
paddingRight: align === 'right' ? theme.space.xlPX.value : 0,
2929
textAlign: align,
30+
fontFamily: theme.fonts.standard.value,
3031
darkMode: {
3132
color: theme.fn.themeColor('dark', 0)
3233
},

packages/svelteui-core/src/components/Tooltip/Tooltip.styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default createStyles((theme, { color, radius }: TooltipStyleParams) => {
2020
backgroundColor: theme.fn.themeColor(color, 9),
2121
lineHeight: theme.lineHeights.md,
2222
fontSize: theme.fontSizes.sm,
23+
fontFamily: theme.fonts.standard.value,
2324
borderRadius: theme.radii[radius].value,
2425
padding: `${+theme.space.xs.value / 2}px ${theme.space.xs.value}px`,
2526
color: 'white',

0 commit comments

Comments
 (0)