diff --git a/core/wiki/peek-stylesheets.tid b/core/wiki/peek-stylesheets.tid
index 7d9726fbe..6f364de77 100644
--- a/core/wiki/peek-stylesheets.tid
+++ b/core/wiki/peek-stylesheets.tid
@@ -1,35 +1,28 @@
title: $:/snippets/peek-stylesheets
-\define expandable-stylesheets-list()
+\procedure expandable-stylesheets-list()
\whitespace trim
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
-<$vars state=<>>
-<$set name="state" value={{{ [addsuffix] }}}>
+<$let openState=`$:/state/peek-tiddler/open/$(currentTiddler)$$(qualify)$` open={{{ [get[text]else[no]] }}}>
-
-<$reveal type="match" state=<> text="yes" tag="span">
-<$button set=<> setTo="no" class="tc-btn-invisible">
-{{$:/core/images/down-arrow}}
-$button>
-$reveal>
-<$reveal type="nomatch" state=<> text="yes" tag="span">
-<$button set=<> setTo="yes" class="tc-btn-invisible">
-{{$:/core/images/right-arrow}}
-$button>
-$reveal>
-<$link>
-<$view field="title"/>
-$link>
-<$reveal type="match" state=<> text="yes" tag="div">
-<$set name="source" tiddler=<>>
-<$wikify name="styles" text=<>>
+<$checkbox tiddler=<> field="text" checked="yes" style.appearance="none">
+
+<%if [match[yes]]%>
+{{$:/core/images/down-arrow|1em}}
+<%else%>
+{{$:/core/images/right-arrow|1em}}
+<%endif%>
+
+$checkbox>
+<$link/>
+<%if [match[yes]]%>
+<$wikify name="styles" text={{!!text}}>
<$codeblock code=<> language="css"/>
$wikify>
-$set>
-$reveal>
+<%endif%>
-$set>
-$vars>
+$let>
$list>
\end
@@ -39,38 +32,36 @@ title: $:/snippets/peek-stylesheets
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
-
-<$link>
-<$view field="title"/>
-$link>
-<$set name="source" tiddler=<>>
-<$wikify name="styles" text=<>>
+<$link/>
+<$wikify name="styles" text={{!!text}}>
<$text text=<>/>
$wikify>
-$set>
$list>
\end
\whitespace trim
-<$vars modeState=<>>
+<$let modeState=`$:/state/peek-stylesheets/mode/$(qualify)$` mode={{{ [get[text]else[expand]] }}}>
-<$reveal type="nomatch" state=<> text="expanded" tag="div">
-<$button set=<> setTo="expanded" class="tc-btn-invisible">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}$button>
-$reveal>
-<$reveal type="match" state=<> text="expanded" tag="div">
-<$button set=<> setTo="restored" class="tc-btn-invisible">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}$button>
-$reveal>
+<$checkbox tiddler=<> field="text" checked="yes" style.appearance="none">
+
+<%if [match[expand]]%>
+{{$:/core/images/chevron-right|1em}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}
+<%else%>
+{{$:/core/images/chevron-down|1em}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}
+<%endif%>
+
+$checkbox>
-<$reveal type="nomatch" state=<> text="expanded" tag="div">
+<%if [match[expand]]%>
<>
-$reveal>
-<$reveal type="match" state=<> text="expanded" tag="div">
+<%else%>
<>
-$reveal>
+<%endif%>
-$vars>
+$let>
\ No newline at end of file