1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-25 12:39:26 -05:00

udpated themes

This commit is contained in:
fly_mc 2024-10-21 01:02:00 +08:00
parent 5ff4653a11
commit 45021b2329
6 changed files with 12 additions and 5 deletions
packages
frontend-embed/src
frontend-shared/themes
frontend
.storybook
src/scripts

View file

@ -4,8 +4,8 @@
*/
import tinycolor from 'tinycolor2';
import lightTheme from '@@/themes/_light.json5';
import darkTheme from '@@/themes/_dark.json5';
import lightTheme from '@@/themes/p-light2.json5';
import darkTheme from '@@/themes/p-dark2.json5';
import type { BundledTheme } from 'shiki/themes';
export type Theme = {

View file

@ -40,7 +40,7 @@
"renote": "#6c54f7",
"shadow": "rgba(0, 0, 0, 0.1)",
"divider": "rgba(164, 105, 112, 0.1)",
"hashtag": "#ff8fab",
"hashtag": "#6507b8",
"mention": "#e84f66",
"modalBg": "rgba(0, 0, 0, 0.25)",
"success": "#ffa3d7",

View file

@ -1,5 +1,5 @@
{
id: '33684d69-94b9-4d9c-9783-e9e6b92d7a59',
id: 'stpv-dark',
base: 'dark',
name: 'Stpv Dark v2',
props: {

View file

@ -1,5 +1,5 @@
{
id: '43eeb316-8e4f-4e45-91ad-bc794fea3ea4',
id: 'stpv-light',
base: 'light',
name: 'Stellacolor Transparent',
props: {

View file

@ -28,6 +28,8 @@ const keys = [
'd-cherry',
'd-ice',
'd-u0',
'p-light2',
'p-dark2'
]
await Promise.all(keys.map((key) => readFile(new URL(`../../frontend-shared/themes/${key}.json5`, import.meta.url), 'utf8'))).then((sources) => {

View file

@ -54,6 +54,11 @@ export const getBuiltinThemes = () => Promise.all(
'd-u0',
'p-light',
'p-dark',
'p-light2',
'p-dark2',
"shw-light",
"shw-light",
"stpv-dark"
].map(name => import(`@@/themes/${name}.json5`).then(({ default: _default }): Theme => _default)),
);