mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-08 03:36:38 +00:00
Add an alternate theme
No UI for switching themes yet, try these two commands in the console: `$tw.wiki.addTiddler({title:"$:/theme", text:"$:/themes/tiddlywiki/starlight"})` and `$tw.wiki.addTiddler({title:"$:/theme", text:"$:/themes/tiddlywiki/snowwhite"})`
This commit is contained in:
parent
523d70127b
commit
5c56d645ff
@ -3,6 +3,7 @@
|
||||
"tiddlywiki/fullscreen"
|
||||
],
|
||||
"themes": [
|
||||
"tiddlywiki/snowwhite"
|
||||
"tiddlywiki/snowwhite",
|
||||
"tiddlywiki/starlight"
|
||||
]
|
||||
}
|
9
themes/tiddlywiki/starlight/plugin.info
Normal file
9
themes/tiddlywiki/starlight/plugin.info
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"title": "$:/themes/tiddlywiki/starlight",
|
||||
"description": "A simple, dark layout",
|
||||
"author": "JeremyRuston",
|
||||
"version": "0.0.0",
|
||||
"core-version": ">=5.0.0",
|
||||
"plugin-type": "theme",
|
||||
"dependents": ["$:/themes/tiddlywiki/snowwhite"]
|
||||
}
|
35
themes/tiddlywiki/starlight/styles.tid
Normal file
35
themes/tiddlywiki/starlight/styles.tid
Normal file
@ -0,0 +1,35 @@
|
||||
title: $:/themes/tiddlywiki/starlight/styles.tid
|
||||
tags: [[$:/tags/stylesheet]]
|
||||
|
||||
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
|
||||
\define border-radius(radius)
|
||||
```
|
||||
-webkit-border-radius: $radius$;
|
||||
-moz-border-radius: $radius$;
|
||||
border-radius: $radius$;
|
||||
```
|
||||
\end
|
||||
\define box-shadow(shadow)
|
||||
```
|
||||
-webkit-box-shadow: $shadow$;
|
||||
-moz-box-shadow: $shadow$;
|
||||
box-shadow: $shadow$;
|
||||
```
|
||||
\end
|
||||
\define background-linear-gradient(gradient)
|
||||
```
|
||||
background-image: linear-gradient($gradient$);
|
||||
background-image: -o-linear-gradient($gradient$);
|
||||
background-image: -moz-linear-gradient($gradient$);
|
||||
background-image: -webkit-linear-gradient($gradient$);
|
||||
background-image: -ms-linear-gradient($gradient$);
|
||||
```
|
||||
\end
|
||||
|
||||
/*
|
||||
Placeholder for a more thorough refinement of Snow White
|
||||
*/
|
||||
|
||||
html body {
|
||||
font-family: "Georgia", "Times";
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user