Git Product home page Git Product logo

obsidian-atom's Introduction

Obsidian Atom

A theme for Obsidian based on Atom's One Dark and One Light themes.

Why?

  • Close to Obsidian's default interface, but implements several tweaks to make the interface prettier
  • Replaces the default ugly syntax highlighting theme for code blocks with a much nicer one

Screenshot

Installation

  1. In obsidian, click Settings -> Appearance -> Theme -> Manage
  2. Search for "Atom" and click "Install and use"
  3. Pick either light or dark theme in Obsidian's appearance settings!

obsidian-atom's People

Contributors

edgarasben avatar kognise avatar queensferryme avatar t43wiu6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

obsidian-atom's Issues

The Toggle Hightlight Colour too bright!

The toggle highlight colour is too bright to see the underlying icon.
Plus it's too harsh and distracting at Night. I know it's possible for me to go in and change but I think it shouldn't be there at all by default.

image

Feature Request: Please add Tasks aware bullets

There are a few themes out there that correctly use other icons for cancelled and deferred tasks. Atom currently does not.

The screenshot here is from the "Border" theme that shows cancelled tasks...

image

Here is the behaviour with the "Atom" theme:

image

Great work regardless... thank you!!!

File explorer added padding causes issues with unsupported file extensions

Edit: Whoops, accidentally created issue before I wrote the description

The padding applied to .nav-file, .nav-folder applies to hidden items with unsupported file extensions as well, which causes them to generate blank spaces which can be accidentally clicked on. Removing the .nav-file selector fixed this issue. I'm not very fluent with CSS, but if there is a way to not apply the padding to child <div> elements with the is-unsupported class, that would work as well.

Start of note titles cut off in nav file titles

Thanks for this great theme! I've been using it for a few weeks now and am very happy with all but one minor issue. The beginning of every note title in the nav tab is missing:
image
Those dates should obviously start with a complete "2", and the entire "T" is missing from "Template", as well as a pixel or two of the "e".

The problem seems to be a combination of the base style

.nav-file-title-content {
    text-indent: -10px;
}

and the theme style

.nav-file-title-content {
    overflow: hidden;
}

Note that nav folder titles do appear correctly. As far as I can tell, this is because they don't have the base text-indent: -10px, so the theme's overflow: hidden isn't causing a problem.

Line spacing breaks when changing the font size.

Hello,

Thanks a lot for this awesome theme. I like it a lot. But I am facing an issue. When I change the font size, the line spacing breaks and it gets all jumbled up. The issue is especially prominent in the header sections.

This is the editor view
image

And here is the preview
image

And this is what happens if I increase the fonts
image

Adaptation problems with the Outliner plugin in the new Live Preview mode

Hi, thank you for developing such an excellent theme. However, I noticed that the vertical line for the outline disappeared in the new version of the theme with the outliner plugin. I remember that in the old version when using Outliner the vertical lines would appear. You can see the picture below.

150365928-3822e55f-813f-4131-bc64-63b5443b4e60

The vertical lines under the original theme can be displayed, please see the image below

150366122-2729e590-768c-4386-948e-60cd72d83009

mjx-container - not handling centre

Is there a reason this rule was included? My understanding of MathJax is that double $$ should centre the equation, and you use single $ for inline. This css rule overwrites this behaviour unfortunately.

List elements

I don't know if this is only in the ATOM theme, if not maybe you can forward this at the right place.

Bullet points folding issue

See image:
https://i.imgur.com/yQ2hpFq.png

Here is the code to test it yourself:

