Moved to a new clean project on pnpm

This commit is contained in:
2026-11-01 10:48:45 +01:00
commit 219b705b96
33 changed files with 5668 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
@import './style/global.css';
@import 'tailwindcss';
:root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body,
#app {
margin: 0;
padding: 0;
color: var(--text);
background-color: var(--bg-dark);
background-image: radial-gradient(circle at center, var(--bg-light) 1px, transparent 1px);
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
.card {
padding: 2em;
}
/* button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
*/
+13
View File
@@ -0,0 +1,13 @@
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};
+23
View File
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">
<head>
<script>
// Immediately apply saved or system theme – no flash
(function () {
const saved = localStorage.getItem('theme');
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
const theme =
saved === 'dark' || saved === 'light' ? saved : prefersDark ? 'dark' : 'light';
document.documentElement.setAttribute('data-theme', theme);
document.documentElement.style.setProperty('--initial-load', 'true');
})();
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="text-scale" content="scale" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="107" height="128" viewBox="0 0 107 128"><title>svelte-logo</title><path d="M94.157 22.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282 29.608A29.92 29.92 0 0 0 8.764 49.65a31.5 31.5 0 0 0 3.108 20.231 30 30 0 0 0-4.477 11.183 31.9 31.9 0 0 0 5.448 24.116c10.402 14.887 30.942 19.297 45.791 9.835l26.083-16.624A29.92 29.92 0 0 0 98.235 78.35a31.53 31.53 0 0 0-3.105-20.232 30 30 0 0 0 4.474-11.182 31.88 31.88 0 0 0-5.447-24.116" style="fill:#ff3e00"/><path d="M45.817 106.582a20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.503 18 18 0 0 1 .624-2.435l.49-1.498 1.337.981a33.6 33.6 0 0 0 10.203 5.098l.97.294-.09.968a5.85 5.85 0 0 0 1.052 3.878 6.24 6.24 0 0 0 6.695 2.485 5.8 5.8 0 0 0 1.603-.704L69.27 76.28a5.43 5.43 0 0 0 2.45-3.631 5.8 5.8 0 0 0-.987-4.371 6.24 6.24 0 0 0-6.698-2.487 5.7 5.7 0 0 0-1.6.704l-9.953 6.345a19 19 0 0 1-5.296 2.326 20.72 20.72 0 0 1-22.237-8.243 19.17 19.17 0 0 1-3.277-14.502 17.99 17.99 0 0 1 8.13-12.052l26.081-16.623a19 19 0 0 1 5.3-2.329 20.72 20.72 0 0 1 22.237 8.243 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-.624 2.435l-.49 1.498-1.337-.98a33.6 33.6 0 0 0-10.203-5.1l-.97-.294.09-.968a5.86 5.86 0 0 0-1.052-3.878 6.24 6.24 0 0 0-6.696-2.485 5.8 5.8 0 0 0-1.602.704L37.73 51.72a5.42 5.42 0 0 0-2.449 3.63 5.79 5.79 0 0 0 .986 4.372 6.24 6.24 0 0 0 6.698 2.486 5.8 5.8 0 0 0 1.602-.704l9.952-6.342a19 19 0 0 1 5.295-2.328 20.72 20.72 0 0 1 22.237 8.242 19.17 19.17 0 0 1 3.277 14.503 18 18 0 0 1-8.13 12.053l-26.081 16.622a19 19 0 0 1-5.3 2.328" style="fill:#fff"/></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

