All Projects → kepano → obsidian-advanced-appearance

kepano / obsidian-advanced-appearance

Licence: MIT license
Change Obsidian colors, fonts and other cosmetic settings

Programming Languages

typescript
32286 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to obsidian-advanced-appearance

obsidian-hider
Hide Obsidian UI elements such as tooltips, status, titlebar and more
Stars: ✭ 106 (+202.86%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-url-into-selection
Paste URLs into selected text "notion style"
Stars: ✭ 129 (+268.57%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-link-archive
Link Archive plugin for Obsidian
Stars: ✭ 94 (+168.57%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-tracker
A plugin tracks occurrences and numbers in your notes
Stars: ✭ 661 (+1788.57%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-metatemplates
Take advantage of YAML front-matter in generating notes from templates (for obsidian.md)
Stars: ✭ 68 (+94.29%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-icon-swapper
Allows swapping out Obsidian's icons
Stars: ✭ 30 (-14.29%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-text-format
Format seleted text in Obsdidian.md
Stars: ✭ 49 (+40%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-rollover-daily-todos
An obsidian plugin that rolls over todo items from the previous daily note
Stars: ✭ 52 (+48.57%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-pangu
为 Obsidian 笔记加上「盘古之白」,排版强迫症者的福音。 | A small plugin aims to add space between Chinese Characters and English Alphabet, and it is a boon for typographically compulsive people.
Stars: ✭ 40 (+14.29%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-search-on-internet
Add context menu items in Obsidian to search the internet.
Stars: ✭ 79 (+125.71%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-todoist-plugin
Materialize Todoist tasks in Obsidian notes
Stars: ✭ 521 (+1388.57%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-smart-typography
Converts quotes to curly quotes, dashes to em dashes, and periods to ellipses
Stars: ✭ 81 (+131.43%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
oz-clear-unused-images-obsidian
Obsidian plugin to clear the images that are not used in note files anymore
Stars: ✭ 92 (+162.86%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-convert-url-to-iframe
Plugin for Obsidian.md to convert a selected URL to an iframe.
Stars: ✭ 132 (+277.14%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-budget-wysiwyg
Obsidian plugin that automatically switches between preview and source mode.
Stars: ✭ 25 (-28.57%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-spaced-repetition
Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian.md
Stars: ✭ 667 (+1805.71%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-tweet-to-markdown
An Obsidian.md plugin to save tweets as Markdown files.
Stars: ✭ 35 (+0%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-emoji-toolbar
No description or website provided.
Stars: ✭ 35 (+0%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-query2table
Represent files returned by a query as a table of their YAML frontmatter (for obsidian.md)
Stars: ✭ 24 (-31.43%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-core-search-assistant-plugin
An Obsidian plugin to enhance built-in search: keyboard interface, card preview, bigger preview
Stars: ✭ 59 (+68.57%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md

Jan 22, 2022 — This plugin is being retired as there are now better options available out there for customization. My focus will remain on Minimal Theme, and Minimal Theme Settings plugin. When I created Advanced Appearance in January 2021, the landscape of Obsidian themes was much less advanced than it is today. The good news is that we now have so many great themes to choose from, many of which support the Style Settings plugin for much deeper customization. Thank you! ❤️ @kepano


Features

Advanced Appearance enables you to customize various aspects of Obsidian:

  • Colors
  • Typography
    • Custom fonts
    • Underlining links
    • Line width
    • Font sizes
  • Extra details
    • Relationship lines
    • Trimming long file names
  • Automatically switch to dark mode based on OS preference

Advanced Appearance works hand-in-hand with Hider Plugin which allows you to remove elements of the Obsidian UI such as the menu ribbon, tooltips, title bar, scrollbars, etc.

Compatible themes

  • Obsidian default theme by Obsidian team
  • Minimal theme by @kepano

Developer documentation

You can access the user's settings via the following CSS variables and classes.

CSS variables

The following CSS variables are defined on the body tag from the user's input:

Variable Description
--accent-h Accent color hue, in deg
--accent-s Accent color saturation, in %
--accent-l Accent color lightness, in %
--accent-d Accent color lightness in Dark mode, in %
--base-h Base color hue, in deg
--base-s Base color saturation, in %
--base-l Base color lightness, in %
--base-d Base color lightness in Dark mode, in %
--font-preview Font used in Preview mode
--font-editor Font used in Edit mode
--font-monospace Font used for monospace text
--font-ui Font used for UI elements
--font-size-primary Font size for body
--font-size-secondary Font size for sidebars
--line-width Number of characters per line
--max-width Maximum width per line

CSS classes for toggles

The following classes are applied to the body tag when the user turns on a feature:

Class Description
.advanced-appearance Advanced Appearance plugin is on
.fancy-cursor Fancy cursor is on
.links-int-on Underline internal links is on
.links-ext-on Underline external links is on
.full-file-names Show full file names is on
.rel-lines-edit Relationship lines in Edit mode is on
.rel-lines-preview Relationship lines in Preview mode is on
.system-shade System-level dark mode is on

CSS classes for theme variants

The following classes are applied to the body tag based on the selected theme variant:

Class Description
.advanced-light Light theme: Default
.advanced-light-tonal Light theme: Low contrast
.advanced-light-contrast Light theme: High contrast
.advanced-light-white Light theme: White
.advanced-dark Dark theme: Default
.advanced-dark-tonal Dark theme: Low contrast
.advanced-dark-black Dark theme: Black

Overriding Advanced Appearance styles

Advanced Appearance styles are loosely scoped, making it possible for you to override them by scoping your overrides to html body, e.g. html body.theme-light.

Modifying color variables

Advanced Appearance allows users to set an accent color and a base color, using HSL sliders. These HSL values are then mapped to Obsidian's default CSS color variables. HSL is used because the values can be easily modified using calc() to generate variations of that color.

You can use these variables to compute shades using calc() in your CSS, for example, the code below generates a color that is 10% darker than the base color:

--background-secondary:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 10%));

You can use this approach to modify the hue and saturation as well.

Theme variants

Advanced Appearance allows users to choose theme variants for both light and dark modes. This allows you create additional styles for accessibility or cosmetic differences.

You can support these by overriding the defaults using the following scope:

body.theme-dark.advanced-dark-black

Make sure to scope your changes to body and .theme-light or .theme-dark.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].