Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
chore: switch to catppuccin theme, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marekvospel committed Dec 3, 2023
1 parent e381e69 commit 03f4d1e
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 48 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Libretrix has a big advantage, as it is built with the most awesome technology a
- pnpm
- SvelteKit
- UnoCSS
- Tauri (soon<sup>TM</sup>)
- Tauri
- Turborepo

## 📜 Licensing
Expand Down
38 changes: 0 additions & 38 deletions services/frontend/README.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<div class="flex flex-row gap-4 w-full px-4 py-2">
<img
src={$sender?.avatarUrl ? client.mxcUrlToHttp($sender?.avatarUrl) : undefined} alt="{$sender?.displayName}"
class="w-12 h-12 aspect-square rounded-full overflow-hidden flex items-center justify-center bg-gray-600 shrink-0"
class="w-12 h-12 aspect-square rounded-full overflow-hidden flex items-center justify-center bg-surface2 shrink-0"
/>
<div class="flex-col w-full">
<p class="inline-flex items-center w-full">
<span class="font-500">{$sender?.displayName}</span>
<span class="ml-auto text-gray-600">{ $date(events[0]?.getDate() ?? new Date(), {
<span class="ml-auto text-subtext0">{ $date(events[0]?.getDate() ?? new Date(), {
dateStyle: 'medium',
timeStyle: 'short'
}) }</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@
}
.formatted-style :global(code) {
@apply bg-gray-700 rounded-sm px-0.5 py-0.25 leading-6;
@apply bg-surface0 rounded-sm px-0.5 py-0.25 leading-6;
}
.formatted-style :global(pre) {
@apply mb-4;
}
.formatted-style :global(pre) > :global(code) {
@apply bg-gray-700 rounded-sm px-4 py-2 max-w-[70ch] block overflow-auto;
@apply bg-surface0 rounded-md p-2 max-w-[90ch] block overflow-auto;
}
.formatted-style :global(blockquote) {
Expand Down
6 changes: 3 additions & 3 deletions services/frontend/src/lib/components/nav/NavBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
export let extraClass = ''
</script>

<nav class="p-4 bg-gray-700 flex flex-col gap-2 {extraClass}">
<nav class="p-4 bg-surface0 flex flex-col gap-2 {extraClass}">
<nav class="flex flex-col h-full">
{#each $roomsStore.filter(r => r.getType() === undefined) as room (room.roomId)}
<button class="bg-transparent hover:bg-gray-800 px-2 py-0.25 rounded w-full text-left duration-300 transition-colors"
<button class="bg-transparent hover:bg-surface1 px-2 py-0.25 rounded w-full text-left duration-300 transition-colors"
on:click={() => dispatch('routeSwitch', {
roomId: room.roomId
})}>
Expand All @@ -21,7 +21,7 @@

<button class="
flex items-center gap-2 mt-auto
text-red bg-transparent hover:bg-gray-800 px-2 py-1 rounded w-full text-left transition-colors duration-300
text-red bg-transparent hover:bg-surface1 px-2 py-1 rounded w-full text-left transition-colors duration-300
" on:click={matrixLogout}>
<span class="inline-block i-bx:log-out"></span>
<span>Log out</span>
Expand Down
2 changes: 1 addition & 1 deletion services/frontend/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import { t } from 'svelte-i18n'
<meta name="og:description" content="{ $t('seo.description') }"/>
</svelte:head>

<div class="min-h-screen w-full h-full flex flex-col bg-gray-900 text-gray-100">
<div class="min-h-screen w-full h-full flex flex-col bg-base text-text">
<slot />
</div>
17 changes: 16 additions & 1 deletion services/frontend/unocss.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,20 @@ export default defineConfig({
'h-screen',
'sticky',
'top-0'
]
],
theme: {
colors: {
mauve: '#cba6f7',
red: '#f38ba8',
text: '#cdd6f4',
subtext1: '#bac2de',
subtext0: '#a6adc8',
surface2: '#585b70',
surface1: '#45475a',
surface0: '#313244',
base: '#1e1e2e',
mantle: '#181825',
crust: '#11111b'
}
}
})

0 comments on commit 03f4d1e

Please sign in to comment.