Skip to content

Commit

Permalink
refactor(utils/icon): ♻️ simplify style
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Nov 14, 2023
1 parent 63d2770 commit 971cdfa
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions packages/shiraha-ve/src/utils/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,27 @@ export const icon = (content: string) => ({
MozOsxFontSmoothing: 'grayscale',
WebkitFontSmoothing: 'antialiased',
content,
direction: 'ltr',
// direction: 'ltr',
display: 'inline-block',
fontFamily: [
'Material Symbols Outlined',
'Material Symbols Rounded',
'Material Symbols Sharp',
// UNTESTED
'Material Icons',
'Material Icons Outliend',
'Material Icons Sharp',
'Material Icons Two Tone',
].join(', '),
// fontFamily: [
// 'Material Symbols Outlined',
// 'Material Symbols Rounded',
// 'Material Symbols Sharp',
// // UNTESTED
// 'Material Icons',
// 'Material Icons Outliend',
// 'Material Icons Sharp',
// 'Material Icons Two Tone',
// ].join(', '),
fontFamily: '"Material Symbols Outlined", "Material Symbols Rounded", "Material Symbols Sharp"',
fontFeatureSettings: 'liga',
fontSize: 24,
fontStyle: 'normal',
fontWeight: 'normal',
letterSpacing: 'normal',
// fontStyle: 'normal',
// fontWeight: 'normal',
// letterSpacing: 'normal',
lineHeight: 1,
textRendering: 'optimizeLegibility',
textTransform: 'none',
// textTransform: 'none',
whiteSpace: 'nowrap',
wordWrap: 'normal',
}) as const satisfies ComplexStyleRule
Expand Down

0 comments on commit 971cdfa

Please sign in to comment.