client: Add custom themes
Co-authored-by: WhiteBlankzero <WhiteBlankzero@users.noreply.github.com>
This commit is contained in:
parent
0a49b1f148
commit
7c8c62a88b
|
@ -29,6 +29,7 @@ export const getBuiltinThemes = () => Promise.all(
|
|||
'l-cherry',
|
||||
'l-sushi',
|
||||
'l-u0',
|
||||
'l-birdsite',
|
||||
|
||||
'd-dark',
|
||||
'd-persimmon',
|
||||
|
@ -39,8 +40,9 @@ export const getBuiltinThemes = () => Promise.all(
|
|||
'd-green-orange',
|
||||
'd-cherry',
|
||||
'd-ice',
|
||||
'd-qdon',
|
||||
'd-u0',
|
||||
'd-qdon',
|
||||
'd-birdsite',
|
||||
].map(name => import(`../themes/${name}.json5`).then(({ default: _default }): Theme => _default)),
|
||||
);
|
||||
|
||||
|
|
18
packages/frontend/src/themes/d-birdsite.json5
Normal file
18
packages/frontend/src/themes/d-birdsite.json5
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
id: 'twitterpuredark',
|
||||
base: 'dark',
|
||||
desc: 'Birdsite Pure Dark mode color',
|
||||
name: 'Birdsite Pure Dark',
|
||||
props: {
|
||||
accent: '#1d9bf0',
|
||||
bg: '#000',
|
||||
link: '#1d9bf0',
|
||||
hashtag: '#1d9bf0',
|
||||
renote: '#71767b',
|
||||
buttonGradateA: '@accent',
|
||||
buttonGradateB: '@accent',
|
||||
error: '#f4212e',
|
||||
infoWarnFg: '#f4212e',
|
||||
},
|
||||
author:'@white@k.lapy.link',
|
||||
}
|
16
packages/frontend/src/themes/l-birdsite.json5
Normal file
16
packages/frontend/src/themes/l-birdsite.json5
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
id: 'twitterpurewhite',
|
||||
base: 'light',
|
||||
desc: 'Birdsite Pure white mode color',
|
||||
name: 'Birdsite Pure white',
|
||||
props: {
|
||||
bg: '#fff',
|
||||
link: '#1d9bf0',
|
||||
accent: '#1d9bf0',
|
||||
renote: '#536472',
|
||||
hashtag: '#1d9bf0',
|
||||
buttonGradateA: '@accent',
|
||||
buttonGradateB: '@accent',
|
||||
},
|
||||
author: '@white@k.lapy.link',
|
||||
}
|
Loading…
Reference in a new issue