this repo has no description

Build step for the theme file

ari.express e49ce63d 4e1faff7

verified
Changed files
+13 -88
src
+6
config.ts.example
··· 9 9 static readonly PDS_URL: string = ""; 10 10 11 11 /** 12 + * Theme css file to be used 13 + * @default "theme.css" 14 + */ 15 + static readonly THEME: string = "themes/theme.css"; 16 + 17 + /** 12 18 * The base URL of the frontend service for linking to replies/quotes/accounts etc. 13 19 * @default "https://deer.social" // or https://bsky.app if you're boring 14 20 */
+2 -87
src/app.css
··· 1 - @font-face { 2 - font-family: "ProggyClean"; 3 - src: url(https://witchcraft.systems/ProggyCleanNerdFont-Regular.ttf); 4 - } 5 - 6 - :root { 7 - --link-color: #646cff; 8 - --link-hover-color: #535bf2; 9 - --background-color: #12082b; 10 - --header-background-color: #1f1145; 11 - --content-background-color: #0d0620; 12 - --text-color: white; 13 - --border-color: #8054f0; 14 - --indicator-inactive-color: #4a4a4a; 15 - --indicator-active-color: #8054f0; 16 - } 17 - 18 - ::-webkit-scrollbar { 19 - width: 0px; 20 - background: transparent; 21 - padding: 0; 22 - margin: 0; 23 - } 24 - ::-webkit-scrollbar-thumb { 25 - background: transparent; 26 - border-radius: 0; 27 - } 28 - ::-webkit-scrollbar-track { 29 - background: transparent; 30 - border-radius: 0; 31 - } 32 - ::-webkit-scrollbar-corner { 33 - background: transparent; 34 - border-radius: 0; 35 - } 36 - ::-webkit-scrollbar-button { 37 - background: transparent; 38 - border-radius: 0; 39 - } 40 - * { 41 - scrollbar-width: none; 42 - scrollbar-color: transparent transparent; 43 - -ms-overflow-style: none; /* IE and Edge */ 44 - -webkit-overflow-scrolling: touch; 45 - -webkit-scrollbar: none; /* Safari */ 46 - } 47 - 48 - a { 49 - font-weight: 500; 50 - color: var(--link-color); 51 - text-decoration: inherit; 52 - } 53 - a:hover { 54 - color: var(--link-hover-color); 55 - text-decoration: underline; 56 - } 57 - 58 1 body { 59 - margin: 0; 60 - display: flex; 61 - place-items: center; 62 - min-width: 320px; 63 - min-height: 100vh; 64 - background-color: var(--background-color); 65 - font-family: "ProggyClean", monospace; 66 - font-size: 24px; 67 - color: var(--text-color); 68 - border-color: var(--border-color); 69 - overflow-wrap: break-word; 70 - word-wrap: normal; 71 - word-break: break-word; 72 - hyphens: none; 73 - } 74 - 75 - h1 { 76 - font-size: 3.2em; 77 - line-height: 1.1; 78 - } 79 - 80 - #app { 81 - max-width: 1400px; 82 - width: 100%; 83 - margin: 0; 84 - padding: 0; 85 - margin-left: auto; 86 - margin-right: auto; 87 - text-align: center; 88 - } 2 + background-color: red; 3 + }
+5 -1
vite.config.ts
··· 1 1 import { defineConfig } from "vite"; 2 2 import { svelte } from "@sveltejs/vite-plugin-svelte"; 3 + import { themePlugin } from "./theming"; 3 4 4 5 // https://vite.dev/config/ 5 6 export default defineConfig({ 6 - plugins: [svelte()], 7 + plugins: [ 8 + themePlugin(), 9 + svelte(), 10 + ], 7 11 });