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

【开源自荐】面向 Vue3 的 CSS in JS 工具库 #4409

Open
akinoccc opened this issue May 7, 2024 · 0 comments
Open

【开源自荐】面向 Vue3 的 CSS in JS 工具库 #4409

akinoccc opened this issue May 7, 2024 · 0 comments
Labels

Comments

@akinoccc
Copy link

akinoccc commented May 7, 2024

项目地址:https://github.com/v-vibe/vue-styled-components
文档地址:vue-styled-components.com

❤项目初衷

想在 Vue3 像 React 一样使用 styled components,但是 Vue 版本的 styled components 只支持 Vue2,且项目作者不再更新,因此决定重新开发一个能在 Vue3 使用的 styled components 工具库。

目前基本还原 styled components 大部分核心 API。

✨特性

✅ 样式化 Vue 组件或原生组件

✅ 添加默认 Attributes

✅ 传递 Props

✅ 支持主题化

✅ 生成关键帧

✅ 生成 CSS 片段

✅ 创建全局样式

✅ 支持通过 withAttrs 重新设置或覆盖 Attributes

✅ 支持 CSS 嵌套。(仅支持 web: https://drafts.csswg.org/css-nesting/#nesting)

image

@ruanyf ruanyf added the weekly label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants