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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

未来样式使用、书写方案 #109

Open
xinglie opened this issue Aug 23, 2023 · 0 comments
Open

未来样式使用、书写方案 #109

xinglie opened this issue Aug 23, 2023 · 0 comments

Comments

@xinglie
Copy link
Owner

xinglie commented Aug 23, 2023

全局及皮肤样式

全局样式仍需要单独抽取到文件中人工维护,全局样式及皮肤变量不能被magix-composer编译

这点主要考虑跨项目加载,项目间共享样式。

当被加载的组件直接使用宿主的样式时,可有效减少被加载组件的尺寸大小

全局及皮肤样式需要有统一的前缀,该点主要考虑与其它类库共存时,减少冲突

项目及组件样式

未来项目中的样式均不再人工维护,将统一由magix-composer编译提供

编译样式将由magix-composer-style仓库统一对外提供样式编译、转换的工作。

magix-composer-style将以a-b-c指代.a-b-c{a-b:c}的基础元子化规则提供最基础的样式,同时支持对元子化的样式进行组合、别名、简写等操作,来减少相应的书写工作量

magix-composer将自动对组件间重复使用的样式进行提取、拆分,以最合理的方式输出样式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant