2022-05-26 15:18:53 +08:00
: root {
/* 主色 */
2022-10-15 15:22:34 +08:00
--b3-theme-primary : # 3573f0 ;
2024-03-10 11:55:45 +08:00
--b3-theme-primary-light : rgba ( 53 , 115 , 240 , . 72 ) ;
--b3-theme-primary-lighter : rgba ( 53 , 115 , 240 , . 48 ) ;
--b3-theme-primary-lightest : rgba ( 53 , 115 , 240 , . 24 ) ;
2022-05-26 15:18:53 +08:00
--b3-theme-secondary : # f3a92f ;
2023-06-25 23:51:22 +08:00
--b3-theme-background : # 1e1e1e ;
2024-03-10 11:55:45 +08:00
--b3-theme-background-light : rgba ( 255 , 255 , 255 , . 075 ) ;
2023-06-25 23:51:22 +08:00
--b3-theme-surface : # 262626 ;
2022-05-26 15:18:53 +08:00
--b3-theme-surface-light : rgba ( 41 , 42 , 45 , . 86 ) ;
2022-10-14 23:41:53 +08:00
--b3-theme-surface-lighter : rgba ( 230 , 230 , 230 , . 06 ) ;
2022-05-26 15:18:53 +08:00
--b3-theme-error : # d23f31 ;
2023-12-22 10:54:47 +08:00
--b3-theme-success : # 65b84d ;
2022-05-26 15:18:53 +08:00
/* 文字颜色 */
2023-06-26 22:12:31 +08:00
--b3-theme-on-primary : # fff ;
2022-05-26 15:18:53 +08:00
--b3-theme-on-secondary : # fff ;
2023-06-25 23:51:22 +08:00
--b3-theme-on-background : # dadada ;
2022-05-26 15:18:53 +08:00
--b3-theme-on-surface : # 9aa0a6 ;
2023-06-26 22:12:31 +08:00
--b3-theme-on-surface-light : # bababa ;
2022-05-26 15:18:53 +08:00
--b3-theme-on-error : # fff ;
/* 字体 */
2025-03-20 20:32:44 +08:00
--b3-font-family : "Emojis Additional" , "Emojis Reset" , BlinkMacSystemFont , Helvetica , "Luxi Sans" , "DejaVu Sans" , arial , sans-serif , emojis ;
2024-12-15 23:41:31 +08:00
--b3-font-family-protyle : var ( --b3-font-family ) ;
2024-12-18 11:04:32 +08:00
--b3-font-family-code : "Emojis Additional" , "Emojis Reset" , "JetBrainsMono-Regular" , mononoki , Consolas , "Liberation Mono" , var ( --b3-font-family ) ;
2024-11-30 20:23:56 +08:00
--b3-font-family-graph : arial ;
2024-12-18 11:04:32 +08:00
--b3-font-family-emoji : "Emojis Additional" , emojis ;
2022-05-26 15:18:53 +08:00
--b3-font-family-math : KaTeX_Math ;
2024-08-12 17:40:29 +08:00
--b3-font-size : 14px ;
2022-05-26 15:18:53 +08:00
2022-10-14 22:29:40 +08:00
/* 顶部工具栏 */
2023-06-25 23:51:22 +08:00
--b3-toolbar-background : var ( --b3-theme-surface ) ;
2023-06-26 00:06:41 +08:00
--b3-toolbar-blur-background : var ( --b3-border-color ) ;
2023-06-25 23:58:18 +08:00
--b3-toolbar-color : var ( --b3-theme-on-surface ) ;
2023-06-25 23:51:22 +08:00
--b3-toolbar-hover : var ( --b3-theme-background-light ) ;
2023-04-03 19:50:25 +08:00
--b3-toolbar-left-mac : 69px ;
2022-10-14 22:29:40 +08:00
2022-05-26 15:18:53 +08:00
/* 线条 */
2023-06-26 00:06:41 +08:00
--b3-border-color : # 363636 ;
2023-06-28 22:40:34 +08:00
--b3-border-radius : 6px ;
2024-12-12 11:22:17 +08:00
--b3-border-radius-s : 3px ;
2023-06-28 22:40:34 +08:00
--b3-border-radius-b : 12px ;
2022-05-26 15:18:53 +08:00
/* 滚动条 */
--b3-scroll-color : rgba ( 230 , 230 , 230 , . 2 ) ;
/* 列表 */
2024-11-06 10:27:07 +08:00
--b3-list-hover : rgba ( 255 , 255 , 255 , . 075 ) ;
2022-10-18 22:58:46 +08:00
--b3-list-icon-hover : rgba ( 201 , 209 , 217 , . 1 ) ;
2022-05-26 15:18:53 +08:00
/* 菜单 */
2023-06-25 23:51:22 +08:00
--b3-menu-background : var ( --b3-theme-surface ) ;
2022-05-26 15:18:53 +08:00
/* 提示 */
2023-07-05 21:43:14 +08:00
--b3-tooltips-background : # 030303 ;
--b3-tooltips-color : var ( --b3-theme-on-surface-light ) ;
2024-05-10 20:30:32 +08:00
--b3-tooltips-second-color : # 7d7c7a ;
2023-06-26 10:47:55 +08:00
--b3-tooltips-shadow : 0 2px 8px rgba ( 0 , 0 , 0 , . 3 ) ;
2022-05-26 15:18:53 +08:00
2023-09-07 11:29:08 +08:00
/* 为空提示 */
--b3-empty-color : var ( --b3-theme-on-surface ) ;
2022-05-26 15:18:53 +08:00
/* 遮罩 */
2024-03-10 11:55:45 +08:00
--b3-mask-background : rgba ( 10 , 10 , 10 , . 4 ) ;
2022-05-26 15:18:53 +08:00
/* 卡片背景 */
2023-02-24 21:10:50 +08:00
--b3-card-error-color : rgb ( 243 , 153 , 147 ) ;
2023-07-21 00:02:28 +08:00
--b3-card-error-background : # 442724 ;
2022-05-26 15:18:53 +08:00
--b3-card-warning-color : rgb ( 255 , 213 , 153 ) ;
2023-07-21 00:02:28 +08:00
--b3-card-warning-background : # 554636 ;
2022-05-26 15:18:53 +08:00
--b3-card-info-color : rgb ( 166 , 213 , 250 ) ;
2023-07-21 00:02:28 +08:00
--b3-card-info-background : # 28405c ;
2022-05-26 15:18:53 +08:00
--b3-card-success-color : rgb ( 183 , 223 , 185 ) ;
2023-07-21 00:02:28 +08:00
--b3-card-success-background : # 425347 ;
2022-05-26 15:18:53 +08:00
/* 自定义文字 */
--b3-font-color1 : var ( --b3-card-error-color ) ;
--b3-font-color2 : var ( --b3-card-warning-color ) ;
--b3-font-color3 : var ( --b3-card-info-color ) ;
--b3-font-color4 : var ( --b3-card-success-color ) ;
--b3-font-color5 : var ( --b3-theme-on-surface ) ;
--b3-font-color6 : var ( --b3-theme-primary ) ;
--b3-font-color7 : var ( --b3-theme-secondary ) ;
--b3-font-color8 : var ( --b3-theme-error ) ;
--b3-font-color9 : # f5539e ;
2024-12-11 00:35:43 +08:00
--b3-font-color10 : # 00eeff ;
--b3-font-color11 : # 74ff00 ;
--b3-font-color12 : # fff200 ;
2022-05-26 15:18:53 +08:00
--b3-font-color13 : var ( --b3-theme-background ) ;
--b3-font-background1 : var ( --b3-card-error-background ) ;
--b3-font-background2 : var ( --b3-card-warning-background ) ;
--b3-font-background3 : var ( --b3-card-info-background ) ;
--b3-font-background4 : var ( --b3-card-success-background ) ;
2022-09-18 17:19:03 +08:00
--b3-font-background5 : # 4c5257 ;
2024-12-11 00:35:43 +08:00
--b3-font-background6 : # 08296c ;
2022-09-18 17:19:03 +08:00
--b3-font-background7 : # 593905 ;
--b3-font-background8 : # 541812 ;
2024-12-10 13:27:51 +08:00
--b3-font-background9 : # 843473 ;
--b3-font-background10 : # 329096 ;
--b3-font-background11 : # 568b2a ;
--b3-font-background12 : # 8d8829 ;
2022-05-26 15:18:53 +08:00
--b3-font-background13 : var ( --b3-theme-on-background ) ;
/* 动画效果 */
2023-02-12 23:46:01 +08:00
--b3-transition : all . 2s cubic-bezier ( 0 , 0 , . 2 , 1 ) 0ms ;
--b3-width-transition : width . 2s cubic-bezier ( 0 , 0 , . 2 , 1 ) 0ms ;
2023-11-29 17:19:09 +08:00
--b3-color-transition : color . 2s cubic-bezier ( 0 , 0 , . 2 , 1 ) 0ms ;
2024-04-22 13:46:27 +08:00
--b3-background-transition : background 20ms ease-in 0s ;
2022-05-26 15:18:53 +08:00
2024-12-09 12:15:41 +08:00
/* 高亮 */
--b3-highlight-color : # 222 ;
--b3-highlight-background : # ffff00 ;
--b3-highlight-current-background : # ff9632 ;
2023-03-15 11:45:51 +08:00
/* 下拉菜单 */
2023-06-26 10:47:55 +08:00
--b3-select-background : url ( "data:image/svg+xml;utf8,<svg fill='rgba(154, 160, 166, .68)' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>" ) no-repeat right 2px center var ( --b3-theme-background ) ;
2023-03-15 11:45:51 +08:00
2024-10-21 10:17:19 +08:00
/* switch */
--b3-switch-background : # 444746 ;
2024-10-29 11:05:19 +08:00
--b3-switch-border : var ( --b3-theme-on-surface-light ) ;
2024-10-21 10:17:19 +08:00
--b3-switch-hover : rgba ( 253 , 252 , 251 , . 10 ) ;
2024-10-21 11:57:53 +08:00
--b3-switch-checked : var ( --b3-theme-primary ) ;
2024-10-21 10:17:19 +08:00
--b3-switch-checked-background : # a8c7fa ;
2024-10-21 11:57:53 +08:00
--b3-switch-checked-hover : var ( --b3-theme-primary ) ;
2024-11-06 10:27:07 +08:00
--b3-switch-checked-hover2 : rgba ( 253 , 252 , 251 , . 10 ) ;
2024-10-21 10:17:19 +08:00
2022-05-26 15:18:53 +08:00
/* 阴影 */
2024-03-10 11:55:45 +08:00
--b3-point-shadow : inset 0 . 5px . 5px . 5px rgba ( 255 , 255 , 255 , . 09 ) , 0 3px 6px rgba ( 0 , 0 , 0 , . 04 ) , 0 0 0 0 transparent ;
2023-06-26 22:12:31 +08:00
--b3-dialog-shadow : 0 8px 24px # 010409 ;
2024-03-10 11:55:45 +08:00
--b3-button-shadow : 0 5px 5px -3px rgb ( 0 0 0 / . 2 ) , 0 8px 10px 1px rgb ( 0 0 0 / . 14 ) , 0 3px 14px 2px rgb ( 0 0 0 / . 12 ) ;
2022-05-26 15:18:53 +08:00
/* 图表颜色 */
--b3-graph-p-point : # 076f7e ;
2023-06-25 23:51:22 +08:00
--b3-graph-heading-point : hsl ( 254 , 80 % , 74 . 8 % ) ;
2022-05-26 15:18:53 +08:00
--b3-graph-math-point : # 80FFA5 ;
--b3-graph-code-point : # 00DDFF ;
--b3-graph-table-point : # 37A2FF ;
--b3-graph-list-point : # FF0087 ;
--b3-graph-todo-point : # FFBF00 ;
--b3-graph-olist-point : # b3005f ;
--b3-graph-listitem-point : # f65b00 ;
--b3-graph-bq-point : # 8d48e3 ;
--b3-graph-super-point : # dd79ff ;
--b3-graph-doc-point : # e8eaed ;
--b3-graph-tag-point : # dbf32f ;
--b3-graph-asset-point : # 05c091 ;
--b3-graph-line : # 9aa0a6 ;
--b3-graph-ref-line : # d23f31 ;
--b3-graph-tag-line : # 5f6b06 ;
--b3-graph-tag-tag-line : # dbf32f ;
--b3-graph-asset-line : # 037457 ;
--b3-graph-hl-point : # f3a92f ;
--b3-graph-hl-line : # 4285f4 ;
/* 代码片段背景 */
--b3-protyle-code-background : rgba ( 240 , 246 , 252 , . 15 ) ;
/* 所见即所得行内元素颜色 */
2024-11-06 10:14:48 +08:00
--b3-protyle-inline-strong-color : inherit ;
--b3-protyle-inline-em-color : inherit ;
--b3-protyle-inline-u-color : inherit ;
--b3-protyle-inline-s-color : inherit ;
2022-05-26 15:18:53 +08:00
--b3-protyle-inline-link-color : # 8ab4f8 ;
2024-12-30 10:34:40 +08:00
--b3-protyle-inline-mark-background : # b29100 ;
2023-06-25 23:51:22 +08:00
--b3-protyle-inline-mark-color : var ( --b3-theme-on-background ) ;
2022-05-26 15:18:53 +08:00
--b3-protyle-inline-tag-color : # 9aa0a6 ;
2023-07-05 19:41:54 +08:00
--b3-protyle-inline-blockref-color : # 8957e5 ;
2023-02-08 13:58:27 +08:00
--b3-protyle-inline-fileref-color : var ( --b3-theme-secondary ) ;
2022-05-26 15:18:53 +08:00
/* PDF */
--b3-pdf-selection : # 779170 ;
2024-11-16 00:07:41 +08:00
--sidebar-width : 200px ;
2022-05-26 15:18:53 +08:00
--b3-pdf-offset : 0 ;
--b3-pdf-background1 : var ( --b3-theme-error ) ;
--b3-pdf-background2 : # f5822e ;
2023-10-10 17:30:10 +08:00
--b3-pdf-background3 : # FACA5A ;
--b3-pdf-background4 : # 7CC868 ;
--b3-pdf-background5 : # FC5C88 ;
--b3-pdf-background6 : # 69B0F2 ;
--b3-pdf-background7 : # C885DA ;
2022-11-01 19:06:20 +08:00
--b3-pdf-dark : # 212224 ;
2024-10-11 11:21:04 +08:00
2024-10-11 11:32:27 +08:00
/* 表格 */
2024-10-11 11:21:04 +08:00
--b3-table-even-background : rgba ( 255 , 255 , 255 , . 03 ) ;
2024-10-11 11:32:27 +08:00
2024-11-06 12:08:26 +08:00
/* 嵌入块 */
--b3-embed-background : transparent ;
2024-10-11 11:32:27 +08:00
/* 引述块 */
2024-11-06 12:08:26 +08:00
--b3-bq-background : transparent ;
/* 父块颜色 */
--b3-parent-background : var ( --b3-theme-background ) ;
2022-05-26 15:18:53 +08:00
}
2024-12-16 10:29:42 +08:00
/* 微软字体斜体会被相邻背景遮挡,将 arial 放置其前 https://github.com/siyuan-note/siyuan/issues/11841; "Segoe UI" 和 Noto-COLRv1-2.047 冲突,故移除。 */
2024-12-14 12:05:10 +08:00
: root : lang ( zh_CN ) {
2024-12-18 11:04:32 +08:00
--b3-font-family : "Emojis Additional" , "Emojis Reset" , BlinkMacSystemFont , Helvetica , "PingFang SC" , "Luxi Sans" , "DejaVu Sans" , "Hiragino Sans GB" , "Source Han Sans SC" , arial , "Microsoft Yahei" , sans-serif , emojis ;
2024-12-14 10:15:30 +08:00
}
2024-12-14 12:05:10 +08:00
: root : lang ( zh_CHT ) {
2024-12-18 11:04:32 +08:00
--b3-font-family : "Emojis Additional" , "Emojis Reset" , BlinkMacSystemFont , Helvetica , "PingFang TC" , "Luxi Sans" , "DejaVu Sans" , "Hiragino Sans TC" , "Source Han Sans TC" , "Microsoft JhengHei" , arial , sans-serif , emojis ;
2024-12-14 10:15:30 +08:00
}
2024-12-14 12:05:10 +08:00
: root : lang ( ja_JP ) {
2025-03-20 20:32:44 +08:00
--b3-font-family : "Emojis Additional" , "Emojis Reset" , BlinkMacSystemFont , Helvetica , "Luxi Sans" , "DejaVu Sans" , "Yu Gothic UI" , arial , sans-serif , emojis ;
2024-05-10 00:11:29 +09:00
}
2022-11-01 19:13:06 +08:00
/* https://github.com/siyuan-note/siyuan/issues/6440 */
2024-11-26 20:17:49 +08:00
. protyle-action--order :: after {
2022-11-01 19:13:06 +08:00
mix-blend-mode : screen ;
}
2022-05-26 15:18:53 +08:00
. b3-text-field :: -webkit-calendar-picker-indicator {
filter : invert ( 1 )
}