silverpill on Nostr: FWC You mean assets/custom.css ? This feature is still experimental so there is no ...
Published at
2024-12-30 19:46:41Event JSON
{
"id": "baad64d5aae89c8ad0704f25a8d2da00c139f92f7c6b09b2159164b0c46f43d1",
"pubkey": "6a5f35dc281276c30c527e1240ef6bad3ef27bcf92b4fef017dc7f5a5c31e5ec",
"created_at": 1735588001,
"kind": 1,
"tags": [
[
"p",
"e9b9b16fb3011878d5de5601076b8fd331a63de5f8d0e9601d5bb2b54b714170",
"wss://relay.mostr.pub"
],
[
"e",
"d94c3d63cbe009f75e17c9c4fba7811371f207deb6143d5cdffe8f6e4bcc4858",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mitra.social/objects/0194191b-36f5-04a2-e241-3a4354121690",
"activitypub"
]
],
"content": "nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqaxumzmanqyv834w72cqsw6u06vc6v009lrgwjcqatwet2jm3g9cq22f3ma You mean assets/custom.css ? This feature is still experimental so there is no example.\n\nIt is a simple CSS file. You can put whatever you want there, but the easiest way to get started is to override CSS variables. We have two sets of them, one for light mode and another one for dark mode:\n\nhttps://codeberg.org/silverpill/mitra-web/src/commit/712322ae813df22119a7c0014480587ea71505c7/src/App.vue#L38-L114\n\nYour custom.css might look like this:\n\n:root {\n /* Light theme */\n --background-color: red;\n}\n\n[data-theme=\"dark\"] {\n /* Dark theme */\n --background-color: green;\n}\n",
"sig": "17bb7da6417157bd209732bd6bf23624c68c2d7738394f67b0cff8f17699b0694f5b8c2c7739099124a012071a5eb77ec833f3f1504cb9edc41cb3d455288a14"
}