generated from obsidianmd/obsidian-sample-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme.css
7985 lines (7729 loc) · 243 KB
/
theme.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
# Kakano Theme for Obsidian
Principles:
- **Strong color**
Users should be able to easily select a color for each vault and have the theme generate shades and gradients automatically.
- **Help new users**
Obsidian can be intimidating for new users. I think a good way to help with this is to clarify which parts of the window are user content (white background, strong contrast) and which are navigation and other controls (colored background, lower contrast).
- **Standardise controls**
Obsidian’s exuberant plugin scene is fantastic, but it also means that there’s a lot of inconsistency in the design of controls and modals – even between core plugins. I’ve tried to find ways to make similar controls have similar appearance. Likewise, I’ve aimed to follow conventions from the underlying OS, such as having close controls on the left on macOS.
- **Be opinionated enough**
I’d like Kakano to provide a great user experience by default without the user having to make any choices beyond their base color. It has settings, but I want each one to be there because different users genuinely have different needs, not just because I failed to make a decision.
*/
/* #region Plugin compatibility */
/* @plugins
core:
- audio-recorder
- backlink
- bookmarks
- command-palette
- daily-notes
- file-explorer
- file-recovery
- global-search
- graph
- note-composer
- outgoing-link
- outline
- page-preview
- properties-view
- random-note
- slash-commands
- starred
- switcher
- sync
- tag-pane
- templates
- word-count
- workspaces
community:
- calendar
- dataview
- folder-note-plugin
- nldates-obsidian
- obsidian-columns
- obsidian-jira-issue
- obsidian-kanban
- obsidian-map-view
- obsidian-style-settings
- obsidian-tasks-plugin
- oz-clear-unused-images
- recent-files-obsidian
- table-editor-obsidian
*/
/* #endregion */
/* #region Style Settings plugin config */
/* @settings
name: Kakano Theme
id: kakano-style
settings:
-
id: heading-baseColor
title: Base color
type: heading
level: 1
collapsed: false
-
id: infoText-baseColor
description: "The Kakano theme uses a base color for each vault, and generates different shades and gradients from it. You can either select from one of the preset colors, or specify an exact color."
type: info-text
markdown: true
-
id: theme-setting-predefinedBaseColor
title: 'Preset base color'
description: 'If you just want a quick color, choose one of these.'
type: class-select
allowEmpty: true
default: theme-setting-baseColorPreset-kahurangi
options:
-
label: 'Use accent color'
value: theme-setting-baseColorPreset-accent
-
label: 'Whero – Red'
value: theme-setting-baseColorPreset-whero
-
label: 'Karaka – Orange'
value: theme-setting-baseColorPreset-karaka
-
label: 'Kōwhai – Yellow'
value: theme-setting-baseColorPreset-koowhai
-
label: 'Kākāriki – Green'
value: theme-setting-baseColorPreset-kaakaariki
-
label: 'Kārikiōrangi – Cyan'
value: theme-setting-baseColorPreset-kaarikioorangi
-
label: 'Kahurangi – Blue'
value: theme-setting-baseColorPreset-kahurangi
-
label: 'Waiporoporo – Purple'
value: theme-setting-baseColorPreset-waiporoporo
-
label: 'Māwhero – Pink'
value: theme-setting-baseColorPreset-maawhero
-
label: 'Mangu – Black'
value: theme-setting-baseColorPreset-mangu
-
label: 'Mā – White'
value: theme-setting-baseColorPreset-maa
-
label: 'Kiwikiwi – Grey'
value: theme-setting-baseColorPreset-kiwikiwi
-
id: base
title: Exact base color
description: 'Set an exact base color. Make sure "Preset base color" is empty, and click Save to apply.'
type: variable-color
format: hsl-split
default: '#2176B0'
-
id: heading-background
title: Background
type: heading
level: 1
collapsed: true
-
id: theme-value-gradientContrast
title: 'Background gradient contrast'
description: 'Degree of contrast for background gradients. Set to zero for a flat background color.'
type: variable-number-slider
default: 0.2
min: 0
max: 1
step: 0.1
-
id: heading-customGradient
title: Custom Gradient
type: heading
level: 2
collapsed: true
-
id: theme-setting-customGradient
title: 'Use a custom gradient for the background'
description: "Kakano normally provides a smooth gradient background using the same hue as the base color. This setting overrides that so you can have a gradient with different hues top and bottom. Note that the colors you set here won't be used directly: they'll be lightened for light mode and darkened for dark mode."
type: class-toggle
-
id: theme-color-customGradientBaseTop
title: Custom Gradient Top
description: 'Base color for the top of the gradient'
type: variable-color
format: hsl
default: '#ff0000'
-
id: theme-color-customGradientBaseBottom
title: Custom Gradient Bottom
description: 'Base color for the bottom of the gradient'
type: variable-color
format: hsl
default: '#0000ff'
-
id: heading-layout
title: Layout
type: heading
level: 2
collapsed: true
-
id: theme-setting-fullWidthStatusBar
title: 'Full width status bar'
description: "EXPERIMENTAL If you have many items in your status bar, you may find that it overflows onto the sidebars. This setting will push the main app workspace up so the status bar can use the full window width."
type: class-toggle
-
id: heading-notes
title: Notes
type: heading
level: 1
collapsed: true
-
id: theme-setting-lightModeNoteBg
title: 'Light mode note background'
description: 'In light mode, note backgrounds can be full white (default) or near white with a slight tint of the base color.'
type: class-select
allowEmpty: false
default: theme-setting-lightModeNoteBgFullWhite
options:
-
label: 'Near white'
value: theme-setting-lightModeNoteBgNearWhite
-
label: 'Full white'
value: theme-setting-lightModeNoteBgFullWhite
-
id: theme-value-darkModeNoteBg
title: 'Dark mode note background'
description: 'In dark mode, note backgrounds can be near black (default) or full black. Near black is a bit easier on the eyes. Full black will save a little energy on OLED screens which will switch back pixels completely off. And some people just like the way it looks.'
type: class-select
allowEmpty: false
default: theme-value-darkModeNoteBgNearBlack
options:
-
label: 'Near black (less eye strain)'
value: theme-value-darkModeNoteBgNearBlack
-
label: 'Full black (OLED screen will switch pixels off)'
value: theme-value-darkModeNoteBgFullBlack
-
id: theme-setting-distinguishNonContentTabs
title: "Distinguish non-editable tabs"
description: "Most tabs have content created by you (e.g. notes, canvases, kanban charts) but some aren't directly editable (e.g. graphs, calendars, maps). When this setting is on, the non-editable tabs are shaded differently when inactive."
default: true
type: class-toggle
-
id: setting-properties-position
title: 'Properties position'
description: 'Place properties before or after your main note content. Note that this only applies to Live Preview mode.'
type: class-select
allowEmpty: false
default: 'setting-properties-position-above'
options:
-
label: 'Above main note content'
value: 'setting-properties-position-above'
-
label: 'Below main note content'
value: 'setting-properties-position-below'
-
id: theme-setting-embeddedNoteTitleVisibility
title: 'Embedded note titles'
description: "When a note is embedded in another note, show or hide the source note's title."
type: class-select
allowEmpty: false
default: theme-setting-embeddedNoteTitleVisibilityHover
options:
-
label: 'Always hidden'
value: theme-setting-embeddedNoteTitleVisibilityHide
-
label: 'Visible on hover'
value: theme-setting-embeddedNoteTitleVisibilityHover
-
label: 'Always visible'
value: theme-setting-embeddedNoteTitleVisibilityShow
-
id: theme-setting-stickyEmbeddedLinks
title: 'Embedded links scroll position'
description: 'EXPERIMENTAL Embedded links can be placed at the below your content (so you scroll to the bottom to see them), or pinned so they stay visible as you scroll.'
type: class-select
allowEmpty: false
default: 'theme-setting-stickyEmbeddedLinks-off'
options:
-
label: 'Place below content (scroll down to view)'
value: 'theme-setting-stickyEmbeddedLinks-off'
-
label: 'Pin (stay visible while content scrolls)'
value: 'theme-setting-stickyEmbeddedLinks-on'
-
id: heading-typographySettings
title: Typography
type: heading
level: 1
collapsed: true
-
id: theme-setting-differentiateBulletLevels
title: 'Style nested bullet levels differently'
description: "Show different bullets for different levels of nesting"
type: class-toggle
default: true
-
id: heading-HeadingSettings
title: Headings
type: heading
level: 2
collapsed: false
-
id: theme-setting-headingFont
title: Heading font
description: Font used for headings. Leave empty to use the same font as body text, as defined by `Text font` in `Appearance`.
type: variable-text
default: ""
quotes: true
-
id: theme-setting-headingScaleFactor
title: 'Heading scale factor – desktop/tablet'
description: 'Scale factor for heading sizes. Larger numbers will increase the difference between different heading sizes, smaller numbers will decrease the difference.'
type: class-select
allowEmpty: false
default: theme-setting-headingScaleFactor1point2
options:
-
label: '1.067 - Minor Second'
value: theme-setting-headingScaleFactor1point067
-
label: '1.125 - Major Second'
value: theme-setting-headingScaleFactor1point125
-
label: '1.200 - Minor Third'
value: theme-setting-headingScaleFactor1point2
-
label: '1.250 - Major Third'
value: theme-setting-headingScaleFactor1point25
-
label: '1.333 - Perfect Fourth'
value: theme-setting-headingScaleFactor1point333
-
label: '1.414 - Augmented Fourth'
value: theme-setting-headingScaleFactor1point414
-
label: '1.500 - Perfect Fifth'
value: theme-setting-headingScaleFactor1point5
-
label: '1.618 - Golden Ratio'
value: theme-setting-headingScaleFactor1point618
-
id: theme-setting-headingScaleFactorPhone
title: 'Heading scale factor – phone'
description: "Scale factor for heading sizes on smaller phone screens. With space at a premium, you'll usually want this to be smaller than the desktop scale factor"
type: class-select
allowEmpty: false
default: theme-setting-headingScaleFactorPhone1point125
options:
-
label: '1.067 - Minor Second'
value: theme-setting-headingScaleFactorPhone1point067
-
label: '1.125 - Major Second'
value: theme-setting-headingScaleFactorPhone1point125
-
label: '1.200 - Minor Third'
value: theme-setting-headingScaleFactorPhone1point2
-
label: '1.250 - Major Third'
value: theme-setting-headingScaleFactorPhone1point25
-
label: '1.333 - Perfect Fourth'
value: theme-setting-headingScaleFactorPhone1point333
-
label: '1.414 - Augmented Fourth'
value: theme-setting-headingScaleFactorPhone1point414
-
label: '1.500 - Perfect Fifth'
value: theme-setting-headingScaleFactorPhone1point5
-
label: '1.618 - Golden Ratio'
value: theme-setting-headingScaleFactorPhone1point618
-
id: heading-lineWidthSettings
title: Line length
type: heading
level: 2
collapsed: false
-
id: infoText-lineWidth
description: "Maximum line length in characters. 50-75 characters is often recommended for readability in languages with Latin scripts. 15-35 characters may be better for Chinese, Japanese and Korean characters.
<br><br>
These settings apply when the **Readable line length** setting is enabled in **Editor**"
type: info-text
markdown: true
-
id: theme-setting-lineWidth
title: 'Line length for Live Preview and Source Mode'
description: ''
type: variable-number-slider
default: 60
min: 10
max: 120
step: 5
-
id: theme-setting-lineWidthReadingView
title: 'Line length for Reading View'
description: ''
type: variable-number-slider
default: 60
min: 10
max: 120
step: 5
-
id: heading-editing
title: Editing
type: heading
level: 1
collapsed: true
-
id: infoText-editing
description: "These settings apply to the **Live Preview** and **Source** modes, but not to the **Reading** mode."
type: info-text
markdown: true
-
id: theme-setting-highlightActiveLine
title: 'Highlight active line'
description: "Show a background color behind the active line while editing."
type: class-toggle
-
id: theme-setting-codeBlockLineNumbers
title: 'Line numbers in code blocks'
description: "Show line numbers in code blocks"
type: class-toggle
default: true
-
id: heading-mobile
title: Mobile
type: heading
level: 1
collapsed: true
-
id: theme-setting-mobileHorizontalPadding
title: 'Mobile horizontal spacing'
description: "Width of space to the left and right of the note content. Set to zero if you'd like the note to extend to the full width, 0.5 or 1 if you'd like to see your background gradient."
type: variable-number-slider
default: 0.5
min: 0
max: 1
step: 0.5
-
id: theme-setting-mobileCardsUI
title: 'Mobile cards UI'
description: "EXPERIMENTAL Scale the main workspace down when there's a modal in the foreground, creating a 3D cards effect. Currently unfinished, but you can see it when you open a prompt."
type: class-toggle
-
id: heading-compatibility
title: Compatibility
type: heading
level: 1
collapsed: true
-
id: theme-setting-enableBuiltInAlternativeCheckboxes
title: 'Enable built-in alternative checkboxes'
description: "Kakano provides styles for some common alternative checkbox states. Different themes have built-in support for different sets of alternative checkboxes, so some users may prefer to use their own CSS snippets that work across multiple themes. If you'd like to do this, you can disable Kakano's built-in alternative checkboxes to ensure that they don't clas with the snippet."
type: class-toggle
default: true
-
id: infoText-alternativeCheckboxesReferenceSet
description: "> [!info]
> The [Alternative Checkboxes Reference Set project](https://github.com/damiankorcz/Alternative-Checkboxes-Reference-Set) is working on standardising alternative checkboxes."
type: info-text
markdown: true
-
id: heading-communityPlugins
title: Community Plugins
type: heading
level: 1
collapsed: true
-
id: infoText-communityPlugins
description: "By default, Kakano changes the appearance of many community plugins to provide a more consistent appearance. If you prefer the standard appearance for a plugin you can disable Kakano's changes."
type: info-text
markdown: true
-
id: theme-setting-overrideAdvancedTables
title: 'Advanced Tables'
type: class-toggle
default: true
-
id: theme-setting-overrideCalendar
title: 'Calendar'
type: class-toggle
default: true
-
id: theme-setting-overrideClearUnusedImages
title: 'Clear Unused Images'
type: class-toggle
default: true
-
id: theme-setting-overrideColumns
title: 'Columns'
type: class-toggle
default: true
-
id: theme-setting-overrideDataview
title: 'Dataview'
type: class-toggle
default: true
-
id: theme-setting-overrideExcalidraw
title: 'Excalidraw'
type: class-toggle
default: true
-
id: theme-setting-overrideFolderNote
title: 'Folder Note'
type: class-toggle
default: true
-
id: theme-setting-overrideJiraIssue
title: 'Jira Issue'
type: class-toggle
default: true
-
id: theme-setting-overrideKanban
title: 'Kanban'
type: class-toggle
default: true
-
id: theme-setting-overrideMapView
title: 'Map View'
type: class-toggle
default: true
-
id: theme-setting-overrideRecentFiles
title: 'Recent Files'
type: class-toggle
default: true
-
id: theme-setting-overrideTasks
title: 'Tasks'
type: class-toggle
default: true
-
id: theme-setting-overrideStyleSettings
title: 'Style Settings'
type: class-toggle
default: true
*/
/* #endregion */
/* #region Custom properties */
/* #region General */
body {
--background-input: var(--theme-color-baseTransparent12);
--background-modifier-message: var(--theme-color-noticeBg);
--background-secondary: transparent;
--callout-padding: var(--theme-padding-block);
--checkbox-border-color-hover: var(--interactive-accent-hover);
--checkbox-border-color: var(--interactive-accent);
--checkbox-color: var(--interactive-accent);
--code-background: light-dark(
var(--theme-color-darkenTransparent06),
var(--theme-color-lightenTransparent06)
);
--code-comment: light-dark(
var(--theme-color-darkenTransparent50),
var(--theme-color-lightenTransparent50)
);
--code-normal: var(--text-normal);
--divider-width: 0;
--embed-border-bottom: none;
--embed-border-left: none;
--embed-border-right: none;
--embed-border-top: none;
--embed-padding: 1em;
--file-line-width: calc(1ch * var(--theme-setting-lineWidth));
--file-margins: 0 2em;
--font-ui-smaller: 0.8rem;
--header-height: calc(var(--icon-size) + 1rem);
--heading-spacing: 0.67em;
--input-border-width: 2px;
--list-marker-color: var(--text-normal);
--list-bullet-radius: 50%;
--list-bullet-size: 0.25em;
--list-bullet-transform: none;
--list-marker-color-collapsed: var(--list-marker-color);
--list-indent: 1.5em;
--metadata-divider-width: 0;
--metadata-gap: 0.5em;
--modal-border-color: black;
--modal-border-width: 0;
--modal-height: 85vh;
--modal-max-height: calc(
100vh - var(--safe-area-inset-top) - var(--safe-area-inset-bottom) - 2em
);
--modal-max-width: calc(
100vw - var(--safe-area-inset-left) - var(--safe-area-inset-right) - 2em
);
--modal-width: 65rem;
--nav-item-background-hover: var(--theme-color-baseTransparent75);
--nav-item-children-margin-left: calc(
1em - var(--nav-indentation-guide-width) / 2
);
--nav-item-children-padding-left: calc(
1em - var(--nav-indentation-guide-width) / 2
);
--nav-item-color-highlighted: var(--nav-item-hover);
--nav-item-padding: 0.375em 0.75em 0.375em 0.75em;
--nav-item-parent-padding: 0.25em 0 0.25em 0;
--p-spacing: 1em;
--pill-focus-left-adjust: 0;
--pill-focus-width: 100%;
--prompt-border-color: transparent;
--prompt-border-width: 0;
--radius-s: 0.25rem;
--radius-m: 0.5rem;
--radius-l: 0.75rem;
--radius-xl: 1rem;
--ribbon-background-collapsed: transparent;
--ribbon-background: transparent;
--ribbon-width: 3em;
--sidebar-markdown-font-size: calc(
var(--font-text-size) * var(--theme-value-sidebarFontScalingFactor)
);
--slider-track-background: var(--theme-color-baseTransparent50);
--status-bar-background: var(--theme-color-gradientTop);
--status-bar-text-color: var(--text-normal);
--tab-container-background: transparent;
--tab-curve: calc(var(--tab-radius) * 0.5);
--tab-outline-width: 0;
--tab-radius-active: 0.25em;
--tab-radius: 0.25em;
--tab-switcher-preview-background-shadow: var(--shadow-l);
--tab-switcher-preview-shadow: none;
--tab-switcher-preview-shadow-active: none;
--text-muted: color-mix(in srgb, var(--text-normal), transparent 60%);
--titlebar-background-focused: transparent;
--titlebar-background: transparent;
/* Other new variables for this theme */
--theme-color-dragTarget: var(--theme-color-baseTransparent50);
--theme-color-dragTargetBg: var(--theme-color-baseTransparent25);
--theme-color-graphViewBg: transparent;
--theme-color-tabBgInactiveHover: var(--theme-color-baseTransparent75);
--theme-color-tableHeaderBg: var(--theme-color-baseTransparent12);
--theme-color-cardBg: var(--background-primary);
--theme-lineHeight-tight: 1.3rem;
--theme-setting-lineWidth: 60;
--theme-spacing-mobileHorizontalSpacing: calc(
var(--theme-setting-mobileHorizontalPadding) * 1rem
);
--theme-length-checkboxBorderWidth: 1px;
--theme-length-closeButtonWidth: 1.5rem;
--theme-length-collapseIndicatorSize: 1.5rem;
--theme-length-controlSetSpacing: 0.5rem;
--theme-length-radiusXS: 0.125rem;
--theme-length-statusBarHeight: 2rem; /* Additional radius size alongside built-in radius-x */
--theme-value-sidebarFontScalingFactor: 0.8;
--theme-length-cardMinWidth: 8em;
--theme-length-cardMaxWidth: 1fr;
--theme-grid-cardSet: repeat(
auto-fit,
minmax(var(--theme-length-cardMinWidth), var(--theme-length-cardMaxWidth))
);
--theme-length-cardImageHeight: 25em;
--theme-cardImageFit: contain;
--theme-cardAspectRatio: auto;
--theme-padding-block: var(--theme-padding-blockVertical)
var(--theme-padding-blockHorizontal); /* Used for callouts, embeds etc. */
--theme-padding-blockHorizontal: 1.5em;
--theme-padding-blockVertical: 0.75em;
--shadow-l: 0 0 0.2rem
color-mix(in srgb, var(--theme-color-shadow) 2%, transparent),
0 0.2rem 0.4rem
color-mix(in srgb, var(--theme-color-shadow) 4%, transparent),
0 0.4rem 1.2rem
color-mix(in srgb, var(--theme-color-shadow) 6%, transparent),
0 1.2rem 2rem color-mix(in srgb, var(--theme-color-shadow) 8%, transparent),
0 2rem 4rem color-mix(in srgb, var(--theme-color-shadow) 10%, transparent);
--shadow-s: 0 0 0.05rem
color-mix(in srgb, var(--theme-color-shadow) 2%, transparent),
0 0.05rem 0.1rem
color-mix(in srgb, var(--theme-color-shadow) 4%, transparent),
0 0.1rem 0.3rem
color-mix(in srgb, var(--theme-color-shadow) 6%, transparent),
0 0.3rem 0.5rem
color-mix(in srgb, var(--theme-color-shadow) 8%, transparent),
0 0.5rem 1rem color-mix(in srgb, var(--theme-color-shadow) 10%, transparent);
--theme-shadow-indent: 0 0 0.2rem
color-mix(in srgb, var(--theme-color-shadow) 4%, transparent),
0 0 0.4rem color-mix(in srgb, var(--theme-color-shadow) 8%, transparent),
0 0 1.2rem color-mix(in srgb, var(--theme-color-shadow) 12%, transparent),
0 0 2rem color-mix(in srgb, var(--theme-color-shadow) 16%, transparent),
0 0 4rem color-mix(in srgb, var(--theme-color-shadow) 20%, transparent);
}
/* #endregion */
/* #region Colors */
/* #region Base color */
body {
/* Base all theme colours off these */
/* The base HSL variables will be overridden by Style Settings if installed, otherwise they'll use the accent colour. */
--base-h: var(--accent-h);
--base-s: var(--accent-s);
--base-l: var(--accent-l);
/* The base color, derived from either the accent or the Style Settings base color. Note that this may be overridden by one of the preset colours below. */
--theme-color-base: hsl(var(--base-h), var(--base-s), var(--base-l));
}
/* #endregion */
/* #region Preset base colours, if users don't want to set an exact colour. */
body.css-settings-manager.theme-setting-baseColorPreset-accent {
--base-h: var(--accent-h);
--base-s: var(--accent-s);
--base-l: var(--accent-l);
}
body.css-settings-manager.theme-setting-baseColorPreset-whero {
--base-h: 0;
--base-s: 61%;
--base-l: 43%;
}
body.css-settings-manager.theme-setting-baseColorPreset-karaka {
--base-h: 30;
--base-s: 70%;
--base-l: 50%;
}
body.css-settings-manager.theme-setting-baseColorPreset-koowhai {
--base-h: 52;
--base-s: 60%;
--base-l: 45%;
}
body.css-settings-manager.theme-setting-baseColorPreset-kaakaariki {
--base-h: 92;
--base-s: 60%;
--base-l: 39%;
}
body.css-settings-manager.theme-setting-baseColorPreset-kaarikioorangi {
--base-h: 180;
--base-s: 57%;
--base-l: 47%;
}
body.css-settings-manager.theme-setting-baseColorPreset-kahurangi {
--base-h: 215;
--base-s: 67%;
--base-l: 45%;
}
body.css-settings-manager.theme-setting-baseColorPreset-waiporoporo {
--base-h: 275;
--base-s: 67%;
--base-l: 45%;
}
body.css-settings-manager.theme-setting-baseColorPreset-maawhero {
--base-h: 335;
--base-s: 60%;
--base-l: 60%;
}
body.css-settings-manager.theme-setting-baseColorPreset-mangu {
--base-h: 240;
--base-s: 10%;
--base-l: 2%;
}
body.css-settings-manager.theme-setting-baseColorPreset-maa {
--base-h: 0;
--base-s: 0%;
--base-l: 90%;
}
body.css-settings-manager.theme-setting-baseColorPreset-kiwikiwi {
--base-h: 40;
--base-s: 2%;
--base-l: 50%;
}
/* #endregion */
body {
/* Base colour variants */
--theme-color-baseLightened95: color-mix(
in srgb,
var(--theme-color-base),
white calc(100% * 0.95)
);
--theme-color-baseLightened85: color-mix(
in srgb,
var(--theme-color-base),
white calc(100% * 0.85)
);
--theme-color-baseLightened80: color-mix(
in srgb,
var(--theme-color-base),
white calc(100% * 0.8)
);
--theme-color-baseLightened70: color-mix(
in srgb,
var(--theme-color-base),
white calc(100% * 0.7)
);
--theme-color-baseLightened60: color-mix(
in srgb,
var(--theme-color-base),
white calc(100% * 0.6)
);
--theme-color-baseLightened40: color-mix(
in srgb,
var(--theme-color-base),
white calc(100% * 0.4)
);
--theme-color-baseLightened25: color-mix(
in srgb,
var(--theme-color-base),
white calc(100% * 0.25)
);
--theme-color-baseDarkened25: color-mix(
in srgb,
var(--theme-color-base),
black calc(100% * 0.25)
);
--theme-color-baseDarkened40: color-mix(
in srgb,
var(--theme-color-base),
black calc(100% * 0.4)
);
--theme-color-baseDarkened60: color-mix(
in srgb,
var(--theme-color-base),
black calc(100% * 0.6)
);
--theme-color-baseDarkened70: color-mix(
in srgb,
var(--theme-color-base),
black calc(100% * 0.7)
);
--theme-color-baseDarkened80: color-mix(
in srgb,
var(--theme-color-base),
black calc(100% * 0.8)
);
--theme-color-baseDarkened85: color-mix(
in srgb,
var(--theme-color-base),
black calc(100% * 0.85)
);
--theme-color-baseDarkened90: color-mix(
in srgb,
var(--theme-color-base),
black calc(100% * 0.9)
);
/* Base color with transparency */
--theme-color-baseTransparent75: hsl(
from var(--theme-color-base) h s l / 0.75
);
--theme-color-baseTransparent50: hsl(
from var(--theme-color-base) h s l / 0.5
);
--theme-color-baseTransparent35: hsl(
from var(--theme-color-base) h s l / 0.35
);
--theme-color-baseTransparent25: hsl(
from var(--theme-color-base) h s l / 0.25
);
--theme-color-baseTransparent12: hsl(
from var(--theme-color-base) h s l / 0.12
);
--theme-color-baseTransparent06: hsl(
from var(--theme-color-base) h s l / 0.06
);
--theme-color-lightenTransparent50: hsl(from white h s l / 0.5);
--theme-color-lightenTransparent25: hsl(from white h s l / 0.25);
--theme-color-lightenTransparent12: hsl(from white h s l / 0.12);
--theme-color-lightenTransparent06: hsl(from white h s l / 0.06);
--theme-color-darkenTransparent50: hsl(from black h s l / 0.5);
--theme-color-darkenTransparent06: hsl(from black h s l / 0.25);
--theme-color-darkenTransparent12: hsl(from black h s l / 0.12);
--theme-color-darkenTransparent06: hsl(from black h s l / 0.06);
/* Gradients */
--theme-gradient-topToBottom: linear-gradient(
0deg,
var(--theme-color-gradientTop) 0%,
var(--theme-color-gradientBottom) 100%
);
--theme-gradient-bottomToTop: linear-gradient(
0deg,
var(--theme-color-gradientBottom) 0%,
var(--theme-color-gradientTop) 100%
);
--theme-gradient-cardSet: linear-gradient(
0deg,
var(--theme-color-gradientCardSetBottom) 0%,
var(--theme-color-gradientCardSetTop) 100%
);
--theme-gradient-cardSetGenerated: linear-gradient(
0deg,
var(--theme-color-gradientCardSetGeneratedBottom) 0%,
var(--theme-color-gradientCardSetGeneratedTop) 100%
);
--theme-gradient-DarkenedTopToBottom: linear-gradient(
0deg,
var(--theme-color-gradientDarkenedTop) 0%,
var(--theme-color-gradientDarkenedBottom) 100%
);
/* 0 for flat colour with no gradient. 1 for extreme gradient. Default to 0.2, */
--theme-value-gradientContrast: 0.2;
}
/* Hues derived from base color */
.theme-light,
.theme-dark {
--color-red: hsl(from var(--theme-color-base) 356 s l);
--color-orange: hsl(from var(--theme-color-base) 27 s l);
--color-yellow: hsl(from var(--theme-color-base) 57 s l);
--color-green: hsl(from var(--theme-color-base) 124 s l);
--color-cyan: hsl(from var(--theme-color-base) 179 s l);
--color-blue: hsl(from var(--theme-color-base) 219 s l);
--color-purple: hsl(from var(--theme-color-base) 253 s l);
--color-pink: hsl(from var(--theme-color-base) 331 s l);
--theme-color-redDarkened: hsl(
from var(--color-red) h calc(s * 1.5) calc(l * 0.5)
);
--theme-color-redLightened: hsl(
from var(--color-red) h calc(s * 1.5) calc(l * 1.5)
);
--theme-color-orangeDarkened: hsl(
from var(--color-orange) h calc(s * 1.5) calc(l * 0.5)
);
--theme-color-orangeLightened: hsl(
from var(--color-orange) h calc(s * 1.5) calc(l * 1.5)
);
--theme-color-yellowDarkened: hsl(
from var(--color-yellow) h calc(s * 1.5) calc(l * 0.5)
);
--theme-color-yellowLightened: hsl(
from var(--color-yellow) h calc(s * 1.5) calc(l * 1.5)
);
--theme-color-greenDarkened: hsl(
from var(--color-green) h calc(s * 1.5) calc(l * 0.5)
);
--theme-color-greenLightened: hsl(
from var(--color-green) h calc(s * 1.5) calc(l * 1.5)
);
--theme-color-cyanDarkened: hsl(
from var(--color-cyan) h calc(s * 1.5) calc(l * 0.5)
);
--theme-color-cyanLightened: hsl(
from var(--color-cyan) h calc(s * 1.5) calc(l * 1.5)
);
--theme-color-blueDarkened: hsl(
from var(--color-blue) h calc(s * 1.5) calc(l * 0.5)
);
--theme-color-blueLightened: hsl(
from var(--color-blue) h calc(s * 1.5) calc(l * 1.5)
);
--theme-color-purpleDarkened: hsl(
from var(--color-purple) h calc(s * 1.5) calc(l * 0.5)
);
--theme-color-purpleLightened: hsl(
from var(--color-purple) h calc(s * 1.5) calc(l * 1.5)
);
--theme-color-pinkDarkened: hsl(
from var(--color-pink) h calc(s * 1.5) calc(l * 0.5)
);
--theme-color-pinkLightened: hsl(
from var(--color-pink) h calc(s * 1.5) calc(l * 1.5)
);
--theme-color-redTransparent25: hsl(from var(--color-red) h s l / 0.25);
--theme-color-redTransparent75: hsl(from var(--color-red) h s l / 0.75);
--theme-color-orangeTransparent25: hsl(from var(--color-orange) h s l / 0.25);
--theme-color-orangeTransparent75: hsl(from var(--color-orange) h s l / 0.75);
--theme-color-yellowTransparent25: hsl(from var(--color-yellow) h s l / 0.25);
--theme-color-yellowTransparent75: hsl(from var(--color-yellow) h s l / 0.75);
--theme-color-greenTransparent25: hsl(from var(--color-green) h s l / 0.25);
--theme-color-greenTransparent75: hsl(from var(--color-green) h s l / 0.75);
}
/* #endregion */
/* #region Light mode */
.theme-light,
.theme-light .theme-dark {
/* Using `.theme-light .theme-dark` here because the Minimal Theme Settings plugin inserts `.theme-dark` into the DOM for the ribbon and left sidebar for `Light mode background contrast -> High contrast` even when the Minimal Theme isn't active. As lots of people will have Minimal Theme Settings enabled while using Kakano, I override it here. */
/* Built-in variables */
--background-modifier-active-hover-alt: var(--theme-color-baseLightened25);
--background-modifier-active-hover: var(--theme-color-baseLightened60);
--background-modifier-border-focus: var(--theme-color-base);
--background-modifier-border: var(--theme-color-baseLightened25);
--background-modifier-hover: var(--theme-color-base);
--blockquote-border-color: var(--theme-color-baseLightened80);
--caret-color: hsl(var(--accent-h), 150%, 50%);
--collapse-icon-color: var(--theme-color-base);
--collapse-icon-color-collapsed: var(--theme-color-base);
--embed-background: var(--theme-color-baseTransparent12);
--empty-pane-color: var(--theme-color-baseDarkened70);
--icon-color-focused: white;
--icon-color-hover: hsl(
var(--base-h),
calc(var(--base-s) * 0.2),
calc(var(--base-l) * 1.5)
);
--icon-color-hover: white;
--icon-color: var(--theme-color-base);
--modal-background: var(--theme-color-baseLightened80);
--nav-collapse-icon-color-collapsed: var(--theme-color-baseTransparent75);
--nav-collapse-icon-color: var(--theme-color-baseTransparent75);
--nav-indentation-guide-color: var(--theme-color-baseTransparent25);
--nav-item-background-active: var(--theme-color-base);
--nav-item-background-selected: var(--theme-color-baseTransparent25);
--nav-item-color-active: var(--theme-color-baseLightened80);
--nav-item-color: var(--theme-color-baseDarkened80);
--nav-item-color-hover: white;
--search-clear-button-color: var(--theme-color-base);
--search-icon-color: var(--theme-color-base);
--status-bar-text-color: black;
--tab-background-active: var(--background-primary);
--tab-background-inactive: var(--theme-color-baseLightened80);
--tab-text-color: var(--theme-color-baseTransparent50);
--tab-text-color-active: var(--theme-color-baseTransparent50);
--tab-text-color-focused: var(--theme-color-baseDarkened25);
--tab-text-color-focused-active: var(--theme-color-baseDarkened25);
--tab-text-color-focused-highlighted: var(--text-accent);
--tab-text-color-focused-active-current: var(--text-normal);
--tag-color: hsl(
var(--accent-h),