-
-
diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css
index 6afca45..6362f5d 100644
--- a/.vitepress/theme/style.css
+++ b/.vitepress/theme/style.css
@@ -3,8 +3,8 @@
@tailwind utilities;
@font-face {
- font-family: 'Fira Code';
- src: local('Fira Code'), url('/fira-code-variable.ttf') format('truetype');
+ font-family: "Fira Code";
+ src: local("Fira Code"), url("/fira-code-variable.ttf") format("truetype");
font-display: swap;
}
@@ -14,19 +14,19 @@
--active-color: #000000;
}
-/* TODO: wait for tailwind typography to support dark theme: https://github.com/tailwindlabs/tailwindcss-typography/pull/122#issuecomment-937641445 */
-/* @media screen and (prefers-color-scheme: dark) {
+@media screen and (prefers-color-scheme: dark) {
:root {
- --background-color: #010101;
- --foreground-color: #d7d7d7;
+ --background-color: #13161f;
+ --foreground-color: #dadada;
+ --active-color: #ffffff;
}
-} */
+}
body {
@apply antialiased;
background-color: var(--background-color);
color: var(--foreground-color);
- font-family: 'Fira Code', monospace;
+ font-family: "Fira Code", monospace;
margin: 2rem;
}
@@ -42,7 +42,7 @@ a:active {
color: var(--active-color);
}
-a[href='#'] {
+a[href="#"] {
@apply pointer-events-none cursor-not-allowed opacity-40;
}
diff --git a/index.md b/index.md
index cd23c34..9cf7e55 100644
--- a/index.md
+++ b/index.md
@@ -2,13 +2,14 @@
title: A language for authoring state machines.
---
-
+
diff --git a/tailwind.config.js b/tailwind.config.js
index e4907ac..121e934 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -1,18 +1,18 @@
-const plugin = require('tailwindcss/plugin');
+const plugin = require("tailwindcss/plugin");
const variableFontWeightPlugin = plugin(({ addUtilities }) => {
const fontWeights = [
- '.font-thin',
- '.font-light',
- '.font-extralight',
- '.font-normal',
- '.font-medium',
- '.font-semibold',
- '.font-bold',
- '.font-extrabold',
- '.font-black',
+ ".font-thin",
+ ".font-light",
+ ".font-extralight",
+ ".font-normal",
+ ".font-medium",
+ ".font-semibold",
+ ".font-bold",
+ ".font-extrabold",
+ ".font-black",
].reduce((acc, className, i) => {
- acc[className] = { 'font-variation-settings': `'wght' ${(i + 1) * 100}` };
+ acc[className] = { "font-variation-settings": `'wght' ${(i + 1) * 100}` };
return acc;
}, {});
@@ -20,7 +20,8 @@ const variableFontWeightPlugin = plugin(({ addUtilities }) => {
});
module.exports = {
- mode: 'jit',
- purge: ['./.vitepress/theme/**/*.vue', './**/*.md'],
- plugins: [variableFontWeightPlugin, require('@tailwindcss/typography')],
+ mode: "jit",
+ purge: ["./.vitepress/theme/**/*.vue", "./**/*.md"],
+ plugins: [variableFontWeightPlugin, require("@tailwindcss/typography")],
+ darkMode: "media",
};