Skip to content

Commit

Permalink
Add focus version, update thumbnail and some screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
xypnox committed Mar 25, 2020
1 parent 1ddaf1a commit 34543a5
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 34 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 troennes
Copyright (c) 2020 xypnox

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# XyDark Theme for Typora
# XyDark Theme *for Typora*

A minimalist theme for documentation, note-taking and code snippets. It contains a light theme, **xylight**, and a dark theme, **xydark**.

![Default Screenshot](media/default.png)
There is also xydarkfocus, which fades the sidebar away:

![](media/default.png)

Tested on Linux. The dark theme does not currently support Windows "Unibody" style. Not fully tested, but should work on MacOS.

The default non focus version looks something like:

![](media/no-focus.png)

This theme was made to match my setup, the dotfiles of which can be [found in this repo](https://github.com/xypnox/dotfiles/).

## How to install

1. Download [latest release](https://github.com/xypnox/xydark-typora/releases/latest).
Expand Down
Binary file modified media/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/no-focus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 49 additions & 31 deletions theme/xydark.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@
@import 'xylight.css';

:root {
--accented-background-color: #464B5D;
--accented-background-color: #464b5d;
--light-header-color: #a5a7bd; /* H1-H3 */
--select-text-bg-color: #295080;
--accent-color: rgb(120, 124, 136);
--dark-accent-color: #464B5D;
--background-color: #0F111A;
--font-color: #8F93A2;
--header-color: #EEFFFF; /* H4-H6 */
--dark-accent-color: #464b5d;
--background-color: #0f111a;
--font-color: #8f93a2;
--header-color: #eeffff; /* H4-H6 */
--border-color: #232629;
--link-color: #6699CC;
--code-bg-color: #0C1420;
--hover-bg-color: #050505;
--control-text-color: var(--font-color);
--link-color: #6699cc;
--code-bg-color: #0c1420;
--hover-bg-color: #050505;
--control-text-color: var(--font-color);
--side-bar-bg-color: var(--background-color);
--control-text-hover-color: var(--header-color);
--item-hover-text-color: var(--header-color);
--item-hover-bg-color: var(--hover-bg-color);
--item-hover-bg-color: var(--hover-bg-color);
--bg-color: var(--background-color);
--text-color: var(--font-color);
--meta-content-color: var(--accent-color);
--md-char-color: var(--accent-color);
--window-border: 0px solid rgba(0,0,0,0);
--window-border: 0px solid rgba(0, 0, 0, 0);
--active-file-bg-color: var(--hover-bg-color);
--rawblock-edit-panel-bd: var(--code-background-color);
}

.outline-item:hover {
background-color: var(--hover-bg-color);
}
/*
/*
#write {
cursor: -webkit-image-set(url("night/cursor.png") 1x, url("night/[email protected]") 2x) 8 8, auto;
} */
Expand All @@ -47,13 +47,22 @@ h6 {
color: var(--light-header-color);
}

@media (min-width: 980px) {
h3.md-focus:before,
h4.md-focus:before,
h5.md-focus:before,
h6.md-focus:before {
color: var(--dark-accent-color);
}
}

mark {
background: #b8b80a
background: #b8b80a;
}

table tr:nth-child(2n),
thead {
background-color: #141313;
background-color: #141313;
}

sup.md-footnote {
Expand All @@ -66,12 +75,13 @@ sup.md-footnote {
color: var(--dark-accent-color);
}

table tr:nth-child(2n), thead {
table tr:nth-child(2n),
thead {
background-color: #181c2d;
}

.md-url {
color: #C594C5;
color: #c594c5;
}

/* UI */
Expand All @@ -88,20 +98,20 @@ footer.ty-footer {
background-color: #181c2d;
}


/* Code */

code, .md-fences {
padding: .5em;
background: #0F111A;
/* border: 1px solid #ccc; */
padding: .1em;
font-size: 0.9em;
margin-left: 0.2em;
margin-right: 0.2em;
code,
.md-fences {
padding: 0.5em;
background: #0f111a;
/* border: 1px solid #ccc; */
padding: 0.1em;
font-size: 0.9em;
margin-left: 0.2em;
margin-right: 0.2em;
}

.md-image>.md-meta {
.md-image > .md-meta {
color: var(--accent-color);
}

Expand All @@ -120,15 +130,19 @@ code, .md-fences {
}

.on-focus-mode .md-end-block:not(.md-focus) img,
.on-focus-mode .md-task-list-item:not(.md-focus-container)>input {
.on-focus-mode .md-task-list-item:not(.md-focus-container) > input {
opacity: #4f525a !important;
}

.on-focus-mode li[cid]:not(.md-focus-container){
.on-focus-mode li[cid]:not(.md-focus-container) {
color: #4f525a;
}

.on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *,
.on-focus-mode
.md-fences.md-focus
.CodeMirror-code
> *:not(.CodeMirror-activeline)
*,
.on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
color: #4f525a !important;
}
Expand All @@ -138,6 +152,10 @@ code, .md-fences {
color: var(--light-header-color);
}

.on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * {
.on-focus-mode
#typora-source
.CodeMirror-code
> *:not(.CodeMirror-activeline)
* {
color: #4f525a !important;
}
}
9 changes: 9 additions & 0 deletions theme/xydarkfocus.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import 'xydark.css';

.sidebar-menu {
opacity: 0.3;
}

.sidebar-menu:hover {
opacity: 1;
}

0 comments on commit 34543a5

Please sign in to comment.