- Create\
  those **files** into `.\PortableGit\home` (we'll edit them later):
    - `.\PortableGit\home\.gitconfig`\
       This will be your public Git config file (more informations later)

    - `.\PortableGit\home\.profile`\
       This file will start your SSH agent automatically (more informations later)

In Editor Life-View mode you have a strange space in the middle of the lists.
You can collapse all bulletpoints in Life-View Mode but not in the Reading-Mode.

Another thing to mention is that in your Atom Theme the bullets have a different style then in the Life-Preview mode.
Maybe you can adjust this aswell so that your Reading-Mode style match the Life-View (Editor) style.
The Reading mode is great, the editor just don't match this.

Reading Mode

OBSOLETE:
This seems to be fixed in a newer Obsidian Version and it wasn't about Atom Theme I would say.
You can ignore the "Reading Mode" section.

I added this CSS to my custom snippets to "fix" your ATOM theme listing elements:

.markdown-rendered.show-indentation-guide li > ul::before,
.markdown-rendered.show-indentation-guide li > ol::before
{ /* ALL li (2nd level+) vertical line */
  margin-left: 2px !important;
}

This aligns the vertical line directly below the bullet points.

Simply test it with this code:

- List entry 1
- List entry 2
    - List entry 2.1
    - List entry 2.2
    - List entry 2.3
        - List entry 2.3.1
        - List entry 2.3.2

You also can see the visual difference between Editor Life-View and Reading-Mode here.

Mathjax isn't centered anymore after latest update

When using $$latex$$ it would usually be centered, but since the latest update it's not centered anymore.
Default theme displays it correctly. Also the font themes very large.

Expected (default theme):
grafik

Actually (atom theme):
grafik

Remove max width on preview?

Is this line necessary?

max-width: 900px !important;

It overrides the obsidian setting for readable line length, and it just seems to be far too wide for the body font size. Not sure why it's here or what problem it's solving, but could it be more targeted to that problem or removed altogether?

Emojis broken in Markdown Preview

Emojis render as oversized in the preview. They render normally with the default theme.

A picture (or two) is better than a thousand words :

Editor view :

image

Preview :

image

Changing zoom level alters spacing between lines

When changing the zoom level, the space between the lines is also altered, as can be seen in the following image:
obsidian
I've seemed to have narrowed down the issue to the following property on <p>:

.markdown-preview-view.is-readable-line-width .markdown-preview-section, .markdown-source-view.is-readable-line-width .CodeMirror {
    max-width: 900px !important;
    line-height: 26px;
}

Disabling line-height seems to fix the issue.

LaTeX in headers is rendered at the wrong size.

This can be easily remedied by removing the font-size: 20px; line in the mjx-container[jax='CHTML'] rule.

To see what I'm talking about, create a new note with:

# Cool math: $\mathbb R^3$

I would open a PR, but forking the entire repo to change a single line of code seems a bit overkill ๐Ÿ˜…. I've been using this change on my personal Atom.css and haven't noticed any formatting issues.

While we're at it, I'd suggest adding

.math-block {
  font-size: 1.25em;
}

as this makes $$ math blocks much easier to read.

Thanks for the super cool theme!

Folder name line offset

The vertical lines in the folder navigation are a bit to far on the left, not directly below the arrow to fold it together.

Like you can see here on the screenshot:
https://i.imgur.com/3HrZWln.png

Also I added this to my custom CSS snipped to add a little space between the folder name and the arrorow:

.nav-folder-title-content
{
  padding-left: 4px;
}

Maybe this helps to improve your ATOM theme for Obsidian.

Fav Menu Icon and Text (starred menu)

I added this code to a custom css file:

/* OBSIDIAN GUI --------------------------------------------------------------- */
.workspace-leaf-content[data-type="starred"] .item-list .nav-file-icon
{
  position: relative;
  top: 1px;
}

.workspace-leaf-content[data-type="starred"] .item-list .nav-file-title-content
{
  position: relative;
  top: -2px;
}

This will fix it like this:
https://imgur.com/a/psoi7kl

( 1 ) is default Atom Theme which have a styling issue for the favourites menu.
( 2 ) is my CSS-Fix for Atom Theme. Even if you hover it it's perfectly centered.

Please implement this fix to the default Atom Theme for everyone.

Increase max-width in live preview mode?

How do I get a wider text width in live preview mode?
Changing the max-width in this section

.markdown-preview-view.is-readable-line-width .markdown-preview-section, .markdown-source-view.is-readable-line-width .CodeMirror {
  max-width: 900px;
  line-height: 26px;
}

Only changes the max-width in preview mode, not the live preview.
By default it's quite a lot narrower than in the live preview, but I'd like them to be the same.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.