Typora-foresee-theme icon indicating copy to clipboard operation
Typora-foresee-theme copied to clipboard

Theme supports for dark and light mode.

Typora foresee theme

中文 | English


Thanks

Based on default night theme modifies my theme

Selected textstyle is inspired by typora-dyzj-theme

How to use

  1. Clone this repository or download zip
  2. Typora open Settings>Apperance>Theme,click the buttonopen theme folder
  3. Copy and paste files into the theme folder

Features

  • Automatically switch theme mode based on the appearance of the system
  • User defined color configuration
  • Modular design approach adapts to diverse needs
  • Use scss format substitute original css

BREAKING CHANGES

Code Style

Inline code

[!note] Use Mac keyboard style for line code and kbd element

inline code like this

PixPin 2024 10 07 10 52 46

kbd element like this

PixPin 2024 10 07 11 06 58

[!important] Please go to Preferences>Markdown> to turn on displaying line numbers for a better experience

  1. Support custom cursor color

PixPin 2024 08 18 00 01 001bbf1d3c1f79dab1

  1. Different code style based on the appearance of the system

PixPin 2024 08 18 17 20 32

PixPin 2024 08 18 17 20 09

Blockquote

  1. Default blockquote style use theme single color

You can type > to insert blockquote by default

截屏2024 07 24 21.25.23

  1. Blockquote style supports linear-gradient
<blockquote alt = 'green'>green</blockquote>
<blockquote alt = 'blue'>blue</blockquote>
<blockquote alt = 'orange'>orange</blockquote>
<blockquote alt = 'purple'>purple</blockquote>
<blockquote alt = 'red'>red</blockquote>

PixPin 2024 08 18 17 17 04

  1. Github blockquote style
> [!note]
>
> Note text

> [!tip]
>
> Tip text

> [!warning]
>
> Warning text

> [!caution]
>
> Caution text

> [!important]
>
> Important text

PixPin 2024 08 18 17 13 52

  1. Blockquote style can change its color when it close to heading

PixPin 2024 08 18 17 40 31

Title

[!note] Redesign header style and its focus mode

PixPin 2024 08 18 17 23 46

Icon

<section alt="note">note text</section>
<section alt="info">info text</section>
<section alt="tip">tip text</section>
<section alt="warning">warning text</section>
<section alt="caution">caution text</section>
<section alt="important">important text</section>

PixPin 2024 08 18 17 15 57

[!tip] Provide local small icon in which foldername called icon

[!important] Copy and save in a fixed location on your computer, and directly reference the file to the image

badge592266035bf8b236

Badge

PixPin 2024 08 18 17 19 26

Personalities

[!warning] The foresee-XXX.css file located in the root directory of the files is compressed by default. Please modify the foresee.scss file located in the foresee folder so that you can make your own personal style

$display: (
  light:#FFF,
  dark:#666
);

$article: (
  light:#FFF,
  dark:#323232
);

$sidebar: (
  light: #F2F2F2,
  dark: #3E3E3E
);

$textColor: (
  light:#DEDEDE,
  dark:#323232
);

$tomato: #ff6347;

$purple: #ff00ff;

$blue: #00bfff;

$green: #00cd66;

$orange: #ff8c00;

$red: #f14669;

/* Gradient colors */

$black-gradient: #596164, #646c70, #6f787d, #7a8389, #868f96;

$blue-gradient: #005bea, #007bf9, #0097ff, #00affe, #00c6fb;

$tomato-gradient: #ed2842, #f33d58, #f7506d, #fa6181, #fb7294;

$orange-gradient: #e9a11a, #eab211, #e8c40a, #e5d50f, #dee71d;

$purple-gradient: #c471f5, #d66feb, #e46fe1, #f06fd7, #fa71cd;

$green-gradient: #0ba360, #39b05d, #57bc5a, #72c856, #8ed451;

/*  You can change theme color and theme gradient color */

$themeColor: $orange;

$focusColor: $green;

$themeGradient:$orange-gradient;

$focusGradient:$green-gradient;

:root {
  --bg-color: map-get($article, light);
  --select-text-bg-color: map-get($display, dark);
  --text-color: map-get($textColor, dark);
  --primary-color: $themeColor;
  --rawblock-edit-panel-bd: map-get($sidebar, light);
  --item-hover-bg-color: $themeColor;
  --control-text-hover-color: $themeColor;

  --md-char-color: rgba(72, 93, 108, 0.75);
  --meta-content-color: var(--md-char-color);
  --primary-btn-text-color: var(--text-color);
  --active-file-text-color: $themeColor;
}

// Custom fonts and style

$border-radius: 6px;

$font-family: "Microsoft YaHei", "PingFang SC", "Arial", "sans-serif";

/* you can change default page width
#write {
  max-width: 914px;
} 
*/

Tutorial

Visit wiki to learn tutorial

Preview

Dark mode

dark en

Light mode

light en

Purpose of use

  • classify my files

  • left the footprint of learning

  • enlighten other's thoughts