mirror of
https://github.com/yazanammar/obsidian-theme-engine.git
synced 2026-07-22 06:44:37 +00:00
2.7 KiB
2.7 KiB
Theme Engine Usage Guide
This guide explains the most common workflows inside Theme Engine.
Profiles: Create, Import, Export
A profile is a complete theme package that can store:
- Colors
- Snippets
- Backgrounds
- Notice rules
- Settings
Create a Profile
- Open
Profile Manager - Click
New - Enter a profile name
- Select:
- Light
- Dark
- Auto
- Save
Export a Profile
- Select the profile
- Click:
Export File
Theme Engine creates a single .json file containing the profile data.
Exported data may include:
- Colors
- Snippets
- Rules
- Background configuration
- Custom variables
Import a Profile
- Click:
Import / Paste (.json)
- Upload a file or paste JSON content
- Choose a new profile name
- Confirm import
Using Backgrounds (Images & Videos)
Theme Engine supports profile-specific backgrounds.
Add a Background
- Navigate to:
Advanced Settings → Set Custom Background
- Click:
+
- Choose one of:
- Upload file
- Drag and drop
- Paste URL
Theme Engine automatically stores and activates the media.
Manage Existing Backgrounds
Open:
Browse
Available actions:
- Preview
- Rename
- Delete
- Activate
Background Settings
Open:
Settings
Available controls:
For videos:
- Opacity
- Mute
For images:
- JPG conversion
- Compression quality
Using CSS Snippets
Theme Engine supports two snippet types.
Profile Snippets
Profile snippets:
- Activate only for one profile
- Export with profiles
- Useful for profile-specific behavior
Example:
h1 {
color: orange;
}
Global Snippets
Global snippets:
- Stay active across all profiles
- Remain independent from profile switching
Example:
body {
font-family: Inter;
}
Snippet Order
Snippets support drag-and-drop ordering.
Lower snippets may override higher snippets.
Notice Coloring Rules
Theme Engine can style notices dynamically based on content.
Create a Rule
- Locate:
Notices
- Click the settings icon beside:
--cm-notice-bg-default
or:
--cm-notice-text-default
- Click:
Add New Rule
Keyword Rules
Examples:
Success
Saved
Warning
Press:
Space
or:
Enter
to add items.
Regular Expression Rules
Example:
\bError\b
Enable:
Regex
Highlight Only Mode
Enable:
Highlight Only
This colors only matching text instead of the entire notice.