question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help with Some Styling Variables for Themes

See original GitHub issue

I’m trying to create some new themes of my own but have encountered 2 issues with trying to modify the following characteristics:

  • The grid color
  • Sabaki’s background to the Go board — I’ve only managed to do it outside the .asar file, inside the preferences’ theming tab

Are there ways of modifying those characteristics and embed them in the .asar file? If so, is there documentation about it — I couldn’t find it neither here nor here —?

Additionally, are there ways of modifying more of Sabaki’s styles through CSS?

And does anyone know how to open the inspector on Linux? I’ve tried googling it and using the shortcuts I use on my browser and on Windows but nothing really worked.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ParmuzinAlexandercommented, Jun 7, 2021

Grid color .shudan-goban {--shudan-board-foreground-color: #000;} Board color

.shudan-goban {--shudan-board-background-color: #FFF;}
.shudan-goban-image {background-image: none;}

You may be interested in some of the tricks that I personally use. P.S. Disable bar very extreme change, use only background settings for fixing bug https://github.com/SabakiHQ/Sabaki/pull/542

/* Stones texture */
.shudan-stone-image.shudan-sign_1 {background-image: url('0.png');}
.shudan-stone-image.shudan-sign_-1 {background-image: url('1.png');}
.shudan-stone-image.shudan-sign_-1.shudan-random_1 {background-image: url('2.png');}
.shudan-stone-image.shudan-sign_-1.shudan-random_2 {background-image: url('3.png');}
.shudan-stone-image.shudan-sign_-1.shudan-random_3 {background-image: url('4.png');}
.shudan-stone-image.shudan-sign_-1.shudan-random_4 {background-image: url('5.png');}
/* 100% stones size */
.shudan-vertex .shudan-stone {top: 0; left: 0; width: 100%; height: 100%;}
/* Black lines and disable borders */
.shudan-goban {--shudan-board-border-width: 0; --shudan-board-foreground-color: #000;}
.shudan-goban:not(.shudan-coordinates) {padding: 0;}
/* Board texture */
.shudan-goban-image {background-image: url('board1.png');}
/* Disable stones shadow */
.shudan-vertex:not(.shudan-sign_0) .shudan-shadow {background: none; box-shadow: none;}
/* Disable bar */
#bar {visibility: hidden;}
main {bottom: 0; background: #f0f0f0 url('background1.png') left top;}
/* Disable goban shadow */
#goban {box-shadow: none;}
/* Disable last move marker */
.shudan-vertex.shudan-marker_point.shudan-sign_1 .shudan-marker {background: none;}
.shudan-vertex.shudan-marker_point.shudan-sign_-1 .shudan-marker {background: none;}
/* Heat map */
.shudan-vertex .shudan-heat {transition: opacity 0s, box-shadow 0s;}
.shudan-vertex.shudan-heat_9 .shudan-heat {background: #009900; box-shadow: 0 0 0 .5em #009900; opacity: 1;}
.shudan-vertex.shudan-heat_8 .shudan-heat {background: none; box-shadow: none; opacity: 1;}
.shudan-vertex.shudan-heat_7 .shudan-heat {background: none; box-shadow: none; opacity: 1;}
.shudan-vertex.shudan-heat_6 .shudan-heat {background: none; box-shadow: none; opacity: 1;}
.shudan-vertex.shudan-heat_5 .shudan-heat {background: none; box-shadow: none; opacity: 1;}
.shudan-vertex.shudan-heat_4 .shudan-heat {background: none; box-shadow: none; opacity: 1;}
.shudan-vertex.shudan-heat_3 .shudan-heat {background: none; box-shadow: none; opacity: 1;}
.shudan-vertex.shudan-heat_2 .shudan-heat {background: none; box-shadow: none; opacity: 1;}
.shudan-vertex.shudan-heat_1 .shudan-heat {background: none; box-shadow: none; opacity: 1;}
.shudan-vertex .shudan-heatlabel {color: white; font-size: .38em; line-height: 1; text-shadow: none; opacity: 1;}
1reaction
yishncommented, Sep 16, 2021

For future reference: https://github.com/SabakiHQ/Shudan/blob/master/docs/README.md#styling

Foreground color also refers to marker/label/arrow/line color on non-stone vertices.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create better themes with CSS variables
In this article, we'll explore what makes CSS variables special and some of the ways in which they can benefit us today. What...
Read more >
Dynamic theme with CSS Variables - Medium
Customize the theme with CSS variables. Enable theming with CSS variables is extremely simple and straightforward, with the following steps: ...
Read more >
How to easily create themes with CSS Variables
CSS Variables enable you to do this in a simpler and more flexible way than was previously possible. In this article, I'll explain...
Read more >
Live Theming with CSS Variables | Jonathan Harrell
CSS variables are opening up exciting new possibilities, like creating a very performant live theme editor that dynamically updates CSS values.
Read more >
How to make multi-theme support using CSS variables
For this to work, you do need to spend some time organizing your CSS code. And that is to define your styling using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found