mirror of
https://github.com/paricafe/misskey.git
synced 2025-03-25 12:39:26 -05:00
udpated themes
This commit is contained in:
parent
5ff4653a11
commit
45021b2329
6 changed files with 12 additions and 5 deletions
packages
frontend-embed/src
frontend-shared/themes
frontend
|
@ -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 = {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
id: '33684d69-94b9-4d9c-9783-e9e6b92d7a59',
|
||||
id: 'stpv-dark',
|
||||
base: 'dark',
|
||||
name: 'Stpv Dark v2',
|
||||
props: {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
id: '43eeb316-8e4f-4e45-91ad-bc794fea3ea4',
|
||||
id: 'stpv-light',
|
||||
base: 'light',
|
||||
name: 'Stellacolor Transparent',
|
||||
props: {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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)),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue