mustakshif / Asri

An ultra-modern minimalistic theme for SiYuan Note.
MIT License
54 stars 4 forks source link
beautify customization minimalistic modernity oklch scss siyuan-note siyuan-theme theme typescript ui

English | ็ฎ€ไฝ“ไธญๆ–‡


banner

Asri, theme for SiYuan

An ultra-modern theme for SiYuan Note, delivers an elegant, efficient, and personalized note-taking experience through its clean, intuitive design.

Latest Updates

v3.1.15

v3.1.14

...

v3.0.0

custom theme color preview

๐ŸŽจ Refactored theme colors using a perceptual lightness-based color system, added supports for seamless adjustment of global color tones which can also follow system accent color (#Windows #macOS), providing a fully personalized note-taking experience. (Check Theme Configurations below for configuration options information)

Check all updates here.

Theme Features

๐Ÿช„ Sleek and Modern Design

๐Ÿ“ Elegant and Efficient Layout

๐Ÿงญ Convenient and Clear Navigation

๐Ÿ‘† Nimble and Smooth Interaction

[^1]: This new feature is only available on platforms that support oklch() and its relative color syntax. Some devices will still use color schemes in previous versions due to lower browser kernel versions.

[^2]: The blank area of the top bar can be used to drag the window (except for the gap between tabs).

[^3]: To disable this feature or address glyph errors when using custom fonts, you can use the following CSS code snippet to restore to standard glyphs:

    .layout-tab-container, .protyle-content, .b3-typography {
        font-feature-settings: normal !important;
    }

[^4]: To automatically hide the scrollbars, go to "System Settings - Appearance" and set "Show scroll bars" to "When scrolling".

Getting Started

Theme Configurations

๐ŸŒˆ Customizing Theme Colors

asri config menu

Click on the Appearance Mode icon in the top right corner to open the Asri theme configuration menu and customize the theme colors:

๐Ÿ“ Custom Attributes

1. afwd: Asri full-width display

full-width-display preview

This attribute allows blocks to be displayed in full page width, which can be used to emphasize specific content or beautify the layout. The full-width display style applies to images, databases, iframes, tables and horizontal-layout superblocks.

To enable full-width display, you can click on the block icons for Document Block and the content block mentioned above, then select Full-width Display in the popup menu to configure it accordingly.

This feature relies on the custom attributes of SiYuan, so you can also manually configure the block attributes. The attribute name and values are shown in the table below:

Attribute Value Description
afwdใ€€ใ€€ - all (Makes all blocks that support this attribute in the document display in full width)
- p (Makes all images in the document display in full width)
- db (Makes all database blocks in the document display in full width)
- iframe (Makes all iframe blocks in the document display in full width, including videos, widgets, and embedded web pages)
- sb (Makes all horizontal-layout superblocks in the document display in full width)
- t (Makes all table blocks in the document display in full width)
Applies to document blocks.
All attribute values except all can be used simultaneously, and should be separated by spaces
afwdใ€€ใ€€ - on (Enable full-width display of the block individually)
- off (Disable full-width display of the block individually)
Applies to paragraph blocks, database blocks, iframe blocks, superblocks and table blocks.
Precautions

2. tdir: Document text direction

Applies exclusively to document blocks, ensuring that content within the block is consistently rendered from left-to-right or right-to-left for ease of writing and reading. This property is independent of global settings and does not override individual layout settings of blocks within the document.

Attribute Value Description
tdir ltr Renders document content from left to right, ideal for left-to-right languages like Chinese and English.
tdir rtl Renders document content from right to left, ideal for right-to-left languages like Arabic.

This attribute does not take effect in backlink lists and export previews.

Acknowledgements

The theme development process drew inspiration from the following sources, and I would like to express my gratitude to their authors:

Reference Content Source Author
- Menu background blur Theme: Cliff-Dark Crowds21
- Dots before sidebar panel list items
- Outline list item icons
- Status bar
- Seach list
- Table column width
- Multi-column / menu
- Bottom dock & status bar mergence
- Multilevel list style
Theme: Savor Roy
- Topbar-tabbar mergence
- File tree indent guides
- MutationObserver related functions
Theme: Rem Craft Seven Chord
- File tree indent guides Liandi post wilsons

๏ผˆThe order in the list above does not imply any ranking๏ผ‰

Feedbacks & suggestions

Notes