Skip to content

Commit

Permalink
feat: adapt themes to bangumi component (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
yixiaojiu committed Feb 19, 2024
1 parent 3ccabfb commit b922eab
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions packages/valaxy-addon-bangumi/components/ValaxyBangumi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ const { api, bgmEnabled, bgmUid, bilibiliEnabled, bilibiliUid } = bangumiOptions
:bilibili-uid="bilibiliUid"
/>
</template>

<style>
:root[class~="light"] bilibili-bangumi {
--bbc-primary-color: #425aef;
--bbc-text-base-color: #24292e;
}
:root[class~="dark"] bilibili-bangumi {
--bbc-primary-color: #2fd8d8;
--bbc-text-base-color: #f2f2f2;
}
</style>
3 changes: 3 additions & 0 deletions packages/valaxy-addon-bangumi/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './client'
export * from './types'
export * from './node'
4 changes: 3 additions & 1 deletion packages/valaxy-addon-bangumi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valaxy-addon-bangumi",
"version": "0.0.1",
"version": "0.1.0",
"description": "Bangumi addon for Valaxy",
"repository": {
"type": "git",
Expand All @@ -11,6 +11,8 @@
"addon",
"bangumi"
],
"main": "index.ts",
"types": "index.d.ts",
"peerDependencies": {
"valaxy": "latest"
},
Expand Down

1 comment on commit b922eab

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://65d2bbe0a5c298bf147c0a66--valaxy.netlify.app

Please sign in to comment.