Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
PeerRich opened this issue Jul 24, 2020 · 10 comments
Open
1 task done

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

PeerRich opened this issue Jul 24, 2020 · 10 comments
Labels
customization: theme Centered around the theming features design This is about UI or UX design, please involve a designer

Comments

@PeerRich
Copy link

PeerRich commented Jul 24, 2020

  • 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":

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:

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

Benchmarks

@PeerRich PeerRich added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 24, 2020
@oliviertassinari
Copy link
Member

oliviertassinari commented Jul 24, 2020

We are experimenting with this on https://github.com/mbrookes/material-uios

@mbrookes What blockers did you identify?

@oliviertassinari oliviertassinari added design This is about UI or UX design, please involve a designer and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 24, 2020
@PeerRich

This comment was marked as resolved.

@oliviertassinari

This comment was marked as resolved.

@PeerRich
Copy link
Author

PeerRich commented Jul 24, 2020

Would love to collaborate. Btw. Sick response time Olivier!

@mbrookes
Copy link
Member

mbrookes commented 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.

@mbrookes
Copy link
Member

@PeerRich I've updated the repo with local commits and invited you. I have some uncommitted local changes changes, mostly from experimenting with the title-bar transition, but not worth sharing.

@mbrookes
Copy link
Member

@PeerRich
Copy link
Author

PeerRich commented Jul 24, 2020

Thank you for the invite. Will take a look at it and see if I can come up with some new ideas

Edit: Wow this looks really good! I didn't expect such an advanced repo when you first told me

@MrBirb
Copy link

MrBirb commented May 2, 2021

Oh man this looks sick!

@mbrookes
Copy link
Member

https://github.com/mbrookes/material-uios It's out of date (using v4), but might still be useful to someone.

@oliviertassinari oliviertassinari added the customization: theme Centered around the theming features label Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customization: theme Centered around the theming features design This is about UI or UX design, please involve a designer
Projects
None yet
Development

No branches or pull requests

4 participants