Material Design plugin in Sketch: How do you export the generated theme?

旧街凉风 提交于 2019-12-04 23:30:51

问题


We are using the Material Design Theme Editor plugin in Sketch. It creates this amazing Style Guide and Material Design theme right in your Sketch file. Does anyone know to export then import the theme generated in Sketch to Android Studio?


回答1:


Take a look at Material Components for Android (MDC-Android) https://github.com/material-components/material-components-android.

The catalog module has demonstrations of all the components. The material-theme-builder module lets you enter typography, shape, and color styling in Android Studio and then shows what the customized theme looks like. See the docs on the repo.

You can then design in sketch, manually add your chosen typography, shape, and color styling into material-theme-builder and check/fine tune how all the MD components look. Lastly copy the theme resources into your own project as per the repo docs.

It's not as simple as just exporting straight from sketch into your Android build.



来源:https://stackoverflow.com/questions/52444443/material-design-plugin-in-sketch-how-do-you-export-the-generated-theme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!