Skip to content

Commit

Permalink
feat(config): support 'ios' and 'md' classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Sep 6, 2021
1 parent 1ca47c3 commit 2deeb3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/plugin-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ module.exports = () =>
'-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale',
},
'.twm-ios': {
'.twm-ios, .ios': {
'font-family':
'-apple-system, SF Pro Text, SF UI Text, system-ui, Helvetica Neue, Helvetica, Arial, sans-serif',
},
'.twm-material': {
'.twm-material, .md': {
'font-family': 'Roboto, system-ui, Noto, Helvetica, Arial, sans-serif',
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const App = forwardRef((props, ref) => {
};

const classes = cls(
`twm-${theme}`,
theme === 'ios' ? `twm-ios` : 'twm-material',
'twm-app w-full h-full min-h-screen',
safeAreas && 'safe-areas',
positionClass('relative', className),
Expand Down

0 comments on commit 2deeb3d

Please sign in to comment.