mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 19:07:06 +00:00
Add light theme and secondary color
This commit is contained in:
@@ -7,6 +7,7 @@ VITE_PLATFORM_NAME=Flotilla
|
|||||||
VITE_PLATFORM_LOGO=static/flotilla.png
|
VITE_PLATFORM_LOGO=static/flotilla.png
|
||||||
VITE_PLATFORM_RELAY=
|
VITE_PLATFORM_RELAY=
|
||||||
VITE_PLATFORM_ACCENT="#7161FF"
|
VITE_PLATFORM_ACCENT="#7161FF"
|
||||||
|
VITE_PLATFORM_SECONDARY="#EB5E28"
|
||||||
VITE_PLATFORM_DESCRIPTION="Flotilla is nostr — for communities."
|
VITE_PLATFORM_DESCRIPTION="Flotilla is nostr — for communities."
|
||||||
VITE_INDEXER_RELAYS=wss://purplepag.es/,wss://relay.damus.io/,wss://relay.nostr.band/
|
VITE_INDEXER_RELAYS=wss://purplepag.es/,wss://relay.damus.io/,wss://relay.nostr.band/
|
||||||
VITE_SIGNER_RELAYS=wss://relay.nsec.app/,wss://bucket.coracle.social/
|
VITE_SIGNER_RELAYS=wss://relay.nsec.app/,wss://bucket.coracle.social/
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
# 1.0.3
|
||||||
|
|
||||||
|
* Add light theme
|
||||||
|
* Use correct alerts server
|
||||||
|
|
||||||
# 1.0.2
|
# 1.0.2
|
||||||
|
|
||||||
* Fix add relay button
|
* Fix add relay button
|
||||||
|
|||||||
@@ -46,6 +46,9 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
font-family: Lato;
|
font-family: Lato;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme] {
|
||||||
--base-100: oklch(var(--b1));
|
--base-100: oklch(var(--b1));
|
||||||
--base-200: oklch(var(--b2));
|
--base-200: oklch(var(--b2));
|
||||||
--base-300: oklch(var(--b3));
|
--base-300: oklch(var(--b3));
|
||||||
|
|||||||
3
src/assets/icons/Moon.svg
Normal file
3
src/assets/icons/Moon.svg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M21.0672 11.8568L20.4253 11.469L21.0672 11.8568ZM12.1432 2.93276L11.7553 2.29085V2.29085L12.1432 2.93276ZM21.25 12C21.25 17.1086 17.1086 21.25 12 21.25V22.75C17.9371 22.75 22.75 17.9371 22.75 12H21.25ZM12 21.25C6.89137 21.25 2.75 17.1086 2.75 12H1.25C1.25 17.9371 6.06294 22.75 12 22.75V21.25ZM2.75 12C2.75 6.89137 6.89137 2.75 12 2.75V1.25C6.06294 1.25 1.25 6.06294 1.25 12H2.75ZM15.5 14.25C12.3244 14.25 9.75 11.6756 9.75 8.5H8.25C8.25 12.5041 11.4959 15.75 15.5 15.75V14.25ZM20.4253 11.469C19.4172 13.1373 17.5882 14.25 15.5 14.25V15.75C18.1349 15.75 20.4407 14.3439 21.7092 12.2447L20.4253 11.469ZM9.75 8.5C9.75 6.41182 10.8627 4.5828 12.531 3.57467L11.7553 2.29085C9.65609 3.5593 8.25 5.86509 8.25 8.5H9.75ZM12 2.75C11.9115 2.75 11.8077 2.71008 11.7324 2.63168C11.6686 2.56527 11.6538 2.50244 11.6503 2.47703C11.6461 2.44587 11.6482 2.35557 11.7553 2.29085L12.531 3.57467C13.0342 3.27065 13.196 2.71398 13.1368 2.27627C13.0754 1.82126 12.7166 1.25 12 1.25V2.75ZM21.7092 12.2447C21.6444 12.3518 21.5541 12.3539 21.523 12.3497C21.4976 12.3462 21.4347 12.3314 21.3683 12.2676C21.2899 12.1923 21.25 12.0885 21.25 12H22.75C22.75 11.2834 22.1787 10.9246 21.7237 10.8632C21.286 10.804 20.7293 10.9658 20.4253 11.469L21.7092 12.2447Z" fill="#1C274C"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -59,6 +59,7 @@
|
|||||||
import MapPoint from "@assets/icons/Map Point.svg?dataurl"
|
import MapPoint from "@assets/icons/Map Point.svg?dataurl"
|
||||||
import MenuDots from "@assets/icons/Menu Dots.svg?dataurl"
|
import MenuDots from "@assets/icons/Menu Dots.svg?dataurl"
|
||||||
import MenuDotsCircle from "@assets/icons/Menu Dots Circle.svg?dataurl"
|
import MenuDotsCircle from "@assets/icons/Menu Dots Circle.svg?dataurl"
|
||||||
|
import Moon from "@assets/icons/Moon.svg?dataurl"
|
||||||
import NotesMinimalistic from "@assets/icons/Notes Minimalistic.svg?dataurl"
|
import NotesMinimalistic from "@assets/icons/Notes Minimalistic.svg?dataurl"
|
||||||
import Pallete2 from "@assets/icons/Pallete 2.svg?dataurl"
|
import Pallete2 from "@assets/icons/Pallete 2.svg?dataurl"
|
||||||
import Paperclip from "@assets/icons/Paperclip.svg?dataurl"
|
import Paperclip from "@assets/icons/Paperclip.svg?dataurl"
|
||||||
@@ -151,6 +152,7 @@
|
|||||||
"map-point": MapPoint,
|
"map-point": MapPoint,
|
||||||
"menu-dots": MenuDots,
|
"menu-dots": MenuDots,
|
||||||
"menu-dots-circle": MenuDotsCircle,
|
"menu-dots-circle": MenuDotsCircle,
|
||||||
|
moon: Moon,
|
||||||
"notes-minimalistic": NotesMinimalistic,
|
"notes-minimalistic": NotesMinimalistic,
|
||||||
"pallete-2": Pallete2,
|
"pallete-2": Pallete2,
|
||||||
paperclip: Paperclip,
|
paperclip: Paperclip,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import type {Snippet} from "svelte"
|
||||||
import {fly} from "@lib/transition"
|
import {fly} from "@lib/transition"
|
||||||
import Icon from "@lib/components/Icon.svelte"
|
import Icon from "@lib/components/Icon.svelte"
|
||||||
import Page from "@lib/components/Page.svelte"
|
import Page from "@lib/components/Page.svelte"
|
||||||
@@ -7,13 +8,17 @@
|
|||||||
import SecondaryNavSection from "@lib/components/SecondaryNavSection.svelte"
|
import SecondaryNavSection from "@lib/components/SecondaryNavSection.svelte"
|
||||||
import LogOut from "@app/components/LogOut.svelte"
|
import LogOut from "@app/components/LogOut.svelte"
|
||||||
import {pushModal} from "@app/modal"
|
import {pushModal} from "@app/modal"
|
||||||
interface Props {
|
import {theme} from "@app/theme"
|
||||||
children?: import("svelte").Snippet
|
|
||||||
|
type Props = {
|
||||||
|
children?: Snippet
|
||||||
}
|
}
|
||||||
|
|
||||||
const {children}: Props = $props()
|
const {children}: Props = $props()
|
||||||
|
|
||||||
const logout = () => pushModal(LogOut)
|
const logout = () => pushModal(LogOut)
|
||||||
|
|
||||||
|
const toggleTheme = () => theme.set($theme === "dark" ? "light" : "dark")
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<SecondaryNav>
|
<SecondaryNav>
|
||||||
@@ -34,11 +39,16 @@
|
|||||||
</SecondaryNavItem>
|
</SecondaryNavItem>
|
||||||
</div>
|
</div>
|
||||||
<div in:fly|local={{delay: 150}}>
|
<div in:fly|local={{delay: 150}}>
|
||||||
|
<SecondaryNavItem onclick={toggleTheme}>
|
||||||
|
<Icon icon="moon" /> Theme
|
||||||
|
</SecondaryNavItem>
|
||||||
|
</div>
|
||||||
|
<div in:fly|local={{delay: 200}}>
|
||||||
<SecondaryNavItem href="/settings/about">
|
<SecondaryNavItem href="/settings/about">
|
||||||
<Icon icon="info-square" /> About
|
<Icon icon="info-square" /> About
|
||||||
</SecondaryNavItem>
|
</SecondaryNavItem>
|
||||||
</div>
|
</div>
|
||||||
<div in:fly|local={{delay: 200}}>
|
<div in:fly|local={{delay: 250}}>
|
||||||
<SecondaryNavItem class="text-error hover:text-error" onclick={logout}>
|
<SecondaryNavItem class="text-error hover:text-error" onclick={logout}>
|
||||||
<Icon icon="exit" /> Log Out
|
<Icon icon="exit" /> Log Out
|
||||||
</SecondaryNavItem>
|
</SecondaryNavItem>
|
||||||
|
|||||||
@@ -30,6 +30,15 @@ export default {
|
|||||||
...themes["dark"],
|
...themes["dark"],
|
||||||
primary: process.env.VITE_PLATFORM_ACCENT,
|
primary: process.env.VITE_PLATFORM_ACCENT,
|
||||||
"primary-content": "#EAE7FF",
|
"primary-content": "#EAE7FF",
|
||||||
|
secondary: process.env.VITE_PLATFORM_SECONDARY,
|
||||||
|
"secondary-content": "#EAE7FF",
|
||||||
|
},
|
||||||
|
light: {
|
||||||
|
...themes["winter"],
|
||||||
|
primary: process.env.VITE_PLATFORM_ACCENT,
|
||||||
|
"primary-content": "#EAE7FF",
|
||||||
|
secondary: process.env.VITE_PLATFORM_SECONDARY,
|
||||||
|
"secondary-content": "#EAE7FF",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user