Skip to content

Commit

Permalink
feat: add monospace font to Text (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyaaa authored Oct 25, 2023
1 parent 800147b commit 01702eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/styles/rainbow-sprinkles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const responsiveProperties = defineProperties({
maxWidth: true,
maxHeight: true,
borderRadius: themeVars.radii,
fontFamily: themeVars.font,
fontFamily: true,
fontSize: themeVars.fontSize,
lineHeight: themeVars.lineHeight,
textAlign: true,
Expand Down Expand Up @@ -110,6 +110,7 @@ const responsiveProperties = defineProperties({
minHeight: allSpace,
maxWidth: allSpace,
maxHeight: allSpace,
fontFamily: themeVars.font,
},
shorthands: {
p: ["padding"],
Expand Down
1 change: 1 addition & 0 deletions src/ui/text/text.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function Text(props: TextProps) {
})}
className={props.className}
color={props.color}
fontFamily={props.fontFamily}
fontSize={props.fontSize}
fontWeight={props.fontWeight}
letterSpacing={props.letterSpacing}
Expand Down
1 change: 1 addition & 0 deletions src/ui/text/text.types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface TextProps extends BaseComponentProps {
| "p"
| "span";
color?: Sprinkles["color"];
fontFamily?: Sprinkles["fontFamily"];
fontSize?: Sprinkles["fontSize"];
fontWeight?: Sprinkles["fontWeight"];
letterSpacing?: Sprinkles["letterSpacing"];
Expand Down

0 comments on commit 01702eb

Please sign in to comment.