-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Intergrate tiddlywiki palette colors and settings to custom CSS properties #9333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 3 commits
1e86e13
6592c07
48c9f03
73bb30c
0dd151f
9a628a4
5b41130
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
title: $:/core/stylesheets/custom-properties | ||
tags: [[$:/tags/Stylesheet]] | ||
list-before: | ||
|
||
\rules only transcludeinline macrocallinline macrocallblock | ||
|
||
/* Tiddlywiki's CSS properties */ | ||
|
||
:root { | ||
--tc-alert-background: <<colour alert-background>>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @Leilei332 I do think that using Perhaps we might introduce a new There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If we don't care about the potential name conflict between CSS settings and palette colors, I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think It avoids name clashes with user CSS variables, so they do not use any prefix. It's also easy to discuss at Talk. Users may use a shortcut for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This isn't acceptable. It can't show that this custom property is only for tiddlywiki. |
||
--tc-alert-border: <<colour alert-border>>; | ||
--tc-alert-highlight: <<colour alert-highlight>>; | ||
--tc-alert-muted-foreground: <<colour alert-muted-foreground>>; | ||
--tc-background: <<colour background>>; | ||
--tc-blockquote-bar: <<colour blockquote-bar>>; | ||
--tc-button-background: <<colour button-background>>; | ||
--tc-button-border: <<colour button-border>>; | ||
--tc-button-foreground: <<colour button-foreground>>; | ||
--tc-code-background: <<colour code-background>>; | ||
--tc-code-border: <<colour code-border>>; | ||
--tc-code-foreground: <<colour code-foreground>>; | ||
--tc-diff-delete-background: <<colour diff-delete-background>>; | ||
--tc-diff-delete-foreground: <<colour diff-delete-foreground>>; | ||
--tc-diff-equal-background: <<colour diff-equal-background>>; | ||
--tc-diff-equal-foreground: <<colour diff-equal-foreground>>; | ||
--tc-diff-insert-background: <<colour diff-insert-background>>; | ||
--tc-diff-insert-foreground: <<colour diff-insert-foreground>>; | ||
--tc-diff-invisible-background: <<colour diff-invisible-background>>; | ||
--tc-diff-invisible-foreground: <<colour diff-invisible-foreground>>; | ||
--tc-dirty-indicator: <<colour dirty-indicator>>; | ||
--tc-download-background: <<colour download-background>>; | ||
--tc-download-foreground: <<colour download-foreground>>; | ||
|
||
/* CSS settings */ | ||
--tp-codewrapping: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}}; | ||
Leilei332 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
--tp-fontfamily: {{$:/themes/tiddlywiki/vanilla/settings/fontfamily}}; | ||
--tp-codefontfamily: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}}; | ||
--tp-editorfontfamily: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}}; | ||
--tp-fontsize: {{$:/themes/tiddlywiki/vanilla/metrics/fontsize}}; | ||
--tp-lineheight: {{$:/themes/tiddlywiki/vanilla/metrics/lineheight}}; | ||
--tp-bodyfontsize: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}}; | ||
--tp-tiddlerwidth: {{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}} | ||
|
||
} |
Uh oh!
There was an error while loading. Please reload this page.