about summary refs log tree commit diff
path: root/app/javascript/themes/win95
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/themes/win95')
-rw-r--r--app/javascript/themes/win95/index.js10
-rw-r--r--app/javascript/themes/win95/theme.yml23
2 files changed, 33 insertions, 0 deletions
diff --git a/app/javascript/themes/win95/index.js b/app/javascript/themes/win95/index.js
new file mode 100644
index 000000000..bed6a1ef3
--- /dev/null
+++ b/app/javascript/themes/win95/index.js
@@ -0,0 +1,10 @@
+//  These lines are the same as in glitch:
+import 'font-awesome/css/font-awesome.css';
+require.context('../../images/', true);
+
+//  …But we want to use our own styles instead.
+import 'styles/win95.scss';
+
+//  Be sure to make this style file import from
+//  `themes/glitch/styles/index.scss` (the glitch styling), and not
+//  `application.scss` (which are the vanilla styles).
diff --git a/app/javascript/themes/win95/theme.yml b/app/javascript/themes/win95/theme.yml
new file mode 100644
index 000000000..43af38198
--- /dev/null
+++ b/app/javascript/themes/win95/theme.yml
@@ -0,0 +1,23 @@
+#  win95 theme.
+
+#  Ported over from `cybrespace:mastodon/theme_win95`.
+#  <https://github.com/cybrespace/mastodon/tree/theme_win95>
+
+#  You can use this theme file as inspiration for porting over
+#  a preëxisting Mastodon theme.
+
+#  We only modify the `common` pack, which contains our styling.
+pack:
+  common:
+    filename: index.js
+    stylesheet: true
+  #  All unspecified packs will inherit from glitch.
+
+#  By default, the glitch preloads will also be used here. You can
+#  disable them by setting `preload` to `null`.
+
+#      preload:
+
+#  The `fallback` parameter tells us to use glitch files for everything
+#  we haven't specified.
+fallback: glitch