Sketch中的Material Design插件:如何导出生成的主题? [英] Material Design plugin in Sketch: How do you export the generated theme?

查看:41
本文介绍了Sketch中的Material Design插件:如何导出生成的主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在 Sketch 中使用 Material Design Theme Editor 插件.它在您的 Sketch 文件中创建了这个惊人的样式指南和材料设计主题.有谁知道将 Sketch 中生成的主题导出然后导入到 Android Studio 中吗?

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?

推荐答案

看一看 Material Components for Android (MDC-Android) https://github.com/material-components/material-components-android.

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

目录模块演示了所有组件.material-theme-builder 模块允许您在 Android Studio 中输入排版、形状和颜色样式,然后显示自定义主题的外观.请参阅存储库中的文档.

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.

然后您可以在草图中进行设计,将您选择的排版、形状和颜色样式手动添加到 material-theme-builder 中,并检查/微调所有 MD 组件的外观.最后,根据 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.

这并不像直接从草图导出到您的 Android 版本那么简单.

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

这篇关于Sketch中的Material Design插件:如何导出生成的主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