question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 14 / UIKit Design/Theme switch inside theme.tsx

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

In my current app I use Material-UI for the amazing collection of components, however I’ve adopted some iOS design guidelines, such as the stained glass “Paper”:

image

to achieve this, I’ve overwritten some styles in theme.tsx:

const theme = createMuiTheme({
  overrides: {   
    MuiPaper: {
      rounded: {
        backgroundColor: "rgba(33,33,33,.6)",
        backdropFilter: "blur(10px)",
      },
    },
  }
});

Examples 🌈

some videos by me: https://twitter.com/Peer_Rich/status/1285667031069741056, https://twitter.com/Peer_Rich/status/1285683687598755840

SwiftUI transparency demo: https://twitter.com/MengTo/status/1279889859558195200

or framework7: https://framework7.io/

I think it could be done inside palette by:

palette: {
    type: 'dark',
    style: 'iOS',
  },

Motivation 🔦

This got me thinking: It would be amazing to have an option in theme.tsx that would apply some (or all) iOS guidelines on top of Material-UI.

I think it would be a huge relief if engineers could switch between “Google” Material UI and iOS Design. (like framework7, but with Material-UI Syntax, components etc.)

If this will not make it to Material-UI Core since it’s not Material Desgin (which I understand, I mean it’s in the name) I’m happy to collaborate and build a custom theme with plenty of overrides as an Addon or Material-UI Lab. Hit me up on Github or peer@hey.com

Cheers, Peer

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
mbrookescommented, Jul 24, 2020
3reactions
mbrookescommented, Jul 24, 2020

What blockers did you identify?

  • The need for custom variants in order to move as much styling as possible to the theme
  • The need for a specific component structure in order to achieve a layout that matches iOS (not just style and go)

Where I got stuck and set this aside was in the title-bar transition for nested pages.

@PeerRich I’ll see what the state of the repo is vs my local copy and invite you. It was only ever intended as an experiment, but if you have some ideas to share, I’d be glad to hear them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS 14 / UIKit Design/Theme switch inside theme.tsx #21911
iOS 14 / UIKit Design/Theme switch inside theme.tsx #21911 ... design This is about design, please involve a visual or UX designer in...
Read more >
Choosing a Specific Interface Style for Your iOS App
Adopt a specific interface style for your views, view controllers, or app when it is inappropriate to support both light and dark variants....
Read more >
Pin on Cute iOS14 Icons Home Screen Aesthetic - Pinterest
Set of 35 custom doodle app cover icons for your iOS 14 home screen. ... into neon theme also here: https://www.macrumors.com/how-to/change-app-icons…
Read more >
Implement dark mode switch in SwiftUI App - Stack Overflow
Entire App (Including the UIKit parts and The SwiftUI ) ... but I'm using iOS14's @main instead of SceneDelegate , along with some...
Read more >
iOS 14: Notable UIKit Additions - Swiftjective-C
user interface framework, UIKit. If you thought things were slowing down for UIKit in lieu of SwiftUI, well - that's clearly not happening....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found