1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-04 23:21:17 -05:00

feat(themes): added dracula theme (#92)

* added dracula theme

* change border color from white

Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
This commit is contained in:
Nguyen Thanh Quang 2021-08-28 05:33:32 +07:00 committed by GitHub
parent e7c58a4847
commit b5e882f07e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 2 deletions

View file

@ -8,6 +8,7 @@ import ayu_mirage from 'lib/themes/ayu_mirage';
import ayu_light from 'lib/themes/ayu_light';
import nord from 'lib/themes/nord';
import polar from 'lib/themes/polar';
import dracula from 'lib/themes/dracula';
import { useStoreSelector } from 'lib/redux/store';
import createTheme from 'lib/themes';
@ -18,7 +19,8 @@ export const themes = {
'ayu_mirage': ayu_mirage,
'ayu_light': ayu_light,
'nord': nord,
'polar': polar
'polar': polar,
'dracula': dracula
};
export const friendlyThemeName = {
@ -28,7 +30,8 @@ export const friendlyThemeName = {
'ayu_mirage': 'Ayu Mirage',
'ayu_light': 'Ayu Light',
'nord': 'Nord',
'polar': 'Polar'
'polar': 'Polar',
'dracula': 'Dracula'
};
export default function ZiplineTheming({ Component, pageProps }) {

17
src/lib/themes/dracula.ts Normal file
View file

@ -0,0 +1,17 @@
// https://github.com/AlphaNecron/
// https://github.com/dracula/dracula-theme
import createTheme from '.';
export default createTheme({
type: 'dark',
primary: '#BD93F9',
secondary: '#6272A4',
error: '#FF5555',
warning: '#FFB86C',
info: '#8BE9FD',
border: '#7D8096',
background: {
main: '#282A36',
paper: '#44475A'
}
});