mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 06:50:28 +03:00
BlackTheme
This commit is contained in:
parent
e6f4eeca8e
commit
220fea107c
2 changed files with 60 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { lightTheme } from 'folds';
|
import { lightTheme } from 'folds';
|
||||||
import { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
import { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
||||||
import { onDarkFontWeight, onLightFontWeight } from '../../config.css';
|
import { onDarkFontWeight, onLightFontWeight } from '../../config.css';
|
||||||
import { butterTheme, darkTheme, silverTheme } from '../../colors.css';
|
import { butterTheme, darkTheme, silverTheme, blackTheme } from '../../colors.css';
|
||||||
import { settingsAtom } from '../state/settings';
|
import { settingsAtom } from '../state/settings';
|
||||||
import { useSetting } from '../state/hooks/settings';
|
import { useSetting } from '../state/hooks/settings';
|
||||||
|
|
||||||
|
|
@ -37,9 +37,13 @@ export const ButterTheme: Theme = {
|
||||||
kind: ThemeKind.Dark,
|
kind: ThemeKind.Dark,
|
||||||
classNames: ['butter-theme', butterTheme, onDarkFontWeight, 'prism-dark'],
|
classNames: ['butter-theme', butterTheme, onDarkFontWeight, 'prism-dark'],
|
||||||
};
|
};
|
||||||
|
export const BlackTheme: Theme = {
|
||||||
|
id: 'black-theme',
|
||||||
|
kind: ThemeKind.Dark,
|
||||||
|
classNames: ['black-theme', blackTheme, onDarkFontWeight, 'prism-dark'],
|
||||||
|
};
|
||||||
export const useThemes = (): Theme[] => {
|
export const useThemes = (): Theme[] => {
|
||||||
const themes: Theme[] = useMemo(() => [LightTheme, SilverTheme, DarkTheme, ButterTheme], []);
|
const themes: Theme[] = useMemo(() => [LightTheme, SilverTheme, DarkTheme, ButterTheme, BlackTheme], []);
|
||||||
|
|
||||||
return themes;
|
return themes;
|
||||||
};
|
};
|
||||||
|
|
@ -51,6 +55,7 @@ export const useThemeNames = (): Record<string, string> =>
|
||||||
[SilverTheme.id]: 'Silver',
|
[SilverTheme.id]: 'Silver',
|
||||||
[DarkTheme.id]: 'Dark',
|
[DarkTheme.id]: 'Dark',
|
||||||
[ButterTheme.id]: 'Butter',
|
[ButterTheme.id]: 'Butter',
|
||||||
|
[BlackTheme.id]: 'Black',
|
||||||
}),
|
}),
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -236,3 +236,55 @@ export const butterTheme = createTheme(color, {
|
||||||
OnContainer: '#F2EED3',
|
OnContainer: '#F2EED3',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
export const blackTheme = createTheme(color, {
|
||||||
|
...darkThemeData,
|
||||||
|
Background: {
|
||||||
|
Container: 'black',
|
||||||
|
ContainerHover: 'none',
|
||||||
|
ContainerActive: 'gray',
|
||||||
|
ContainerLine: 'white',
|
||||||
|
OnContainer: 'white',
|
||||||
|
},
|
||||||
|
Surface: {
|
||||||
|
Container: 'noen',
|
||||||
|
ContainerHover: 'none',
|
||||||
|
ContainerActive: 'none',
|
||||||
|
ContainerLine: 'none',
|
||||||
|
OnContainer: 'none',
|
||||||
|
},
|
||||||
|
|
||||||
|
SurfaceVariant: {
|
||||||
|
Container: 'none',
|
||||||
|
ContainerHover: 'none',
|
||||||
|
ContainerActive: 'none',
|
||||||
|
ContainerLine: 'none',
|
||||||
|
OnContainer: 'none',
|
||||||
|
},
|
||||||
|
|
||||||
|
Primary: {
|
||||||
|
Main: 'white',
|
||||||
|
MainHover: 'gray',
|
||||||
|
MainActive: 'white',
|
||||||
|
MainLine: 'white',
|
||||||
|
OnMain: 'black',
|
||||||
|
Container: 'black',
|
||||||
|
ContainerHover: 'gray',
|
||||||
|
ContainerActive: 'white',
|
||||||
|
ContainerLine: 'white',
|
||||||
|
OnContainer: 'white',
|
||||||
|
},
|
||||||
|
|
||||||
|
Secondary: {
|
||||||
|
Main: 'none',
|
||||||
|
MainHover: 'none',
|
||||||
|
MainActive: 'none',
|
||||||
|
MainLine: 'none',
|
||||||
|
OnMain: 'none',
|
||||||
|
Container: '#none',
|
||||||
|
ContainerHover: 'none',
|
||||||
|
ContainerActive: 'none',
|
||||||
|
ContainerLine: 'none',
|
||||||
|
OnContainer: 'none',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue