Git Product home page Git Product logo

logseq-dev-theme's Introduction

Logseq Dev Theme

🔔 Looking for maintainers! 🔔

A theme inspired by Dev.to & Figma.

This theme is actively maintained and used on a daily basis by the author. It should have the best UX on macOS.

Features:

  • providing bullet threading for editing blocks (also available as a standalone plugin)
  • elegant font choices
  • delightful colors for markers

Working Demo

Check out my published knowledge garden at https://pengx17.github.io/knowledge-garden/. Though since the graph is read-only, you cannot test the bullet threading feature with it.

Usage

Marketplace

This theme and bullet threading is available in the Marketplace.

Using custom.css

Another way to adopt this theme is to use jsDelivr CDN by adding the following line to your custom.css. You can also change the @main part to use the latest version. This is the ONLY way to stylish your published graph for now.

/* This must be the first line of the custom.css with other import rules */
@import url("https://cdn.jsdelivr.net/gh/pengx17/logseq-dev-theme@main/custom.css");

/* You can also add other styles below to override the default theme values */

Customization

This theme does not provide official customization options. However, you can still change most of the colors and fonts. Please take a look this issue for guidance.

Caveats

  • If your theme defines border colors for the children-block, the bullet threading css may not work as expected.
  • This theme is guaranteed to work with the latest Logseq version WITHOUT backward compability.

Demo (might be outdated)

demo

demo.mp4

Changelog

You may refer to Changelog, but it might not be well organized.

Credits

PiotrSss for his clean-themes

logseq-dev-theme's People

Contributors

denarocf avatar liby avatar pengx17 avatar qbosen avatar semantic-release-bot avatar ssakhavi avatar unickcheng avatar yoyurec 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

logseq-dev-theme's Issues

Selected block is not highlighted

I am using this theme as suggested in the README:

/* This must be the first line of the custom.css with other import rules */
@import url("https://cdn.jsdelivr.net/gh/pengx17/logseq-dev-theme@main/custom.css");

/* You can also add other styles below to override the default theme values */

With this, starting in mid-December I think, the selected block is not highlighted. Meaning, for instance typing something and then toggling Esc, there is no blue highlight showing me where I was typing before. I already tried: clearing cache, re-indexing the graph, and refreshing the graph. Nothing helped. The only way now to get the highlight is to copy the entire custom.css from this repo into my custom.css.

Block background colors make some text hard to read

In both light and dark mode, I've noticed that setting block background colors sometimes makes text hard to read, especially for things like TODOs.

Dev.background.colors.mp4

Ideally the background colors would be recolored as well to match the theme. Some existing colors work, but in general I think switching to pastel tones would be much more readable.

Bullet Threading Problems

  1. The location of the bullet of a heading block will change when activated (from the center to the top of a block).
    image
    image
  2. I feel that the thread outside a coding block should not extend along with the coding block.
    image

Priority Mark 显示为灰色,求助

使用 [#A] 等 priority mark 显示为灰色,不知道是什么原因,可能是字体的问题。
image
logseq version: 0.35.0
logseq-dev-theme version: 1.20.6

尝试将 logseq-dev-theme 版本切换为 1.12.0,priority mark 显示正常
image

可能是字体问题,对 css 不熟悉,求助大佬!

Priority Marker Emoji White Space Collapsed

On MacOS, the white spaces of priority marker emojis collapse. Probably related to this.
image

Proposed solution: use both ::before and ::after to enforce margin on the emojis.
My custom.css:

/* priority marker emoji white space collapse */
a[priority]::after {
  font-size: var(--ct-inline-code-font-size);
}

a[priority="A"]::before,
a.priority[href="#/page/A" i]:before {
  content: "🔴";
  visibility: visible;
}

a[priority="B"]::before,
a.priority[href="#/page/B" i]:before {
  content: "🟡";
  visibility: visible;
}

a[priority="C"]::before,
a.priority[href="#/page/C" i]:before {
  content: "🟢";
  visibility: visible;
}

a[priority="A"]::after,
a.priority[href="#/page/A" i]:after {
  content: "A";
  visibility: visible;
}

a[priority="B"]::after,
a.priority[href="#/page/B" i]:after {
  content: "B";
  visibility: visible;
}

a[priority="C"]::after,
a.priority[href="#/page/C" i]:after {
  content: "C";
  visibility: visible;
}

a[priority]::before,
a.priority:before {
  width: initial;
  margin-left: 0;
  margin-right: .5em;
}

a[priority]::after,
a.priority:after {
  border-radius: 50%;
  color: var(--ls-primary-text-color);
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  height: 1rem;
  line-height: 1rem;
  text-align: center;
  margin-right: .3em;
}

After fix:
image

Tooltip style

Hi,

I noticed that the tooltip style on the Dev theme is different from the default theme

Dev Theme:

Default Theme:

This may have been effected by a recent change, logseq/logseq#3170.

I personally prefer the default theme style, and I am not sure if the change is intentional. I also find that the border color (black) does not match well with the theme color scheme

advanced query result title looks bad

when I use advanced query and specify the title, the title in the result looks bad. some text is overlapped by the title.

here is the demo query to reproduce the problem.

#+BEGIN_QUERY
{
    :title [:h2 "🔨 doing"]
    :query [
        :find (pull ?b [*])
    ...
}

image

if I use h1,

image

Bullet Threading on Android misaligned

I love and rely heavily on bullet threading on my desktop. But the thread misaligned on my Android tablet (latest css code).

image

If Android and Windows apps use 2 different css system, I don't know if you would consider support for bullet threading on mobile as well?

Guidelines for changing some basic features

Could you add a "how to" for those who would like to tweak some basic settings, such as the default colors for URL links and [[links]], as well as underlining tasks, font size, etc.?

Highlight color

Is it currently not possible to overwrite the highlight color? Its using logseq default theme color

关于加粗效果的小建议

您好!我特别喜欢这个Logseq-dev-theme,

不过有一处显示效果上的小建议:

如果为一级标题设置底色,字体是呈现白色的比如:
image
这个时候如果加粗一级标题,在light模式下字体反而会变成黑色,如下图所示:
image
由于LogSeq提供的看起来都是深色的底色,配上黑色的文字的效果就打了折扣。在Dark模式下则无此问题。

个人是技术小白,因此不太会修改css文件,如果可以的话,是否能告诉我要如何调整呢?

再次感谢您开发这个特别棒的主题!

Issue with guideline width and color

Since yesterday I started having a thick guideline with a different color. Perhaps is related to some Logseq update?

At the moment I get the following guidelines which make the bullet threading look off place as well:

CleanShot 2021-12-30 at 21 17 34@2x

I have managed to fix that temporarily with the following CSS:

.block-children {
  border-left-width: 0px;
  margin-left: -1px;
}

which makes it look like this:

CleanShot 2021-12-30 at 21 18 17@2x

I don't have any other modifications on my custom.css so I'm assuming I'm not the only one facing this issue. Similar behavior happens with different themes. Hopefully, you can reproduce it as well.

Thanks in advance!

Use Mono Spaced Font During Editing

I think it would be really helpful that during editing, the font in the focused block will automatically switch to a mono spaced font. For example, when I am editing a marked down table, mono sized font will make alignment much easier. Currently, my hot fix is adding this to the custom css file:

.editor-wrapper{
  font-family: var(--ct-code-font-family);
}

Not able to scroll horizontally

Hi,
I was playing around with table queries and when the table becomes too wide due to adding many properties in the table, or just long values (like a long title), then I cannot scroll horizontally to see the rest of the table. I tried with other themes (including the default one) and horizontal scrolling is enabled, but when using your theme then it is disabled for some reason.

Misaligned new page

The new page button position appears to be misaligned.

2022-01-12_08-05

Setting the position to relative in my custom.css seems to resolve the issue.

.left-sidebar-inner .new-page {
  position: relative;
  bottom: 0;
}
nav.px-2 {
  padding-bottom: .5rem;
}

2022-01-12_08-54

minor CSS cleanup for default italic fonts

Hi! Thanks for a great theme.

I figured out changing to my local Calendas font. Turns out the text fonts are hard-coded in two places instead of one -- took me a while to figure out why italics weren't working.

I'd recommend changing the custom.css in the theme so that the i italic tag uses the --ls-font-family variable:

i {
  font-family: var(--ls-font-family);
}

It's pretty:
image

For reference, here's my entire custom.css:

/* This must be the first line of the custom.css with other import rules */
@import url("https://cdn.jsdelivr.net/gh/pengx17/logseq-dev-theme@main/custom.css");

/* You can also add other styles below to override the default theme values */
/* see https://github.com/pengx17/logseq-dev-theme/ for the source CSS */

@font-face {
  font-family: "Calendas Plus";
  src: 
    local("Calendas Plus"), 
    local("Calendas-Plus"),
    format('opentype');
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "Calendas Plus";
  src: 
    local("Calendas Plus Bold"), 
    local("Calendas-Plus Bold"),
    format('opentype');
  font-style: normal;
  font-weight: bold;
}

@font-face {
  font-family: "Calendas Plus";
  src: 
    local("Calendas Plus Italic"), 
    local("Calendas-Plus-Italic"),
    format('opentype');
  font-style: italic;
  font-weight: normal;
}

:root {
  --ct-text-size: 16px;
  --ct-line-height: 1.6;
   --ls-font-family: "Calendas Plus", "Only Emoji", "Source Sans 3 VF", "Source Han Sans VF",
    sans-serif;
  --ct-page-title-font-family: var(--ls-font-family);
  --ct-code-font-family: "Fira Code", monospace;
}

/* need also to override i or the italic font doesn't get used */
i {
  font-family: var(--ls-font-family);
}

Broken in 0.4.6

After the app is updated to 0.4.6, the main content area can no longer scroll when the theme is applied. Also, the right sidebar can scroll, but there is a blank bar at the bottom of the right sidebar.
image

Dev theme UI improvement for mobile

Hello, the CSS theme is superb! But the UI could be slightly bit bigger! I mean overall the font sizes and the clickable elements. :)

Sometimes it's hard to navigate around.

[Question] How to detect iOS

Hi,

I'm using this awesome theme in the desktop app in mac and just starting trying the iOS app. At the moment, and understandably, the theme does not fit entirely well the iOS app, such as the header, and the bullet threading.

Is there a way to detect whether the app is running on the desktop or in iOS in the custom.css app, so for now, I can just disable any theme when running in iOS?

Thanks in advance!

Turn off transparency on top bar

Fantastic theme all around, thank you! Especially like query boxes and titles and the task displays.

If I wanted to turn off the transparency on the very top bar, is this easy?

Would it be possible to do via the plugin config/settings json? Is that even available for themes?

If not, any leads on doing it manually is appreciated. It's rendering poorly on my particular display, and making it hard to use the otherwise wonderful theme on this particular display.

Thanks much!

Perhaps a BUG: h5 displays wrong

Like this screenshot, h5 cannot fully display in my logseq. But it can fully display in default theme.
Why? Is it a bug? Or cause I using Windows? Or the font problem, etc?
System: win10x64 logseq 0.6.7 theme v1.26.3
image

[Question] How to install in offline mode

Hello,
I'm pleased to use this awesome theme in logseq.

The only problem is I'm in offline, network disconnected environment.
I already tried with custom.css but there is font issue, maybe.

Could you plese guide how I can install this theme to offline logseq?

Thanks.

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.