+1
View File
@@ -0,0 +1 @@
// place files you want to import through the `#lib` alias in this folder.
+43
View File
@@ -0,0 +1,43 @@
<script lang="ts">
import { onMount, type SvelteComponent } from 'svelte';
let {
node,
callbacks
}: {
node: HTMLElement | SvelteComponent | Document;
callbacks: { title: string; fn: (e: MouseEvent) => void }[];
} = $props();
let contextMenu: HTMLElement;
onMount(() => {
node.oncontextmenu = showContextMenu;
node.onclick = hideContextMenu;
contextMenu.onclick = hideContextMenu;
});
function showContextMenu(e: PointerEvent) {
e.preventDefault();
console.log('im called');
contextMenu.style.display = 'block';
contextMenu.style.top = e.pageY.toString() + 'px';
contextMenu.style.left = e.pageX.toString() + 'px';
}
function hideContextMenu() {
contextMenu.style.display = 'none';
}
</script>
<div bind:this={contextMenu} class=" bg-surface-3 absolute z-200 hidden rounded-md p-2">
<ul>
{#each callbacks as item}
<li class=" border-b-px border-text-primary">
<button aria-label={item.title} onclick={(e) => item.fn(e)}>{item.title}</button>
</li>
{/each}
</ul>
</div>
+350
View File
@@ -0,0 +1,350 @@
<script lang="ts">
import { petals } from '#lib/stores/petals.ts';
import { onMount } from 'svelte';
let {
value = $bindable(''),
blinkDelay = 250,
autofocus = true,
oninput = () => {}
}: {
value?: string;
blinkDelay?: number;
autofocus?: boolean;
oninput?: (value: string) => void;
} = $props();
let container: HTMLElement;
let cursorPos: number = $state(value.length);
let anchorPos: number | null = $state(null);
let isDragging: boolean = $state(false);
let focused: boolean = $state(false);
let blinkPaused: boolean = $state(false);
let blinkTimer: ReturnType<typeof setTimeout> | null = null;
const mods: Record<string, (e: KeyboardEvent) => void> = {
a: () => {
anchorPos = 0;
cursorPos = value.length;
pauseBlink();
},
c: () => copySelection(),
x: () => cutSelection(),
e: () => {
anchorPos = null;
cursorPos = value.length;
pauseBlink();
},
d: () => deleteCharAfter()
};
const base: Record<string, (e: KeyboardEvent) => void> = {
Home: (e) => moveTo(0, e.shiftKey),
End: (e) => moveTo(value.length, e.shiftKey),
ArrowLeft: (e) =>
e.ctrlKey ? moveTo(prevWordBoundary(cursorPos), e.shiftKey) : moveCursor(-1, e.shiftKey),
ArrowRight: (e) =>
e.ctrlKey ? moveTo(nextWordBoundary(cursorPos), e.shiftKey) : moveCursor(1, e.shiftKey),
Backspace: () => deleteCharBefore(),
Delete: () => deleteCharAfter(),
Enter: () => gust()
};
let selection = $derived.by(() => {
if (anchorPos === null || anchorPos === cursorPos) {
return { active: false, start: -1, end: -1 };
}
return {
active: true,
start: Math.min(anchorPos, cursorPos),
end: Math.max(anchorPos, cursorPos)
};
});
function isSelected(i: number): boolean {
return selection.active && i >= selection.start && i < selection.end;
}
function gust(): void {
if (!container) return;
petals(container, { duration: 4000, swayAmp: 26, hideOriginals: false });
value = '';
cursorPos = 0;
anchorPos = null;
}
$effect(() => {
if (autofocus && container) {
container.focus();
}
});
$effect(() => {
return () => {
if (blinkTimer) {
clearTimeout(blinkTimer);
blinkTimer = null;
}
};
});
$effect(() => {
if (cursorPos > value.length) cursorPos = value.length;
});
// Global mousemove / mouseup during drag.
$effect(() => {
if (!isDragging) return;
const onMove = (e: MouseEvent) => {
const index = charIndexFromEvent(e);
if (index === null) return;
cursorPos = index;
pauseBlink();
};
window.addEventListener('mousemove', onMove);
window.addEventListener('mouseup', () => (isDragging = false));
return () => {
window.removeEventListener('mousemove', onMove);
window.removeEventListener('mouseup', () => (isDragging = false));
};
});
export function focusInput(): void {
container?.focus();
}
function pauseBlink() {
blinkPaused = true;
if (blinkTimer) clearTimeout(blinkTimer);
blinkTimer = setTimeout(() => {
blinkPaused = false;
blinkTimer = null;
}, blinkDelay);
}
function handleFocus() {
focused = true;
blinkPaused = false;
}
function handleBlur() {
focused = false;
if (blinkTimer) {
clearTimeout(blinkTimer);
blinkTimer = null;
}
blinkPaused = true;
}
function charIndexFromEvent(e: MouseEvent): number | null {
const elem = (e.target as HTMLElement | null)?.closest?.(
'[data-char-index]'
) as HTMLElement | null;
if (!elem) return null;
const raw = elem.getAttribute('data-char-index');
return raw === null ? null : Number(raw);
}
function getSelectedText(): string {
if (!selection.active) return '';
return value.slice(selection.start, selection.end);
}
function deleteSelection(): void {
if (!selection.active) return;
value = value.slice(0, selection.start) + value.slice(selection.end);
cursorPos = selection.start;
anchorPos = null;
oninput(value);
}
function insertChar(char: string): void {
if (selection.active) {
value = value.slice(0, selection.start) + char + value.slice(selection.end);
cursorPos = selection.start + char.length;
anchorPos = null;
} else {
value = value.slice(0, cursorPos) + char + value.slice(cursorPos);
cursorPos += char.length;
}
oninput(value);
pauseBlink();
}
function deleteCharBefore() {
if (selection.active) {
deleteSelection();
pauseBlink();
return;
}
if (cursorPos > 0) {
value = value.slice(0, cursorPos - 1) + value.slice(cursorPos);
oninput(value);
cursorPos--;
pauseBlink();
}
}
function deleteCharAfter() {
if (selection.active) {
deleteSelection();
pauseBlink();
return;
}
if (cursorPos < value.length) {
value = value.slice(0, cursorPos) + value.slice(cursorPos + 1);
oninput(value);
pauseBlink();
}
}
function moveCursor(delta: number, extend: boolean) {
const newPos = cursorPos + delta;
if (newPos < 0 || newPos > value.length) return;
if (extend) {
if (anchorPos === null) anchorPos = cursorPos;
} else {
anchorPos = null;
}
cursorPos = newPos;
pauseBlink();
}
function moveTo(pos: number, extend: boolean) {
if (extend) {
if (anchorPos === null) anchorPos = cursorPos;
} else {
anchorPos = null;
}
cursorPos = pos;
pauseBlink();
}
function prevWordBoundary(pos: number): number {
let i = pos;
while (i > 0 && !/\s/.test(value[i - 1])) i--;
while (i > 0 && /\s/.test(value[i - 1])) i--;
return i;
}
function nextWordBoundary(pos: number): number {
let i = pos;
while (i < value.length && !/\s/.test(value[i])) i++;
while (i < value.length && /\s/.test(value[i])) i++;
return i;
}
function handleMouseDown(e: MouseEvent): void {
e.preventDefault();
const idx = charIndexFromEvent(e);
const clickPos = idx ?? value.length;
if (e.shiftKey) {
if (anchorPos === null) anchorPos = cursorPos;
cursorPos = clickPos;
} else {
anchorPos = clickPos;
cursorPos = clickPos;
}
isDragging = true;
pauseBlink();
}
function handlePaste(e: ClipboardEvent): void {
e.preventDefault();
const text = e.clipboardData?.getData('text/plain') ?? '';
if (text) insertChar(text);
}
function copySelection(): void {
if (!selection.active) return;
void navigator.clipboard.writeText(getSelectedText());
}
function cutSelection(): void {
if (!selection.active) return;
void navigator.clipboard.writeText(getSelectedText());
deleteSelection();
pauseBlink();
}
function handleKeydown(e: KeyboardEvent) {
const isMod = e.ctrlKey || e.metaKey;
const key = e.key.length === 1 ? e.key.toLowerCase() : e.key;
function insertIfChar(e: KeyboardEvent): ((e: KeyboardEvent) => void) | undefined {
if (key.length !== 1 || e.altKey || e.metaKey) return undefined;
return (e) => insertChar(e.key);
}
const handler = isMod ? mods[key] : (base[key] ?? insertIfChar(e));
if (!handler) return;
e.preventDefault();
handler(e);
}
onMount(() => {
if (autofocus && container) {
container.focus();
}
});
</script>
<div
id="terminal-input"
class="font-terminal relative inline-block whitespace-nowrap outline-none select-none"
bind:this={container}
tabindex="1"
role="textbox"
aria-label="terminal input"
onblur={handleBlur}
onfocus={handleFocus}
onkeydown={handleKeydown}
onpaste={handlePaste}
onmousedown={handleMouseDown}
style="--cursor-index: {cursorPos};"
>
<span class="prompt inline-block w-[1ch] text-center">$</span>
<span class="inline cursor-text" aria-hidden="true">
{#each value.split('') as char, i}
<span
class="char inline-block w-[1ch] text-center whitespace-pre"
class:selected={isSelected(i)}
data-char-index={i}>{char}</span
>
{/each}
</span>
<div
id="curs"
class="cursor bg-text-primary absolute bottom-[0.2rem] h-px w-[1ch]"
class:animate-cursor-blink={!blinkPaused && !selection.active}
></div>
</div>
<style>
.cursor {
left: calc(var(--cursor-index) * 1ch + 8.5px + 1ch);
transition: all 0.1s ease;
}
.char {
transition: all linear 0.1s;
}
.char.selected {
transition: none;
background-color: var(--color-highlight);
border-radius: 2px;
}
.char.selected + .char.selected {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.char.selected:has(+ .char.selected) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
</style>
+32
View File
@@ -0,0 +1,32 @@
<script lang="ts">
import { mwin_movable } from '#lib/mwinlib/mwin_controller.svelte.ts';
import type { MWinParams } from '#lib/mwinlib/mwin_util.ts';
let {
children,
wrapper,
mwinoptions,
handle = $bindable(),
class: className = '',
...props
}: {
wrapper?: HTMLElement | string;
children?: any;
mwinoptions: Partial<MWinParams>;
handle?: HTMLElement | string;
class?: string;
[x: string]: any;
} = $props();
</script>
<div
{...props}
class=" transition-discrete will-change-auto {className}"
use:mwin_movable={{
wrapper,
handle,
...mwinoptions
}}
>
{@render children()}
</div>
+86
View File
@@ -0,0 +1,86 @@
<script lang="ts">
import { type MWinAPI, type MWinParams } from '#lib/mwinlib/mwin_util.ts';
import Input from './Input.svelte';
import Movable from './Movable.svelte';
let {
id,
wrapper,
username = $bindable(),
hostname = $bindable(),
working_dir = $bindable(),
mwin = $bindable(),
close
}: {
id: number;
wrapper: HTMLElement | string;
username: string;
hostname: string;
working_dir: string;
mwin: MWinAPI | undefined;
close?: (id: number) => void;
} = $props();
//let isProcessActive = $state(false);
let inputValue = $state('');
let inputComponent: any;
const mwinoptions: Partial<MWinParams> = {
handle: '#terminal-bar',
resizable: { threshold: 10, minWidth: 300, minHeight: 200 },
baseZIndex: 300,
resizeHandle: '#terminal',
onAPI: (api: MWinAPI) => {
mwin = api;
}
};
</script>
<Movable
{wrapper}
{mwinoptions}
class="shadow-subtle flex size-full h-256 w-420 flex-col rounded-lg"
>
<div
id="terminal-bar"
class=" bg-surface-2 grid grid-cols-[1fr_auto_1fr] rounded-t-md py-3 select-none"
>
<div class="dots-wrapper m-auto mx-3 flex size-max flex-row items-center justify-center gap-3">
<button
data-close-btn
class="bg-term-close size-3 cursor-pointer rounded-full active:brightness-85"
type="button"
aria-label="Close terminal"
onclick={() => close?.(id)}
></button>
<button
class="bg-term-maximize size-3 cursor-pointer rounded-full active:brightness-85"
type="button"
aria-label="Maximize terminal"
onclick={() => mwin?.maximize()}
></button>
<button
class="bg-term-minimize size-3 cursor-pointer rounded-2xl active:brightness-85"
type="button"
aria-label="Minimize terminal"
onclick={() => mwin?.minimize()}
></button>
</div>
<span class=" text-primary mx-auto text-sm font-bold"
>{username}@{hostname} — {working_dir} {mwin?.state.width}x{mwin?.state.height}</span
>
<div></div>
</div>
<div
class="inner-content scroll-hidden bg-surface-1 text-text-primary grow origin-top overflow-y-auto rounded-b-md p-4 text-sm"
id="cout"
onclick={() => inputComponent?.focusInput()}
onkeydown={() => inputComponent?.focusInput()}
role="textbox"
tabindex="-1"
>
<div id="outputWrapper"></div>
<Input bind:value={inputValue} blinkDelay={500} bind:this={inputComponent} />
</div>
</Movable>
+69
View File
@@ -0,0 +1,69 @@
<script lang="ts">
import { removeToast, toasts } from '#lib/stores/toasts.ts';
import { CircleCheckBig, CircleX, Info, TriangleAlert, X } from '@lucide/svelte';
import { onMount } from 'svelte';
import { fly } from 'svelte/transition';
onMount(() => {
toasts.set([]);
});
</script>
<div class="fixed top-4 right-4 z-50 flex h-full flex-col gap-2 overflow-visible">
{#each $toasts as toast (toast.id)}
<div
transition:fly={{ x: 20, y: 0, duration: 300 }}
id={`toast-${toast.id.toString()}`}
class="bg-surface-2 w-md overflow-hidden rounded-md"
onclick={() => toast.onClick?.(toast)}
role="button"
tabindex={toast.onClick ? 0 : undefined}
onkeydown={toast.onClick
? (e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
toast.onClick?.(toast);
}
}
: undefined}
>
<div class="flex items-center justify-start">
<div class="mx-4 my-8">
{#if toast.type === 'info'}
<Info class=" text-info"></Info>
{:else if toast.type === 'error'}
<CircleX class="text-error"></CircleX>
{:else if toast.type === 'warn'}
<TriangleAlert class="text-warning"></TriangleAlert>
{:else}
<CircleCheckBig class="text-success"></CircleCheckBig>
{/if}
</div>
<div class="my-2 mr-auto mb-auto ml-2 flex flex-col items-start justify-start select-none">
<h5 class=" text- text-md text-text-primary font-bold">{toast.title}</h5>
<p class=" text-md text-text-secondary mb-2 overflow-x-hidden overflow-y-scroll">
{toast.message}
</p>
</div>
<div class=" m-2 self-start">
<button
class:hidden={toast.hideDismiss}
onclick={(e) => {
e.stopPropagation();
removeToast(toast.id);
}}
>
<X
stroke-width={3}
size={18}
class=" hover:text-text-secondary transition-all duration-200 active:scale-90"
></X>
</button>
</div>
</div>
{#if !toast.hideProgress && toast.tween}
<div style:padding-right={`${toast.tween.current}%`} class=" bg-primary h-[2px] w-0"></div>
{/if}
</div>
{/each}
</div>
+27
View File
@@ -0,0 +1,27 @@
<script lang="ts">
let state = $state(false);
export function focus() {
console.log('called');
state = true;
}
let { children, onclick }: { children?: any; onclick?: ({}?: unknown) => unknown } = $props();
</script>
<button
onclick={() => {
onclick?.();
console.log('im called');
}}
class="
cursor-pointer rounded-full
transition-all duration-200 active:translate-y-0.5
active:brightness-90 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:brightness-100
"
>
<div class="">
{@render children()}
</div>
</button>
+580
View File
@@ -0,0 +1,580 @@
import {
getWrapperManager,
MWIN_MANAGER,
resolveElement,
type MWinAPI,
type MWinNormalizedParams,
type MWinParams,
type MWinState,
type ResizeDirection
} from './mwin_util';
export function mwin_movable(node: HTMLElement, options: Partial<MWinParams>) {
const controller = new MWinController(node, options);
const api: MWinAPI = {
state: controller.state,
minimize: () => controller.minimize(),
maximize: () => controller.maximize(),
close: () => controller.close(),
focus: () => controller.focus()
};
options.onAPI?.(api);
return {
destroy: () => controller.destroy()
};
}
class MWinController {
#rafID: number | null = null;
#pendingApply = false;
#node: HTMLElement;
#wrapper: HTMLElement;
#opts: MWinNormalizedParams;
#savedTransition: string;
#savedStyles: string;
#wrapperObserver: ResizeObserver | null = null;
#wrapperWidth: number = 0;
#wrapperHeight: number = 0;
#wrapperLeft: number = 0;
#wrapperTop: number = 0;
#wrapperBorderLeft: number = 0;
#wrapperBorderTop: number = 0;
#dragOffsetX: number = 0;
#dragOffsetY: number = 0;
#resizeDirection: ResizeDirection = null;
#resizeStartRect = { x: 0, y: 0, width: 0, height: 0 };
#resizeStartPos = { x: 0, y: 0 };
#restoreRect: { x: number; y: number; width: number; height: number } | null = null;
state = $state<MWinState>({
x: 0,
y: 0,
width: 0,
height: 0,
minimized: false,
maximized: false,
moving: false,
resizing: false,
zIndex: 0
});
constructor(node: HTMLElement, options: Partial<MWinParams>) {
this.#node = node;
const wrapper = resolveElement(options.wrapper, node);
if (!wrapper) throw new Error('[Movable] - Wrapper element not found!');
this.#wrapper = wrapper ?? document;
const wrapperStyle = getComputedStyle(this.#wrapper);
this.#wrapperBorderLeft = parseFloat(wrapperStyle.borderLeftWidth);
this.#wrapperBorderTop = parseFloat(wrapperStyle.borderTopWidth);
const resizableOpts = typeof options.resizable === 'object' ? options.resizable : {};
this.#opts = {
handle: resolveElement(options.handle, node),
initX: options.initX,
initY: options.initY,
initWidth: options.initWidth,
initHeight: options.initHeight,
baseZIndex: options.baseZIndex ?? 1,
resizeHandle: resolveElement(options.resizeHandle, node),
resizable: !!options.resizable,
threshold: resizableOpts.threshold ?? 8,
minWidth: resizableOpts.minWidth ?? 24, //MinWidth should be min-content
minHeight: resizableOpts.minHeight ?? 24, //MinHeight should be min-content
maxWidth: resizableOpts.maxWidth ?? Infinity,
maxHeight: resizableOpts.maxHeight ?? Infinity,
onClose: options.onClose,
onMinimize: options.onMinimize,
onMaximize: options.onMaximize,
onFocus: options.onFocus
};
this.#savedStyles = this.#node.style.cssText;
this.#savedTransition = this.#node.style.transition;
this.#node.style.transition = 'none';
this.#node.style.willChange = 'transform';
this.#wrapper.style.position = 'relative';
this.#node.style.position = 'absolute';
const wRect = this.#wrapper.getBoundingClientRect();
const nRect = this.#node.getBoundingClientRect();
this.state.x = this.#opts.initX ?? nRect.left - wRect.left;
this.state.y = this.#opts.initY ?? nRect.top - wRect.top;
this.state.width = this.#opts.initWidth ?? nRect.width;
this.state.height = this.#opts.initHeight ?? nRect.height;
this.#node.style.left = '0';
this.#node.style.top = '0';
this.#node.classList.add('[Movable]');
const mgr = getWrapperManager(this.#wrapper);
mgr.refCount++;
if (!node.hasAttribute('tabindex')) {
node.setAttribute('tabindex', '0');
}
node.setAttribute('role', 'region');
node.setAttribute('aria-label', 'Movable window');
this.#cacheWrapperRect();
node.addEventListener('pointerdown', this.#onPointerDown);
node.addEventListener('pointermove', this.#updateCursor);
node.addEventListener('pointerleave', this.#resetCursor);
this.#clampAndApply();
this.#bringToFront();
this.#wrapperObserver = new ResizeObserver(() => {
this.#wrapperWidth = this.#wrapper.clientWidth;
this.#wrapperHeight = this.#wrapper.clientHeight;
this.#onWrapperResize();
});
this.#wrapperObserver.observe(this.#wrapper);
}
#cacheWrapperRect() {
const wrapperRect = this.#wrapper.getBoundingClientRect();
this.#wrapperLeft = wrapperRect.left + this.#wrapperBorderLeft;
this.#wrapperTop = wrapperRect.top + this.#wrapperBorderTop;
this.#wrapperWidth = this.#wrapper.clientWidth;
this.#wrapperHeight = this.#wrapper.clientHeight;
}
#bringToFront() {
const mgr = getWrapperManager(this.#wrapper);
mgr.zCounter++;
this.#opts.onFocus?.();
this.state.zIndex = this.#opts.baseZIndex + mgr.zCounter;
this.#node.style.zIndex = String(this.state.zIndex);
}
#clampAndApply() {
this.#clampRect();
this.#apply();
}
#clampRect() {
const bw = this.#wrapperWidth;
const bh = this.#wrapperHeight;
let w = Math.min(this.state.width, bw, this.#opts.maxWidth);
w = Math.max(w, this.#opts.minWidth, 0);
let h = Math.min(this.state.height, bh, this.#opts.maxHeight);
h = Math.max(h, this.#opts.minHeight, 0);
this.state.width = w;
this.state.height = h;
const maxX = Math.max(0, bw - w);
const maxY = Math.max(0, bh - h);
this.state.x = Math.min(Math.max(this.state.x, 0), maxX);
this.state.y = Math.min(Math.max(this.state.y, 0), maxY);
}
#apply() {
this.#node.style.transform = `translate(${this.state.x}px, ${this.state.y}px)`;
this.#node.style.setProperty('--x', this.state.x.toString());
this.#node.style.setProperty('--y', this.state.y.toString());
this.#node.style.setProperty('--w', this.state.width.toString());
this.#node.style.setProperty('--h', this.state.height.toString());
this.#node.style.width = this.state.width + 'px';
this.#node.style.height = this.state.height + 'px';
}
#getCornerDirection(e: PointerEvent): ResizeDirection {
if (!this.#opts.resizable) return null;
const t = this.#opts.threshold;
let dirY: string = '';
if (e.clientY - this.state.y < t) dirY = 'n';
else if (this.state.y + this.state.height - e.clientY < t) dirY = 's';
let dirX: string = '';
if (e.clientX - this.state.x < t) dirX = 'w';
else if (this.state.x + this.state.width - e.clientX < t) dirX = 'e';
if (dirY && dirX) {
return (dirY + dirX) as ResizeDirection;
}
return null;
}
#onPointerCancel = () => this.#onPointerUp();
#onPointerDown = (e: PointerEvent): void => {
if (this.#isInteractive(e.target as HTMLElement)) return;
if (this.state.minimized) return;
if (this.state.maximized) {
const target = e.target as HTMLElement;
const canDrag = this.#opts.handle?.contains(target) || !this.#opts.handle;
if (canDrag) this.#unmaximizeAtCursor(e);
return;
}
if (this.#opts.resizeHandle?.contains(e.target as HTMLElement)) {
this.#startResize(e, 'se');
return;
}
const dir = this.#getCornerDirection(e);
if (dir) {
this.#startResize(e, dir);
return;
}
if (this.#opts.handle?.contains(e.target as HTMLElement)) {
this.#startMove(e);
return;
}
if (!this.#opts.handle) {
this.#startMove(e);
}
};
#startMove(e: PointerEvent, skipOffset = false): void {
e.preventDefault();
this.#bringToFront();
this.state.moving = true;
this.#node.style.cursor = 'grabbing';
this.#cacheWrapperRect();
if (!skipOffset) {
const rect = this.#node.getBoundingClientRect();
this.#dragOffsetX = e.clientX - rect.left;
this.#dragOffsetY = e.clientY - rect.top;
}
this.#prepareInteraction();
}
#startResize(e: PointerEvent, direction: ResizeDirection): void {
e.preventDefault();
e.stopPropagation();
this.#bringToFront();
this.state.resizing = true;
this.#cacheWrapperRect();
this.#resizeDirection = direction;
this.#resizeStartRect = {
x: this.state.x,
y: this.state.y,
width: this.state.width,
height: this.state.height
};
this.#resizeStartPos = { x: e.clientX - this.#wrapperLeft, y: e.clientY - this.#wrapperTop };
this.#prepareInteraction();
}
#unmaximizeAtCursor(e: PointerEvent): void {
this.#cacheWrapperRect();
const cursorX = e.clientX - this.#wrapperLeft;
const cursorY = e.clientY - this.#wrapperTop;
const fracX = this.#wrapperWidth > 0 ? cursorX / this.#wrapperWidth : 0;
const fracY = this.#wrapperHeight > 0 ? cursorY / this.#wrapperHeight : 0;
if (this.#restoreRect) {
this.state.width = this.#restoreRect.width;
this.state.height = this.#restoreRect.height;
this.state.maximized = false;
this.#restoreRect = null;
} else {
// fallback: no saved rect, just keep current size
this.state.maximized = false;
}
// Position so the same relative point stays under the cursor
let newX = cursorX - fracX * this.state.width;
let newY = cursorY - fracY * this.state.height;
// Clamp inside the boundary
const maxX = Math.max(0, this.#wrapperWidth - this.state.width);
const maxY = Math.max(0, this.#wrapperHeight - this.state.height);
newX = Math.min(Math.max(newX, 0), maxX);
newY = Math.min(Math.max(newY, 0), maxY);
this.state.x = newX;
this.state.y = newY;
this.#scheduleApply();
this.#dragOffsetX = cursorX - newX;
this.#dragOffsetY = cursorY - newY;
this.#bringToFront();
this.state.moving = true;
this.#node.style.cursor = 'grabbing';
this.#prepareInteraction();
return;
}
#prepareInteraction(): void {
document.body.style.userSelect = 'none';
this.#node.style.transition = 'none';
this.#node.style.willChange = 'transform, width, height';
this.#node.style.touchAction = 'none';
window.addEventListener('pointermove', this.#onPointerMove, { passive: true });
window.addEventListener('pointerup', this.#onPointerUp, { passive: true });
window.addEventListener('pointercancel', this.#onPointerCancel, { passive: true });
}
#onPointerMove = (e: PointerEvent): void => {
this.#cacheWrapperRect();
const events = e.getCoalescedEvents?.() ?? [e];
for (const event of events) {
if (this.state.moving) {
this.#updateMove(event);
} else if (this.state.resizing) {
this.#updateResize(event);
}
}
this.#scheduleApply();
};
#scheduleApply(): void {
if (!this.#pendingApply) {
this.#pendingApply = true;
this.#rafID = requestAnimationFrame(() => {
if (!this.state.moving && !this.state.resizing) {
this.#node.style.willChange = 'auto';
}
this.#rafID = null;
this.#pendingApply = false;
this.#apply();
});
}
}
#updateMove(e: PointerEvent): void {
let newX = e.clientX - this.#wrapperLeft - this.#dragOffsetX;
let newY = e.clientY - this.#wrapperTop - this.#dragOffsetY;
newX = Math.max(0, Math.min(newX, this.#wrapperWidth - this.state.width));
newY = Math.max(0, Math.min(newY, this.#wrapperHeight - this.state.height));
this.state.x = newX;
this.state.y = newY;
}
#updateResize(e: PointerEvent): void {
const dir = this.#resizeDirection!;
const start = this.#resizeStartRect;
const dx = e.clientX - this.#wrapperLeft - this.#resizeStartPos.x;
const dy = e.clientY - this.#wrapperTop - this.#resizeStartPos.y;
const anchorLeft = dir.includes('e') ? start.x : start.x + start.width;
const anchorTop = dir.includes('s') ? start.y : start.y + start.height;
let movingX = anchorLeft;
let movingY = anchorTop;
if (dir.includes('e')) movingX = start.x + start.width + dx;
else movingX = start.x + dx;
if (dir.includes('s')) movingY = start.y + start.height + dy;
else movingY = start.y + dy;
const minWidth = this.#opts.minWidth;
const minHeight = this.#opts.minHeight;
const maxWidth = Math.min(this.#opts.maxWidth, this.#wrapperWidth);
const maxHeight = Math.min(this.#opts.maxHeight, this.#wrapperHeight);
if (dir.includes('e')) {
movingX = Math.max(anchorLeft + minWidth, Math.min(movingX, anchorLeft + maxWidth));
movingX = Math.min(movingX, this.#wrapperWidth);
} else {
movingX = Math.min(anchorLeft - minWidth, Math.max(movingX, anchorLeft - maxWidth));
movingX = Math.max(movingX, 0);
}
if (dir.includes('s')) {
movingY = Math.max(anchorTop + minHeight, Math.min(movingY, anchorTop + maxHeight));
movingY = Math.min(movingY, this.#wrapperHeight);
} else {
movingY = Math.min(anchorTop - minHeight, Math.max(movingY, anchorTop - maxHeight));
movingY = Math.max(movingY, 0);
}
const newX = Math.min(anchorLeft, movingX);
const newY = Math.min(anchorTop, movingY);
const newWidth = Math.abs(movingX - anchorLeft);
const newHeight = Math.abs(movingY - anchorTop);
this.state.x = newX;
this.state.y = newY;
this.state.width = newWidth;
this.state.height = newHeight;
}
#onPointerUp = (): void => {
if (this.#rafID !== null) {
cancelAnimationFrame(this.#rafID);
this.#rafID = null;
this.#pendingApply = false;
}
this.state.moving = false;
this.state.resizing = false;
this.#resizeDirection = null;
document.body.style.userSelect = '';
this.#node.style.transition = this.#savedTransition;
this.#node.style.willChange = 'auto';
this.#node.style.touchAction = '';
this.#node.style.cursor = 'auto';
window.removeEventListener('pointermove', this.#onPointerMove);
window.removeEventListener('pointerup', this.#onPointerUp);
window.removeEventListener('pointercancel', this.#onPointerCancel);
this.#apply();
};
#onWrapperResize(): void {
const style = getComputedStyle(this.#wrapper);
this.#wrapperBorderLeft = parseFloat(style.borderLeftWidth);
this.#wrapperBorderTop = parseFloat(style.borderTopWidth);
if (this.state.maximized) {
this.state.width = this.#wrapperWidth;
this.state.height = this.#wrapperHeight;
this.state.x = 0;
this.state.y = 0;
} else {
this.#clampRect();
}
this.#apply();
}
#updateCursor = (e: PointerEvent): void => {
if (this.state.moving || this.state.resizing) return;
const target = e.target as HTMLElement;
if (this.#isInteractive(target)) {
this.#resetCursor();
return;
}
if (this.#opts.resizeHandle?.contains(target)) {
this.#node.style.cursor = 'se-resize';
return;
}
const dir = this.#getCornerDirection(e);
if (dir) {
this.#node.style.cursor = dir === 'nw' || dir === 'se' ? 'nwse-resize' : 'nesw-resize';
return;
}
if (this.#opts.handle) {
if (this.#opts.handle.contains(target)) {
this.#node.style.cursor = 'grab';
} else {
this.#node.style.cursor = '';
}
} else {
this.#node.style.cursor = '';
}
};
#resetCursor = (): void => {
this.#node.style.cursor = '';
};
#isInteractive(target: HTMLElement): boolean {
const tag = target.tagName;
if (['INPUT', 'BUTTON', 'TEXTAREA', 'SELECT', 'A'].includes(tag)) return true;
if (target.isContentEditable) return true;
return !!target.closest('[role="button"], [role="textbox"]');
}
minimize(): void {
this.state.minimized = !this.state.minimized;
this.#opts.onMinimize?.();
}
maximize(): void {
if (this.state.maximized) {
if (this.#restoreRect) {
Object.assign(this.state, this.#restoreRect);
this.#restoreRect = null;
}
this.state.maximized = false;
} else {
this.#restoreRect = {
x: this.state.x,
y: this.state.y,
width: this.state.width,
height: this.state.height
};
this.state.x = 0;
this.state.y = 0;
this.state.width = this.#wrapperWidth;
this.state.height = this.#wrapperHeight;
this.state.maximized = true;
}
this.#apply();
}
close(): void {
this.#opts.onClose?.();
}
focus(): void {
this.#bringToFront();
}
destroy(): void {
if (this.#rafID !== null) {
cancelAnimationFrame(this.#rafID);
}
this.#node.removeEventListener('pointerdown', this.#onPointerDown);
this.#node.removeEventListener('pointermove', this.#updateCursor);
this.#node.removeEventListener('pointerleave', this.#resetCursor);
//this.#node.removeEventListener('keydown', this.#onKeyDown);
window.removeEventListener('pointermove', this.#onPointerMove);
window.removeEventListener('pointerup', this.#onPointerUp);
window.removeEventListener('pointercancel', this.#onPointerCancel);
if (this.#wrapperObserver) {
this.#wrapperObserver.disconnect();
}
const mgr = getWrapperManager(this.#wrapper);
mgr.refCount--;
if (mgr.refCount === 0) {
delete (this.#wrapper as any)[MWIN_MANAGER];
}
document.body.style.userSelect = '';
this.#node.style.cssText = this.#savedStyles;
this.#node.style.transition = this.#savedTransition;
this.#node.style.willChange = 'auto';
this.#node.style.touchAction = '';
}
}
+99
View File
@@ -0,0 +1,99 @@
export interface MWinParams {
wrapper: HTMLElement | (() => HTMLElement) | string; // changed
handle?: HTMLElement | (() => HTMLElement) | string;
initX?: number;
initY?: number;
initWidth?: number;
initHeight?: number;
baseZIndex?: number;
resizable?: boolean | MWinResizeParams;
resizeHandle?: HTMLElement | (() => HTMLElement) | string;
onClose?: () => void;
onMinimize?: () => void;
onMaximize?: () => void;
onFocus?: () => void;
onAPI?: (api: MWinAPI) => void;
}
export interface MWinNormalizedParams {
handle: HTMLElement | null;
initX?: number;
initY?: number;
initWidth?: number;
initHeight?: number;
baseZIndex: number;
resizeHandle: HTMLElement | null;
resizable: boolean;
threshold: number;
minWidth: number;
minHeight: number;
maxWidth: number;
maxHeight: number;
onClose?: () => void;
onMinimize?: () => void;
onMaximize?: () => void;
onFocus?: () => void;
}
export interface MWinResizeParams {
threshold?: number;
minWidth?: number;
minHeight?: number;
maxWidth?: number;
maxHeight?: number;
}
export interface MWinState {
x: number;
y: number;
width: number;
height: number;
minimized: boolean;
maximized: boolean;
moving: boolean;
resizing: boolean;
zIndex: number;
}
export interface MWinAPI {
state: MWinState;
minimize: () => void;
maximize: () => void;
close: () => void;
focus: () => void;
}
export class WrapperManager {
zCounter: number = 0;
refCount: number = 0;
}
export type ResizeDirection = 'ne' | 'se' | 'sw' | 'nw' | null;
export const MWIN_MANAGER = Symbol('mwinlib');
export function getWrapperManager(wrapper: HTMLElement): WrapperManager {
let mgr = (wrapper as any)[MWIN_MANAGER] as WrapperManager | undefined;
if (!mgr) {
mgr = { zCounter: 0, refCount: 0 };
(wrapper as any)[MWIN_MANAGER] = mgr;
}
return mgr;
}
export function resolveElement(
input: HTMLElement | (() => HTMLElement) | string | undefined,
relativeTo: HTMLElement
): HTMLElement | null {
if (!input) return null;
if (input instanceof HTMLElement) return input;
if (typeof input === 'function') return input();
if (typeof input === 'string') {
return relativeTo.closest(input) as HTMLElement | null;
}
return null;
}
+191
View File
@@ -0,0 +1,191 @@
// $lib/stores/petals.ts
function mulberry32(seed: number): () => number {
let a = seed >>> 0;
return () => {
a = (a + 0x6d2b79f5) | 0;
let t = Math.imul(a ^ (a >>> 15), 1 | a);
t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
};
}
function accelPosition(u: number, k: number): number {
if (k < 0.01) return u * u;
if (k > 50) return u;
const denom = k - 1 + Math.exp(-k);
return (k * u - 1 + Math.exp(-k * u)) / denom;
}
export interface PetalsOptions {
duration?: number;
fallAccel?: number;
fallDistance?: number;
leadIn?: number;
swayAmp?: number;
swayCycles?: number;
windX?: number;
spin?: number;
maxKeyframes?: number;
seed?: number;
hideOriginals?: boolean;
}
export type PetalsCleanup = () => void;
let callCounter = 0;
function viewportBottom(): number {
const vv = window.visualViewport;
if (vv) return vv.height + vv.offsetTop;
return Math.max(document.documentElement.clientHeight, window.innerHeight);
}
export function petals(
node: HTMLElement,
{
duration = 15000,
fallAccel = 4,
fallDistance,
leadIn = 0.18,
swayAmp = 22,
swayCycles = 2.0,
windX = 60,
spin = 300,
maxKeyframes = 90,
seed,
hideOriginals = true
}: PetalsOptions = {}
): PetalsCleanup {
const chars = Array.from(node.querySelectorAll<HTMLElement>('.char')).filter(
(el) => el.textContent?.trim() !== ''
);
if (chars.length === 0) return () => {};
const effectiveSeed = seed ?? Date.now() ^ (callCounter++ * 0x9e3779b9);
const rect = node.getBoundingClientRect();
const vb = viewportBottom();
// ── Clone + fixed overlay ────────────────────────────────────────────
const clone = node.cloneNode(true) as HTMLElement;
clone.removeAttribute('id');
clone.querySelectorAll<HTMLElement>('[id]').forEach((n) => n.removeAttribute('id'));
clone.querySelectorAll<HTMLElement>('.prompt, .cursor').forEach((n) => {
n.style.visibility = 'hidden';
});
clone.style.cssText = `
position: fixed;
top: ${rect.top}px;
left: ${rect.left}px;
margin: 0;
overflow: visible;
pointer-events: none;
z-index: 9999;
contain: layout style;
`;
const origFont = getComputedStyle(node);
clone.style.fontSize = origFont.fontSize;
clone.style.fontFamily = origFont.fontFamily;
clone.style.fontWeight = origFont.fontWeight;
clone.style.fontStyle = origFont.fontStyle;
clone.style.fontVariant = origFont.fontVariant;
clone.style.fontStretch = origFont.fontStretch;
clone.style.lineHeight = origFont.lineHeight;
clone.style.letterSpacing = origFont.letterSpacing;
clone.style.wordSpacing = origFont.wordSpacing;
clone.style.color = 'var(--color-text-primary)';
clone.style.transition = 'var(--transition-standard)';
document.body.appendChild(clone);
if (hideOriginals) {
chars.forEach((el) => {
el.style.visibility = 'hidden';
});
}
const cloneChars = Array.from(clone.querySelectorAll<HTMLElement>('.char'));
const petalRects: DOMRect[] = [];
for (let i = 0; i < cloneChars.length; i++) {
petalRects.push(cloneChars[i].getBoundingClientRect());
}
const anims: Animation[] = [];
cloneChars.forEach((el, i) => {
const rand = mulberry32(effectiveSeed + i * 100003);
const charDuration = duration * (1.85 + rand() * 1.43);
const charAccel = fallAccel * (0.9 + rand() * 0.2);
const charSwayCycles = swayCycles * (0.7 + rand() * 0.7);
const charLeadIn = leadIn * (0.85 + rand() * 0.3);
const phase = rand() * Math.PI * 2;
const dir: 1 | -1 = rand() < 0.5 ? -1 : 1;
const amp = swayAmp * (0.5 + rand() * 0.9);
const spinTotal = spin * (0.7 + rand() * 0.6) * dir;
const charWindX = windX * (0.5 + rand() * 1.0);
let charFall: number;
if (fallDistance != null) {
charFall = fallDistance * (0.95 + rand() * 0.15);
} else {
const petalRect = petalRects[i];
const neededFall = vb - petalRect.top + petalRect.height + 40;
charFall = neededFall * (1 + rand() * 0.35);
}
const N = Math.min(maxKeyframes, Math.max(40, Math.round(charDuration / 200)));
const frames: Keyframe[] = [];
for (let k = 0; k <= N; k++) {
const t = k / N;
const y = charFall * accelPosition(t, charAccel);
const lead = Math.min(1, t / charLeadIn);
const leadSmooth = lead * lead * (3 - 2 * lead);
const sway = amp * leadSmooth * Math.sin(2 * Math.PI * charSwayCycles * t + phase);
const wind = charWindX * t;
const x = sway + wind;
const r = spinTotal * t;
frames.push({
transform: `translate(${x.toFixed(2)}px, ${y.toFixed(2)}px) rotate(${r.toFixed(2)}deg)`,
offset: t
});
}
anims.push(
el.animate(frames, {
duration: charDuration,
delay: 0,
easing: 'linear',
fill: 'forwards'
})
);
});
let cleaned = false;
const doCleanup = (): void => {
if (cleaned) return;
cleaned = true;
for (const a of anims) a.cancel();
clone.remove();
if (hideOriginals) {
chars.forEach((el) => {
el.style.visibility = '';
});
}
};
void Promise.allSettled(anims.map((a) => a.finished)).then(doCleanup);
return doCleanup;
}
+30
View File
@@ -0,0 +1,30 @@
import { writable } from 'svelte/store';
function getInitialTheme(): string {
// On client, read from the data-theme attribute set by the blocking script
if (typeof document !== 'undefined') {
const theme = document.documentElement.getAttribute('data-theme');
if (theme === 'dark' || theme === 'light') return theme;
}
// Fallback (SSR or if script failed)
if (typeof window !== 'undefined') {
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}
return 'dark';
}
export const theme = writable(getInitialTheme());
theme.subscribe((value) => {
if (typeof document !== 'undefined') {
document.documentElement.setAttribute('data-theme', value);
localStorage.setItem('theme', value);
}
});
// Optional: listen to system preference changes
if (typeof window !== 'undefined') {
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => {
theme.set(e.matches ? 'dark' : 'light');
});
}
+95
View File
@@ -0,0 +1,95 @@
import { Tween } from 'svelte/motion';
import { writable } from 'svelte/store';
export interface ToastMessage {
id: number;
type: 'success' | 'error' | 'info' | 'warn';
title: string;
message: string;
duration: number;
tween?: Tween<number>;
initial: number;
target: number;
hideProgress: boolean;
hideDismiss: boolean;
onClose?: (tm: ToastMessage) => void;
onClick?: (tm: ToastMessage) => void;
}
let toastId = 0;
export const toasts = writable<ToastMessage[]>([]);
export function addToast({
type,
title,
message,
duration,
initial,
target,
hideProgress,
hideDismiss,
onClose,
onClick
}: {
type: ToastMessage['type'];
title?: string;
message?: string;
duration?: number;
initial?: number;
target?: number;
hideProgress?: boolean;
hideDismiss?: boolean;
onClose?: (tm: ToastMessage) => void;
onClick?: (tm: ToastMessage) => void;
}) {
const id = ++toastId;
title = title ?? '';
message = message ?? '';
duration = duration ?? 3000;
initial = initial ?? 100;
target = target ?? 0;
hideProgress = hideProgress ?? false;
hideDismiss = hideDismiss ?? false;
let isPermament: boolean = duration === 0 || duration === Infinity;
if (hideDismiss) isPermament = false;
if (isPermament) hideProgress = true;
let tween: Tween<number> | undefined;
if (!isPermament) {
tween = new Tween(initial, { duration: duration });
tween.set(target).then(() => {
removeToast(id);
});
}
toasts.update((t) => [
...t,
{
id,
type,
title,
message,
duration,
tween,
initial,
target,
hideProgress,
hideDismiss,
onClose,
onClick
}
]);
}
export function removeToast(id: number) {
let closedToast: ToastMessage | undefined;
toasts.update((ts) => {
closedToast = ts.find((t) => t.id === id);
return ts.filter((t) => t.id !== id);
});
if (closedToast?.onClose) closedToast.onClose(closedToast);
}
+4
View File
@@ -0,0 +1,4 @@
export function capitalize(word: string): string {
if (!word) '';
return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
}
+55
View File
@@ -0,0 +1,55 @@
<script lang="ts">
import favicon from '#lib/assets/favicon.svg';
import ToastsModule from '#lib/modules/ToastsModule.svelte';
import { theme } from '#lib/stores/theme.ts';
import { onMount } from 'svelte';
import '../app.css';
import type { LayoutProps } from './$types';
let { children }: LayoutProps = $props();
let bg1: string | null;
let bg2: string | null;
onMount(() => {
const style = window.getComputedStyle(document.documentElement);
bg1 = style.getPropertyValue('--dots-bg-1');
bg2 = style.getPropertyValue('--dots-bg-2');
if (bg2 && bg1) {
window.CSS.registerProperty({
name: '--dots-bg-2',
syntax: '<color>',
inherits: true,
initialValue: bg2
});
window.CSS.registerProperty({
name: '--dots-bg-1',
syntax: '<color>',
inherits: true,
initialValue: bg1
});
}
});
</script>
<svelte:head>
<link rel="icon" href={favicon} />
</svelte:head>
<main
class="text-text bg-pattern-gradient m-auto flex min-h-dvh w-full flex-col items-center justify-center overflow-hidden"
class:dark={$theme === 'dark'}
class:light={$theme === 'light'}
>
<ToastsModule />
{@render children()}
</main>
<style>
main {
transition: all 0.2s ease-in;
}
</style>
+106
View File
@@ -0,0 +1,106 @@
<script lang="ts">
import Terminal from '#lib/modules/Terminal.svelte';
import TrayIcon from '#lib/modules/TrayIcon.svelte';
import type { MWinAPI } from '#lib/mwinlib/mwin_util.ts';
import { ChevronDown, Shell } from '@lucide/svelte';
import { mount, unmount } from 'svelte';
function doSmth(e: MouseEvent): void {
console.log(e);
}
let date = $state(new Date());
let settings = $state(false);
let wrapper: HTMLElement;
let terminalTray: TrayIcon | undefined = $state();
let api: MWinAPI | undefined = $state();
let tray: HTMLElement | undefined = $state();
let index: number = $state(0);
const trayElements = new Map<number, ReturnType<typeof mount>>();
//const callbacks = [{ title: 'Open terminal', fn: doSmth }];
function add() {
index++;
const id = index;
const terminal = mount(Terminal, {
target: wrapper,
props: {
id,
wrapper,
username: 'gornodox',
hostname: 'termos',
working_dir: '~',
mwin: api,
close: remove
}
});
trayElements.set(id, terminal);
}
function remove(id: number): void {
const m = trayElements.get(id);
if (!m) return;
unmount(m);
trayElements.delete(id);
}
$effect(() => {
setInterval(() => {
date = new Date();
}, 1000);
});
</script>
<div
class=" fixed top-0 left-0 z-200 m-auto grid h-10 w-full grid-cols-[1fr_auto_1fr] items-center"
>
<div class="flex flex-row items-center gap-2 pl-3">
<button onclick={() => add()}>
<Shell size={18} />
</button>
<div bind:this={tray}></div>
</div>
<div class=" flex flex-row items-center justify-center px-5">
<button>
<h2 class="font-primary text-lg">
{date.getHours().toString().length > 1 ? date.getHours() : `0${date.getHours()}`}:{date
.getMinutes()
.toString().length > 1
? date.getMinutes()
: `0${date.getMinutes()}`}:{date.getSeconds().toString().length > 1
? date.getSeconds()
: `0${date.getSeconds()}`}
</h2>
</button>
<!-- <div class="-translate-y- fixed top-0 bg-green-700">Calendar, Maybe...</div> -->
</div>
<div class="fixed right-0 m-auto pr-1">
<div
class="bg-surface-2 flex flex-row-reverse items-center justify-center gap-3 rounded-full p-2"
>
<button
onclick={() => (settings = !settings)}
class="{settings ? 'rotate-180' : 'rotate-0'} transition-transform"
>
<ChevronDown size={18} />
</button>
</div>
</div>
</div>
<div
class="absolute top-10 right-0 h-30 w-40 rounded-xl bg-green-700 transition-transform {settings
? 'mr-4 translate-x-0'
: 'mr-0 translate-x-full'}"
></div>
<div
id="terminal-wrapper"
bind:this={wrapper}
class=" relative flex h-screen w-full flex-col items-center justify-center"
></div>
+1
View File
@@ -0,0 +1 @@
@import 'tailwindcss';
+77
View File
@@ -0,0 +1,77 @@
<script lang="ts">
import Movable from '#lib/modules/Movable.svelte';
import type { MWinParams } from '#lib/mwinlib/mwin_util.ts';
import { createRawSnippet, mount, unmount } from 'svelte';
const mwinoptions: Partial<MWinParams> = {
resizable: { threshold: 10, minWidth: 300, minHeight: 200 }
};
let wrapper: HTMLElement;
let count: number = $state(-1);
const movables = new Map<number, ReturnType<typeof mount>>();
createRawSnippet(() => {
return {
render: () =>
`<div class="size-full bg-[${Math.floor(Math.random() * 16777215).toString(16)}]"></div>`
};
});
function remove(id: number) {
const m = movables.get(id);
if (!m) return;
unmount(m);
movables.delete(id);
}
function add() {
count++;
const id = count;
const child = createRawSnippet(() => {
return {
render: () =>
`<div class="size-full" style="background-color: #${Math.floor(Math.random() * 16777215).toString(16)}">
<button class="bg-emerald-700" type="button" data-remove-btn>Bye</button>
</div>`
};
});
const movable = mount(Movable, {
target: wrapper,
props: {
class: 'size-100',
id: 'movable-' + id.toString(),
'data-movable-id': String(id),
wrapper,
mwinoptions: { ...mwinoptions, handle: '#movable-' + id.toString() },
children: child
}
});
movables.set(id, movable);
const btn = wrapper.querySelector<HTMLButtonElement>(`#movable-${id} [data-remove-btn]`);
if (btn) {
// Prevent the drag from starting when clicking the button.
btn.addEventListener('mousedown', (e) => e.stopPropagation());
btn.addEventListener('pointerdown', (e) => e.stopPropagation());
// Direct call — no bubbling required.
btn.addEventListener('click', (e) => {
e.stopPropagation();
remove(id);
});
} else {
console.warn('remove button not found for movable', id);
}
}
</script>
<button onclick={() => add()} class="bg-[#c08f58]">Add component</button>
<div
bind:this={wrapper}
id="mwin-wrapper"
class=" relative flex h-screen w-full flex-col items-center justify-center"
></div>
+44
View File
@@ -0,0 +1,44 @@
@theme {
--animate-loading: loading 1s ease-in-out infinite;
--animate-cursor-blink: blink 1s step-end infinite;
--animate-error-shake: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
@keyframes blink {
50% {
opacity: 0;
}
}
@keyframes loading {
0% {
transform: scaleY(1);
}
30% {
transform: scaleY(0.35);
background-color: var(--color-loader-primary-hl);
}
60% {
transform: scaleY(1);
}
}
@keyframes shake {
10%,
90% {
transform: translate3d(-1px, 0, 0);
}
20%,
80% {
transform: translate3d(2px, 0, 0);
}
30%,
50%,
70% {
transform: translate3d(-4px, 0, 0);
}
40%,
60% {
transform: translate3d(4px, 0, 0);
}
}
}
+955
View File
@@ -0,0 +1,955 @@
/* latin-ext */
@font-face {
font-family: 'Atkinson Hyperlegible Mono';
font-style: italic;
font-weight: 800;
font-display: swap;
src: url(https://fonts.gstatic.com/s/atkinsonhyperlegiblemono/v8/tssPAoFBci4C4gvhPXrt3wjT1MqSzhA4t7IIcncBiwKonlKh6PW-UyGM1JTKSRMW8qj-lw.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Atkinson Hyperlegible Mono';
font-style: italic;
font-weight: 800;
font-display: swap;
src: url(https://fonts.gstatic.com/s/atkinsonhyperlegiblemono/v8/tssPAoFBci4C4gvhPXrt3wjT1MqSzhA4t7IIcncBiwKonlKh6PW-UyGM1JTKSRMY8qg.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Atkinson Hyperlegible Mono';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(https://fonts.gstatic.com/s/atkinsonhyperlegiblemono/v8/tssNAoFBci4C4gvhPXrt3wjT1MqSzhA4t7IIcncBiyihrK15gZ4k_SaZnNCSBCMa6qw.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Atkinson Hyperlegible Mono';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(https://fonts.gstatic.com/s/atkinsonhyperlegiblemono/v8/tssNAoFBci4C4gvhPXrt3wjT1MqSzhA4t7IIcncBiyihrK15gZ4k_SaZnNCSCiMa.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Bungee Hairline';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/bungeehairline/v26/snfys0G548t04270a_ljTLUVrv-LaBecc5Y.woff2)
format('woff2');
unicode-range:
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Bungee Hairline';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/bungeehairline/v26/snfys0G548t04270a_ljTLUVrv-LaRecc5Y.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Bungee Hairline';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/bungeehairline/v26/snfys0G548t04270a_ljTLUVrv-LZxec.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Doto';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/doto/v3/t5t6IRMbNJ6TQG7Il_EKPqP9zTkn6IuPWhojrg.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Doto';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/doto/v3/t5t6IRMbNJ6TQG7Il_EKPqP9zTkn6IuBWho.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Just Me Again Down Here';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/justmeagaindownhere/v25/MwQmbgXtz-Wc6RUEGNMc0QpRrfUh2hSdBBMoAtwOtKHAcw.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Just Me Again Down Here';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/justmeagaindownhere/v25/MwQmbgXtz-Wc6RUEGNMc0QpRrfUh2hSdBBMoAtwAtKE.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Space Mono';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dNIFZifjKcF5UAWdDRYERMSHK_IwU.woff2)
format('woff2');
unicode-range:
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Space Mono';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dNIFZifjKcF5UAWdDRYERMSXK_IwU.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Space Mono';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dNIFZifjKcF5UAWdDRYERMR3K_.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Space Mono';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dSIFZifjKcF5UAWdDRYERE_FeqEySRV3U.woff2)
format('woff2');
unicode-range:
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Space Mono';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dSIFZifjKcF5UAWdDRYERE_FeqEiSRV3U.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Space Mono';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dSIFZifjKcF5UAWdDRYERE_FeqHCSR.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dPIFZifjKcF5UAWdDRYE58RWq7.woff2)
format('woff2');
unicode-range:
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dPIFZifjKcF5UAWdDRYE98RWq7.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dMIFZifjKcF5UAWdDRaPpZUFqaHjyV.woff2)
format('woff2');
unicode-range:
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dMIFZifjKcF5UAWdDRaPpZUFuaHjyV.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Space Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/spacemono/v17/i7dMIFZifjKcF5UAWdDRaPpZUFWaHg.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Atkinson Hyperlegible Mono';
font-style: italic;
font-weight: 200 800;
font-display: swap;
src: url(https://fonts.gstatic.com/s/atkinsonhyperlegiblemono/v8/tss6AoFBci4C4gvhPXrt3wjT1MqSzhA4t7IIcncBiwKotFCJGR0i.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Atkinson Hyperlegible Mono';
font-style: italic;
font-weight: 200 800;
font-display: swap;
src: url(https://fonts.gstatic.com/s/atkinsonhyperlegiblemono/v8/tss6AoFBci4C4gvhPXrt3wjT1MqSzhA4t7IIcncBiwKotF6JGQ.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Quicksand';
font-style: normal;
font-weight: 300 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/quicksand/v37/6xKtdSZaM9iE8KbpRA_hJFQNcOM.woff2)
format('woff2');
unicode-range:
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Quicksand';
font-style: normal;
font-weight: 300 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/quicksand/v37/6xKtdSZaM9iE8KbpRA_hJVQNcOM.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Quicksand';
font-style: normal;
font-weight: 300 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/quicksand/v37/6xKtdSZaM9iE8KbpRA_hK1QN.woff2) format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Silkscreen';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/silkscreen/v6/m8JXjfVPf62XiF7kO-i9YL1la1OD.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Silkscreen';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/silkscreen/v6/m8JXjfVPf62XiF7kO-i9YLNlaw.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Silkscreen';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/silkscreen/v6/m8JUjfVPf62XiF7kO-i9aAhAfmKi2Oud.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Silkscreen';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/silkscreen/v6/m8JUjfVPf62XiF7kO-i9aAhAfmyi2A.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Smooch Sans';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/smoochsans/v15/c4mk1n5uGsXss2LJh1QH6Zd13KeHWA.woff2)
format('woff2');
unicode-range:
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Smooch Sans';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/smoochsans/v15/c4mk1n5uGsXss2LJh1QH6Zd03KeHWA.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Smooch Sans';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url(https://fonts.gstatic.com/s/smoochsans/v15/c4mk1n5uGsXss2LJh1QH6Zd63Kc.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.3.woff2)
format('woff2');
unicode-range:
U+fa10, U+fa12-fa6d, U+fb00-fb04, U+fe10-fe19, U+fe30-fe42, U+fe44-fe52, U+fe54-fe66,
U+fe68-fe6b, U+ff02, U+ff04, U+ff07, U+ff51, U+ff5b, U+ff5d, U+ff5f-ff60, U+ff66, U+ff69,
U+ff87, U+ffa1-ffbe, U+ffc2-ffc7, U+ffca-ffcf, U+ffd2-ffd6;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.54.woff2)
format('woff2');
unicode-range:
U+3028-303f, U+3094-3096, U+309f-30a0, U+30ee, U+30f7-30fa, U+30ff, U+3105-312f, U+3131-3163,
U+3165-318e, U+3190-31bb, U+31c0-31c7;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.58.woff2)
format('woff2');
unicode-range:
U+2105, U+2109-210a, U+210f, U+2116, U+2121, U+2126-2127, U+212b, U+212e, U+2135, U+213b,
U+2194-2199, U+21b8-21b9, U+21c4-21c6, U+21cb-21cc, U+21d0, U+21e6-21e9, U+21f5, U+2202-2203,
U+2205-2206, U+2208-220b, U+220f, U+2211, U+2213, U+2215, U+221a, U+221d, U+2220, U+2223,
U+2225-2226, U+2228, U+222a-222e, U+2234-2237, U+223d, U+2243, U+2245, U+2248, U+224c, U+2260,
U+2262, U+2264-2265, U+226e-226f, U+2272-2273, U+2276-2277, U+2283-2287, U+228a-228b,
U+2295-2299, U+22a0, U+22a5, U+22bf, U+22da-22db, U+22ef, U+2305-2307, U+2318, U+2329-232a,
U+23b0-23b1, U+23be-23cc, U+23ce, U+23da-23db, U+2423, U+2469-24d0;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.59.woff2)
format('woff2');
unicode-range:
U+a1-a4, U+a6-a7, U+aa, U+ac-ad, U+b5-b6, U+b8-ba, U+bc-c8, U+ca-cc, U+ce-d5, U+d9-db, U+dd-df,
U+e6, U+ee, U+f0, U+f5, U+f7, U+f9, U+fb, U+fe-102, U+110-113, U+11a-11b, U+128-12b, U+143-144,
U+147-148, U+14c, U+14e-14f, U+152-153, U+168-16d, U+192, U+1a0-1a1, U+1af, U+1cd-1dc,
U+1f8-1f9, U+251, U+261, U+2bb, U+2c7, U+2c9, U+2ea-2eb, U+304, U+307, U+30c, U+1e3e-1e3f,
U+1ea0-1ebe, U+1ec0-1ec6, U+1ec8-1ef9, U+2011-2012, U+2016, U+2018-201a, U+201e, U+2021, U+2030,
U+2033, U+2035, U+2042, U+2047, U+2051, U+2074, U+20a9, U+20ab-20ac, U+20dd-20de, U+2100;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.61.woff2)
format('woff2');
unicode-range:
U+a8, U+2032, U+2261, U+2282, U+3090, U+30f1, U+339c, U+535c, U+53d9, U+56a2, U+56c1, U+5806,
U+589f, U+59d0, U+5a7f, U+60e0, U+639f, U+65af, U+68fa, U+69ae, U+6d1b, U+6ef2, U+71fb, U+725d,
U+7262, U+75bc, U+7768, U+7940, U+79bf, U+7bed, U+7d68, U+7dfb, U+814b, U+8207, U+83e9, U+8494,
U+8526, U+8568, U+85ea, U+86d9, U+87ba, U+8861, U+887f, U+8fe6, U+9059, U+9061, U+916a, U+976d,
U+97ad, U+9ece;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.65.woff2)
format('woff2');
unicode-range:
U+b1, U+309b, U+4e5e, U+51f1, U+5506, U+55c5, U+58cc, U+59d1, U+5c51, U+5ef7, U+6284, U+62d7,
U+6689, U+673d, U+6a2b, U+6a8e, U+6a9c, U+6d63, U+6dd1, U+70b8, U+7235, U+72db, U+72f8, U+7560,
U+7c9b, U+7ce7, U+7e1e, U+80af, U+82eb, U+8463, U+8499, U+85dd, U+86ee, U+8a60, U+8a6e, U+8c79,
U+8e87, U+8e8a, U+8f5f, U+9010, U+918d, U+9190, U+965b, U+97fb, U+9ab8, U+9bad, U+9d3b, U+9d5c,
U+9dfa, U+9e93;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.70.woff2)
format('woff2');
unicode-range:
U+266b, U+3006, U+5176, U+5197, U+51a8, U+51c6, U+52f2, U+5614, U+5875, U+5a2f, U+5b54, U+5ce0,
U+5dba, U+5deb, U+5e63, U+5f59, U+5fcc, U+6068, U+6367, U+68b6, U+6a0b, U+6b64, U+6e15, U+6eba,
U+7272, U+72a0, U+7947, U+7985, U+79e6, U+79e9, U+7a3d, U+7a9f, U+7aaf, U+7b95, U+7f60, U+7f9e,
U+7fe0, U+8098, U+80ba, U+8106, U+82d4, U+831c, U+87f9, U+8a1f, U+8acf, U+90c1, U+920d, U+9756,
U+fe43, U+ff94;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.71.woff2)
format('woff2');
unicode-range:
U+af, U+2465, U+2517, U+33a1, U+4f10, U+50c5, U+51b4, U+5384, U+5606, U+5bb0, U+5cac, U+5ee3,
U+618e, U+61f2, U+62c9, U+66ab, U+66f9, U+6816, U+6960, U+6b3e, U+6f20, U+7078, U+72d0, U+73ed,
U+7ad9, U+7b1b, U+7be4, U+7d62, U+7f51, U+80b4, U+80f4, U+8154, U+85fb, U+865c, U+8702, U+895f,
U+8aed, U+8b90, U+8ced, U+8fbf, U+91d8, U+9418, U+9583, U+9591, U+9813, U+982c, U+9bd6, U+ff46,
U+ff7f, U+ff88;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.79.woff2)
format('woff2');
unicode-range:
U+25b3, U+30f5, U+4eae, U+4f46, U+4f51, U+5203, U+52ff, U+55a7, U+564c, U+565b, U+57f9, U+5805,
U+5b64, U+5e06, U+5f70, U+5f90, U+60e8, U+6182, U+62f3, U+62fe, U+63aa, U+64a4, U+65d7, U+673a,
U+6851, U+68cb, U+68df, U+6d1e, U+6e58, U+6e9d, U+77b3, U+7832, U+7c3f, U+7db4, U+7f70, U+80aa,
U+80c6, U+8105, U+819d, U+8276, U+8679, U+8986, U+8c9d, U+8fc5, U+916c, U+9665, U+9699, U+96c0,
U+9a19, U+ff8b;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.82.woff2)
format('woff2');
unicode-range:
U+2103, U+5049, U+52b1, U+5320, U+5553, U+572d, U+58c7, U+5b5d, U+5bc2, U+5de3, U+5e61, U+5f80,
U+61a9, U+67d0, U+67f4, U+6c88, U+6ca1, U+6ce5, U+6d78, U+6e9c, U+6f54, U+731b, U+73b2, U+74a7,
U+74f6, U+75e9, U+7b20, U+7c8b, U+7f72, U+809d, U+8108, U+82b3, U+82bd, U+84b8, U+84c4, U+88c2,
U+8ae6, U+8ef8, U+902e, U+9065, U+9326, U+935b, U+938c, U+9676, U+9694, U+96f7, U+9ed9, U+ff48,
U+ff4c, U+ff81;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.83.woff2)
format('woff2');
unicode-range:
U+2500, U+3008-3009, U+4ead, U+4f0f, U+4fca, U+53eb, U+543e, U+57a2, U+5cf0, U+5e8f, U+5fe0,
U+61b2, U+62d8, U+6442, U+64b2, U+6589, U+659c, U+67f1, U+68c4, U+6cb8, U+6d12, U+6de1, U+6fe1,
U+70c8, U+723d, U+73e0, U+7656, U+773a, U+7948, U+7b87, U+7c92, U+7d3a, U+7e1b, U+7e4a, U+819a,
U+8358, U+83c5, U+84bc, U+864e, U+8912, U+8c9e, U+8d05, U+92fc, U+9396, U+98fd, U+99d2, U+ff64,
U+ff7a, U+ff83;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.84.woff2)
format('woff2');
unicode-range:
U+3014-3015, U+4e3c, U+5036, U+5075, U+533f, U+53e9, U+5531, U+5642, U+5984, U+59e6, U+5a01,
U+5b6b, U+5c0b, U+5f25, U+6069, U+60a0, U+614e, U+62b5, U+62d2-62d3, U+6597, U+660c, U+674f,
U+67cf, U+6841, U+6905, U+6cf3, U+6d32, U+6d69, U+6f64, U+716e, U+7761, U+7b52, U+7be0, U+7dbf,
U+7de9, U+7f36, U+81d3, U+8302, U+8389, U+846c, U+84ee, U+8a69, U+9038, U+9d8f, U+ff47, U+ff4b,
U+ff76, U+ff9b;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.86.woff2)
format('woff2');
unicode-range:
U+24, U+2022, U+2212, U+221f, U+2665, U+4ecf, U+5100, U+51cd, U+52d8, U+5378, U+53f6, U+574a,
U+5982, U+5996, U+5c1a, U+5e1d, U+5f84, U+609f, U+61a7, U+61f8, U+6398, U+63ee, U+6676, U+6691,
U+6eb6, U+7126, U+71e5, U+7687, U+7965, U+7d17, U+80a1, U+8107, U+8266, U+85a6, U+8987, U+8ca2,
U+8cab, U+8e0a, U+9042, U+95c7, U+9810, U+9867, U+98fc, U+ff52-ff54, U+ff61, U+ff77, U+ff98-ff99;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.87.woff2)
format('woff2');
unicode-range:
U+b0, U+226a, U+2462, U+4e39, U+4fc3, U+4fd7, U+50be, U+50da, U+5200, U+5211, U+54f2, U+5618,
U+596a, U+5b22, U+5bb4, U+5d50, U+60a3, U+63fa, U+658e, U+65e8, U+6669, U+6795, U+679d, U+67a0,
U+6b3a, U+6e09, U+757f, U+7cd6, U+7dbe, U+7ffb, U+83cc, U+83f1, U+840c, U+845b, U+8846, U+8972,
U+8a34, U+8a50, U+8a87, U+8edf, U+8ff0, U+90a6, U+9154, U+95a3, U+9663, U+9686, U+96c7, U+ff3c,
U+ff7c, U+ff8a;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.89.woff2)
format('woff2');
unicode-range:
U+a5, U+4e80, U+4f34, U+4f73, U+4f75, U+511f, U+5192, U+52aa, U+53c8, U+570f, U+57cb, U+596e,
U+5d8b, U+5f66, U+5fd9, U+62db, U+62f6, U+6328, U+633f, U+63a7, U+6469, U+6bbf, U+6c41, U+6c57,
U+6d44, U+6dbc, U+706f, U+72c2, U+72ed, U+7551, U+75f4, U+7949, U+7e26, U+7fd4, U+8150, U+8af8,
U+8b0e, U+8b72, U+8ca7, U+934b, U+9a0e, U+9a12, U+9b42, U+ff41, U+ff43, U+ff45, U+ff49, U+ff4f,
U+ff62-ff63;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.91.woff2)
format('woff2');
unicode-range:
U+60, U+2200, U+226b, U+2461, U+517c, U+526f, U+5800, U+5b97, U+5bf8, U+5c01, U+5d29, U+5e4c,
U+5e81, U+6065, U+61d0, U+667a, U+6696, U+6843, U+6c99, U+6d99, U+6ec5, U+6f22, U+6f6e, U+6fa4,
U+6fef, U+71c3, U+72d9, U+7384, U+78e8, U+7a1a, U+7a32, U+7a3c, U+7adc, U+7ca7, U+7d2b, U+7dad,
U+7e4b, U+80a9, U+8170, U+81ed, U+820e, U+8a17, U+8afe, U+90aa, U+914e, U+963f, U+99c4, U+9eba,
U+9f3b, U+ff38;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.93.woff2)
format('woff2');
unicode-range:
U+21d2, U+25ce, U+300a-300b, U+4e89, U+4e9c, U+4ea1, U+5263, U+53cc, U+5426, U+5869, U+5947,
U+598a, U+5999, U+5e55, U+5e72, U+5e79, U+5fae, U+5fb9, U+602a, U+6163, U+624d, U+6749, U+6c5a,
U+6cbf, U+6d45, U+6dfb, U+6e7e, U+708e, U+725b, U+7763, U+79c0, U+7bc4, U+7c89, U+7e01, U+7e2e,
U+8010, U+8033, U+8c6a, U+8cc3, U+8f1d, U+8f9b, U+8fb2, U+907f, U+90f7, U+9707, U+9818, U+9b3c,
U+ff0a, U+ff4d;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.95.woff2)
format('woff2');
unicode-range:
U+2193, U+25b2, U+4e4b, U+516d, U+51c4, U+529f, U+52c9, U+5360, U+5442, U+5857, U+5915, U+59eb,
U+5a9b, U+5c3b, U+6012, U+61b6, U+62b1, U+6311, U+6577, U+65e2, U+65ec, U+6613, U+6790, U+6cb9,
U+7372, U+76ae, U+7d5e, U+7fcc, U+88ab, U+88d5, U+8caf, U+8ddd, U+8ecd, U+8f38, U+8f9e, U+8feb,
U+9063, U+90f5, U+93e1, U+968a, U+968f, U+98fe, U+9ec4, U+ff1d, U+ff27, U+ff2a, U+ff36, U+ff3b,
U+ff3d, U+ffe5;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.97.woff2)
format('woff2');
unicode-range:
U+7e, U+b4, U+25c6, U+2661, U+4e92, U+4eee, U+4ffa, U+5144, U+5237, U+5287, U+52b4, U+58c1,
U+5bff, U+5c04, U+5c06, U+5e95, U+5f31, U+5f93, U+63c3, U+640d, U+6557, U+6614, U+662f, U+67d3,
U+690d, U+6bba, U+6e6f, U+72af, U+732b, U+7518, U+7ae0, U+7ae5, U+7af6, U+822a, U+89e6, U+8a3a,
U+8a98, U+8cb8, U+8de1, U+8e8d, U+95d8, U+961c, U+96a3, U+96ea, U+9bae, U+ff20, U+ff22, U+ff29,
U+ff2b-ff2c;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.99.woff2)
format('woff2');
unicode-range:
U+2191, U+505c, U+52e4, U+5305, U+535a, U+56e0, U+59bb, U+5acc, U+5b09, U+5b87, U+5c90, U+5df1,
U+5e2d, U+5e33, U+5f3e, U+6298, U+6383, U+653b, U+6697, U+6804, U+6a39, U+6cca, U+6e90, U+6f2b,
U+702c, U+7206, U+7236, U+7559, U+7565, U+7591, U+75c7, U+75db, U+7b4b, U+7bb1, U+7d99, U+7fbd,
U+8131, U+885b, U+8b1d, U+8ff7, U+9003, U+9045, U+96a0, U+9732, U+990a, U+99d0, U+9e97, U+9f62,
U+ff25, U+ff2d;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.102.woff2)
format('woff2');
unicode-range:
U+3d, U+5e, U+25cf, U+4e0e, U+4e5d, U+4e73, U+4e94, U+4f3c, U+5009, U+5145, U+51ac, U+5238,
U+524a, U+53f3, U+547c, U+5802, U+5922, U+5a66, U+5c0e, U+5de6, U+5fd8, U+5feb, U+6797, U+685c,
U+6b7b, U+6c5f-6c60, U+6cc9, U+6ce2, U+6d17, U+6e21, U+7167, U+7642, U+76db, U+8001, U+821e,
U+8857, U+89d2, U+8b1b, U+8b70, U+8cb4, U+8cde, U+8f03, U+8f2a, U+968e, U+9b54, U+9e7f, U+9ebb,
U+ff05, U+ff33;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.103.woff2)
format('woff2');
unicode-range:
U+500d, U+5074, U+50cd, U+5175, U+52e2, U+5352, U+5354, U+53f2, U+5409, U+56fa, U+5a18, U+5b88,
U+5bdd, U+5ca9, U+5f92, U+5fa9, U+60a9, U+623f, U+6483, U+653f, U+666f, U+66ae, U+66f2, U+6a21,
U+6b66, U+6bcd, U+6d5c, U+796d, U+7a4d, U+7aef, U+7b56, U+7b97, U+7c4d, U+7e04, U+7fa9, U+8377,
U+83dc, U+83ef, U+8535, U+8863, U+88cf, U+88dc, U+8907, U+8acb, U+90ce, U+91dd, U+ff0b, U+ff0d,
U+ff19, U+ff65;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.104.woff2)
format('woff2');
unicode-range:
U+4e01, U+4e21, U+4e38, U+52a9, U+547d, U+592e, U+5931, U+5b63, U+5c40, U+5dde, U+5e78, U+5efa,
U+5fa1, U+604b, U+6075, U+62c5, U+632f, U+6a19, U+6c0f, U+6c11, U+6c96, U+6e05, U+70ba, U+71b1,
U+7387, U+7403, U+75c5, U+77ed, U+795d, U+7b54, U+7cbe, U+7d19, U+7fa4, U+8089, U+81f4, U+8208,
U+8336, U+8457, U+8a33, U+8c4a, U+8ca0, U+8ca8, U+8cc0, U+9014, U+964d, U+9803, U+983c, U+98db,
U+ff17, U+ff21;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.105.woff2)
format('woff2');
unicode-range:
U+25, U+25a0, U+4e26, U+4f4e, U+5341, U+56f2, U+5bbf, U+5c45, U+5c55, U+5c5e, U+5dee, U+5e9c,
U+5f7c, U+6255, U+627f, U+62bc, U+65cf, U+661f, U+666e, U+66dc, U+67fb, U+6975, U+6a4b, U+6b32,
U+6df1, U+6e29, U+6fc0, U+738b, U+7686, U+7a76, U+7a81, U+7c73, U+7d75, U+7dd2, U+82e5, U+82f1,
U+85ac, U+888b, U+899a, U+8a31, U+8a8c, U+8ab0, U+8b58, U+904a, U+9060, U+9280, U+95b2, U+984d,
U+9ce5, U+ff18;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.106.woff2)
format('woff2');
unicode-range:
U+30f6, U+50ac, U+5178, U+51e6, U+5224, U+52dd, U+5883, U+5897, U+590f, U+5a5a, U+5bb3, U+5c65,
U+5e03, U+5e2b, U+5e30, U+5eb7, U+6271, U+63f4, U+64ae, U+6574, U+672b, U+679a, U+6a29-6a2a,
U+6ca2, U+6cc1, U+6d0b, U+713c, U+74b0, U+7981, U+7a0b, U+7bc0, U+7d1a, U+7d61, U+7fd2, U+822c,
U+8996, U+89aa, U+8cac, U+8cbb, U+8d77, U+8def, U+9020, U+9152, U+9244, U+9662, U+967a, U+96e3,
U+9759, U+ff16;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.107.woff2)
format('woff2');
unicode-range:
U+23, U+3c, U+2192, U+4e45, U+4efb, U+4f50, U+4f8b, U+4fc2, U+5024, U+5150, U+5272, U+5370,
U+53bb, U+542b, U+56db, U+56e3, U+57ce, U+5bc4, U+5bcc, U+5f71, U+60aa, U+6238, U+6280, U+629c,
U+6539, U+66ff, U+670d, U+677e-677f, U+6839, U+69cb, U+6b4c, U+6bb5, U+6e96, U+6f14, U+72ec,
U+7389, U+7814, U+79cb, U+79d1, U+79fb, U+7a0e, U+7d0d, U+85e4, U+8d64, U+9632, U+96e2, U+9805,
U+99ac, U+ff1e;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.109.woff2)
format('woff2');
unicode-range:
U+266a, U+4f11, U+533a, U+5343, U+534a, U+53cd, U+5404, U+56f3, U+5b57-5b58, U+5bae, U+5c4a,
U+5e0c, U+5e2f, U+5eab, U+5f35, U+5f79, U+614b, U+6226, U+629e, U+65c5, U+6625, U+6751, U+6821,
U+6b69, U+6b8b, U+6bce, U+6c42, U+706b, U+7c21, U+7cfb, U+805e, U+80b2, U+82b8, U+843d, U+8853,
U+88c5, U+8a3c, U+8a66, U+8d8a, U+8fba, U+9069, U+91cf, U+9752, U+975e, U+9999, U+ff0f-ff10,
U+ff14-ff15;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.110.woff2)
format('woff2');
unicode-range:
U+40, U+4e86, U+4e95, U+4f01, U+4f1d, U+4fbf, U+5099, U+5171, U+5177, U+53cb, U+53ce, U+53f0,
U+5668, U+5712, U+5ba4, U+5ca1, U+5f85, U+60f3, U+653e, U+65ad, U+65e9, U+6620, U+6750, U+6761,
U+6b62, U+6b74, U+6e08, U+6e80, U+7248, U+7531, U+7533, U+753a, U+77f3, U+798f, U+7f6e, U+8449,
U+88fd, U+89b3, U+8a55, U+8ac7, U+8b77, U+8db3, U+8efd, U+8fd4, U+9031-9032, U+9580, U+9589,
U+96d1, U+985e;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.111.woff2)
format('woff2');
unicode-range:
U+2b, U+d7, U+300e-300f, U+4e07, U+4e8c, U+512a, U+5149, U+518d, U+5236, U+52b9, U+52d9, U+5468,
U+578b, U+57fa, U+5b8c, U+5ba2, U+5c02, U+5de5, U+5f37, U+5f62, U+623b, U+63d0, U+652f, U+672a,
U+6848, U+6d41, U+7136, U+7537, U+754c, U+76f4, U+79c1, U+7ba1, U+7d44, U+7d4c, U+7dcf, U+7dda,
U+7de8, U+82b1, U+897f, U+8ca9, U+8cfc, U+904e, U+9664, U+982d, U+9858, U+98a8, U+9a13, U+ff13,
U+ff5c;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.113.woff2)
format('woff2');
unicode-range:
U+26, U+5f, U+2026, U+203b, U+4e09, U+4eac, U+4ed5, U+4fa1, U+5143, U+5199, U+5207, U+539f,
U+53e3, U+53f7, U+5411, U+5473, U+5546, U+55b6, U+5929, U+597d, U+5bb9, U+5c11, U+5c4b, U+5ddd,
U+5f97, U+5fc5, U+6295, U+6301, U+6307, U+671b, U+76f8, U+78ba, U+795e, U+7d30, U+7d39, U+7d9a,
U+89e3, U+8a00, U+8a73, U+8a8d, U+8a9e, U+8aad, U+8abf, U+8cea, U+8eca, U+8ffd, U+904b, U+9650,
U+ff11-ff12;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.114.woff2)
format('woff2');
unicode-range:
U+3e, U+3005, U+4e0d, U+4e88, U+4ecb, U+4ee3, U+4ef6, U+4fdd, U+4fe1, U+500b, U+50cf, U+5186,
U+5316, U+53d7, U+540c, U+544a, U+54e1, U+5728, U+58f2, U+5973, U+5b89, U+5c71, U+5e02, U+5e97,
U+5f15, U+5fc3, U+5fdc, U+601d, U+611b, U+611f, U+671f, U+6728, U+6765, U+683c, U+6b21, U+6ce8,
U+6d3b, U+6d77, U+7530, U+7740, U+7acb, U+7d50, U+826f, U+8f09, U+8fbc, U+9001, U+9053, U+91ce,
U+9762, U+98df;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.115.woff2)
format('woff2');
unicode-range:
U+7c, U+3080, U+4ee5, U+5148, U+516c, U+521d, U+5225, U+529b, U+52a0, U+53ef, U+56de, U+56fd,
U+5909, U+591a, U+5b66, U+5b9f, U+5bb6, U+5bfe, U+5e73, U+5e83, U+5ea6, U+5f53, U+6027, U+610f,
U+6210, U+6240, U+660e, U+66f4, U+66f8, U+6709, U+6771, U+697d, U+69d8, U+6a5f, U+6c34, U+6cbb,
U+73fe, U+756a, U+7684, U+771f, U+793a, U+7f8e, U+898f, U+8a2d, U+8a71, U+8fd1, U+9078, U+9577,
U+96fb, U+ff5e;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.116.woff2)
format('woff2');
unicode-range:
U+a9, U+3010-3011, U+30e2, U+4e0b, U+4eca, U+4ed6, U+4ed8, U+4f53, U+4f5c, U+4f7f, U+53d6,
U+540d, U+54c1, U+5730, U+5916, U+5b50, U+5c0f, U+5f8c, U+624b, U+6570, U+6587, U+6599, U+691c,
U+696d, U+6cd5, U+7269, U+7279, U+7406, U+767a-767b, U+77e5, U+7d04, U+7d22, U+8005, U+80fd,
U+81ea, U+8868, U+8981, U+89a7, U+901a, U+9023, U+90e8, U+91d1, U+9332, U+958b, U+96c6, U+9ad8,
U+ff1a, U+ff1f;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.117.woff2)
format('woff2');
unicode-range:
U+4e, U+a0, U+3000, U+300c-300d, U+4e00, U+4e0a, U+4e2d, U+4e8b, U+4eba, U+4f1a, U+5165, U+5168,
U+5185, U+51fa, U+5206, U+5229, U+524d, U+52d5, U+5408, U+554f, U+5831, U+5834, U+5927, U+5b9a,
U+5e74, U+5f0f, U+60c5, U+65b0, U+65b9, U+6642, U+6700, U+672c, U+682a, U+6b63, U+6c17, U+7121,
U+751f, U+7528, U+753b, U+76ee, U+793e, U+884c, U+898b, U+8a18, U+9593, U+95a2, U+ff01,
U+ff08-ff09;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.118.woff2)
format('woff2');
unicode-range:
U+21-22, U+27-2a, U+2c-3b, U+3f, U+41-4d, U+4f-5d, U+61-7b, U+7d, U+ab, U+ae, U+b2-b3, U+b7,
U+bb, U+c9, U+cd, U+d6, U+d8, U+dc, U+e0-e5, U+e7-ed, U+ef, U+f1-f4, U+f6, U+f8, U+fa, U+fc-fd,
U+103, U+14d, U+1b0, U+300-301, U+1ebf, U+1ec7, U+2013-2014, U+201c-201d, U+2039-203a, U+203c,
U+2048-2049, U+2113, U+2122, U+65e5, U+6708, U+70b9;
}
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7tOBsePYl9tE4unb6zDxeJE5P6vlm-9aQ.119.woff2)
format('woff2');
unicode-range:
U+20, U+2027, U+3001-3002, U+3041-307f, U+3081-308f, U+3091-3093, U+3099-309a, U+309d-309e,
U+30a1-30e1, U+30e3-30ed, U+30ef-30f0, U+30f2-30f4, U+30fb-30fe, U+ff0c, U+ff0e;
}
/* latin-ext */
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7dNHkPD5g.woff2)
format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Tsukimi Rounded';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tsukimirounded/v14/sJoc3LJNksWZO0LvnZwkF3HtoB7dOnkP.woff2)
format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
+327
View File
@@ -0,0 +1,327 @@
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');
@import 'tailwindcss';
@import './animations.css';
@custom-variant light (&:where(.light, .light *));
* {
/* transition: all 0.2s ease-in allow-discrete; */
}
@utility scroll-hidden {
-ms-overflow-style: none;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}
@theme {
/* Shadow variables (unchanged) */
--shadow-terminal:
rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
rgba(0, 0, 02, 0.5) 0px -4px 0px inset;
--shadow-button:
rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
rgba(0, 0, 02, 0.4) 0px -3px 0px inset;
--shadow-bg: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
--shadow-subtle:
rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 3px 4px -3px,
rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
--background-image-dots-bg: radial-gradient(
circle at center,
var(--dots-bg-2) 1px,
var(--dots-bg-1) 1px
);
--background-image-hr-fade: linear-gradient(
90deg,
transparent 0%,
var(--color-text-primary) 10%,
var(--color-text-primary) 90%,
transparent 100%
);
--background-image-pattern-dots: radial-gradient(
circle,
var(--color-border) 1px,
transparent 1px
);
--background-image-pattern-grid:
linear-gradient(var(--color-border) 1px, transparent 1px),
linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
--background-image-pattern-gradient: linear-gradient(
135deg,
var(--color-lavender-100) 0%,
var(--color-surface-1) 100%
);
/* Lavender scale */
--color-lavender-50: var(--color-lavender-50);
--color-lavender-100: var(--color-lavender-100);
--color-lavender-200: var(--color-lavender-200);
--color-lavender-300: var(--color-lavender-300);
--color-lavender-400: var(--color-lavender-400);
--color-lavender-500: var(--color-lavender-500);
--color-lavender-600: var(--color-lavender-600);
--color-lavender-700: var(--color-lavender-700);
--color-lavender-800: var(--color-lavender-800);
--color-lavender-900: var(--color-lavender-900);
/* Neutral grey scale */
--color-gray-50: var(--color-gray-50);
--color-gray-100: var(--color-gray-100);
--color-gray-200: var(--color-gray-200);
--color-gray-300: var(--color-gray-300);
--color-gray-400: var(--color-gray-400);
--color-gray-500: var(--color-gray-500);
--color-gray-600: var(--color-gray-600);
--color-gray-700: var(--color-gray-700);
--color-gray-800: var(--color-gray-800);
--color-gray-900: var(--color-gray-900);
/* Semantic tokens */
--color-primary: var(--color-primary);
--color-primary-variant: var(--color-primary-variant);
--color-secondary: var(--color-secondary);
--color-secondary-variant: var(--color-secondary-variant);
--color-info: var(--color-info);
--color-info-container: var(--color-info-container);
/* Backgrounds */
--color-bg-base: var(--color-bg-base);
--color-surface-1: var(--color-surface-1);
--color-surface-2: var(--color-surface-2);
--color-surface-3: var(--color-surface-3);
--color-surface-4: var(--color-surface-4);
--color-border: var(--color-border);
/* Typography */
--color-text-primary: var(--color-text-primary);
--color-text-secondary: var(--color-text-secondary);
--color-text-on-primary: var(--color-text-on-primary);
--color-muted: var(--color-muted);
--color-link: var(--color-link);
--color-link-hover: var(--color-link-hover);
/* States */
--color-error: var(--color-error);
--color-error-container: var(--color-error-container);
--color-success: var(--color-success);
--color-success-container: var(--color-success-container);
--color-warning: var(--color-warning);
--color-warning-container: var(--color-warning-container);
/* Utilities */
--color-focus-ring: var(--color-focus-ring);
--color-overlay: var(--color-overlay);
--color-shadow: var(--color-shadow);
--color-highlight: var(--color-highlight);
--color-divider: var(--color-divider);
--color-term-close: var(--color-term-close);
--color-term-maximize: var(--color-term-maximize);
--color-term-minimize: var(--color-term-minimize);
/* Font variables (unchanged) */
--font-primary: 'Space Mono', monospace;
--font-terminal: 'JetBrains Mono', monospace;
}
@utility bg-pattern-dots {
background-image: var(--background-image-pattern-dots);
background-size: 20px 20px;
background-repeat: repeat;
}
@utility bg-pattern-grid {
background-image: var(--background-image-pattern-grid);
background-size: 30px 30px;
background-repeat: repeat;
}
@utility bg-pattern-gradient {
background-image: var(--background-image-pattern-gradient);
background-size: cover;
background-repeat: no-repeat;
}
@utility transition-standard {
transition: all 200ms ease-in;
}
@utility button-click {
transform: translateY(0.125rem);
filter: brightness(0.9);
transition:
filter 50ms linear,
transform 50ms linear;
}
:root {
/*
================================================================
LIGHT THEME
================================================================
*/
/* Lavender scale */
--color-lavender-50: oklch(0.975 0.02 290);
--color-lavender-100: oklch(0.945 0.04 290);
--color-lavender-200: oklch(0.875 0.08 285);
--color-lavender-300: oklch(0.775 0.14 280);
--color-lavender-400: oklch(0.665 0.18 275);
--color-lavender-500: oklch(0.555 0.2 270);
--color-lavender-600: oklch(0.465 0.22 265);
--color-lavender-700: oklch(0.39 0.22 260);
--color-lavender-800: oklch(0.31 0.18 255);
--color-lavender-900: oklch(0.25 0.14 250);
/* Neutral grey scale (harmonised hue ~270) */
--color-gray-50: oklch(0.98 0 0);
--color-gray-100: oklch(0.95 0.002 270);
--color-gray-200: oklch(0.88 0.003 270);
--color-gray-300: oklch(0.78 0.005 270);
--color-gray-400: oklch(0.65 0.008 270);
--color-gray-500: oklch(0.52 0.01 270);
--color-gray-600: oklch(0.4 0.012 270);
--color-gray-700: oklch(0.28 0.012 270);
--color-gray-800: oklch(0.18 0.008 270);
--color-gray-900: oklch(0.13 0.005 270);
/* Semantic tokens – Light */
--color-primary: var(--color-lavender-700);
--color-primary-variant: var(--color-lavender-500);
--color-secondary: oklch(0.6 0.11 170);
--color-secondary-variant: oklch(0.7 0.14 170);
--color-info: oklch(0.58 0.13 250);
--color-info-container: oklch(0.95 0.04 250);
/* Background depth */
--color-bg-base: oklch(1 0 0);
--color-surface-1: oklch(0.975 0.02 290);
--color-surface-2: oklch(0.96 0.03 290);
--color-surface-3: oklch(0.93 0.06 285);
--color-surface-4: oklch(0.89 0.08 280);
--color-border: var(--color-lavender-200);
/* Typography */
--color-text-primary: oklch(0.18 0.02 270);
--color-text-secondary: oklch(0.42 0.03 270);
--color-text-on-primary: oklch(1 0 0);
--color-muted: oklch(0.55 0.01 270);
--color-link: var(--color-primary-variant);
--color-link-hover: var(--color-primary);
/* Semantic states */
--color-error: oklch(0.6 0.2 15);
--color-error-container: oklch(0.95 0.03 15);
--color-success: oklch(0.55 0.1 160);
--color-success-container: oklch(0.93 0.05 155);
--color-warning: oklch(0.65 0.15 75);
--color-warning-container: oklch(0.96 0.08 75);
/* Extra utilities */
--color-focus-ring: oklch(0.39 0.22 260 / 0.5);
--color-overlay: oklch(0 0 0 / 0.5);
--color-shadow: oklch(0.18 0.02 270 / 0.1);
--color-highlight: oklch(0.775 0.14 280 / 0.4);
--color-divider: var(--color-lavender-100);
--color-term-close: oklch(60.176% 0.19209 25.037);
--color-term-maximize: oklch(79.268% 0.17097 70.665);
--color-term-minimize: oklch(65.072% 0.18112 143.77);
}
/*
================================================================
DARK THEME OVERRIDES
================================================================
*/
:root[data-theme='dark'] {
--color-primary: var(--color-lavender-300);
--color-primary-variant: var(--color-lavender-400);
--color-secondary: oklch(0.7 0.14 170);
--color-secondary-variant: oklch(0.75 0.1 170);
--color-info: oklch(0.72 0.12 240);
--color-info-container: oklch(0.28 0.06 245);
--color-bg-base: oklch(0.13 0.03 270);
--color-surface-1: oklch(0.19 0.04 270);
--color-surface-2: oklch(0.26 0.05 265);
--color-surface-3: oklch(0.34 0.06 260);
--color-surface-4: oklch(0.42 0.07 255);
--color-border: oklch(0.3 0.04 265);
--color-text-primary: oklch(0.95 0.02 290);
--color-text-secondary: oklch(0.7 0.08 280);
--color-text-on-primary: oklch(0.18 0.02 270);
--color-muted: oklch(0.6 0.03 270);
--color-link: var(--color-primary);
--color-link-hover: var(--color-primary-variant);
--color-error: oklch(0.7 0.18 10);
--color-error-container: oklch(0.3 0.06 10);
--color-success: oklch(0.72 0.12 155);
--color-success-container: oklch(0.26 0.05 150);
--color-warning: oklch(0.78 0.13 70);
--color-warning-container: oklch(0.35 0.07 65);
--color-focus-ring: oklch(0.775 0.14 280 / 0.5);
--color-overlay: oklch(0 0 0 / 0.7);
--color-shadow: oklch(0 0 0 / 0.35);
--color-highlight: oklch(0.465 0.22 265 / 0.4);
--color-divider: oklch(0.3 0.04 265);
}
:root {
transition: all 0.2s ease-in;
--dots-bg-1: oklch(0.1 0.01 292);
--dots-bg-2: oklch(0.2 0.01 292);
--border-cart: solid 1px var(--border);
--shadow:
rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
--gradient-bg-direction: 0deg;
--gradient-bg: linear-gradient(var(--gradient-bg-direction), var(--bg-dark) 80%, transparent);
--gradient: linear-gradient(0deg, var(--bg) 95%, var(--bg-light));
--gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));
--transition-standard: all 0.2s ease-in;
--transition-theme: all 0.2s ease;
--lang-html: oklch(0.6 0.08207 195.16);
--lang-css: oklch(0.5 0.16037 303.368);
--lang-js: oklch(0.8 0.18261 102.094);
--lang-php: oklch(0.5923 0.09155 272.038);
--lang-cs: oklch(0.55 0.27927 141.446);
--lang-cpp: oklch(0.6 0.15576 6.88);
/* * {
transition: var(--transition-standard);
} */
/*
#underline-bg
/single side/ linear-gradient(90deg, var(--text) 85%, transparent 100%);
/both sides/ radial-gradient(circle, var(--text) 85%, transparent 100%);
#misc
background-image: radial-gradient(circle at center, #9f7aea20 1px, transparent 1px); background-size: 20px 20px;
otted background)
*/
/* Theme transition */
}