feat: improve theme color consistency

This commit is contained in:
2024-04-24 00:37:43 +02:00
parent 415d773610
commit f1e537d596
16 changed files with 1858 additions and 116 deletions

View File

@ -5,6 +5,7 @@
import Select from "./elements/Select.svelte";
import type { NodeInput } from "@nodes/types";
import Vec3 from "./elements/Vec3.svelte";
export let input: NodeInput;
export let value: any;
@ -19,4 +20,6 @@
<Checkbox {id} bind:value />
{:else if input.type === "select"}
<Select {id} bind:value options={input.options} />
{:else if input.type === "vec3"}
<Vec3 {id} bind:value />
{/if}

View File

@ -61,6 +61,8 @@ body {
--selected: #c65a19;
--outline: var(--neutral-400);
--connection: #333333;
--edge: var(--connection, var(--outline));
--text-color: var(--neutral-200);
@ -81,6 +83,7 @@ body.theme-light {
--layer-3: var(--neutral-500);
--active: #000000;
--selected: #c65a19;
--connection: #888;
}
body.theme-solarized {
@ -92,6 +95,7 @@ body.theme-solarized {
--layer-3: #586e75;
--active: #000000;
--selected: #268bd2;
--connection: #839496;
}
body.theme-catppuccin {
@ -101,6 +105,7 @@ body.theme-catppuccin {
--layer-2: #313244;
--layer-1: #1E1E2E;
--layer-0: #11111b;
--connection: #444459;
}
body.theme-high-contrast {
@ -110,6 +115,7 @@ body.theme-high-contrast {
--layer-1: black;
--layer-2: #222222;
--layer-3: #FFFFFF;
--connection: #FFF;
}
body.theme-nord {
@ -120,7 +126,8 @@ body.theme-nord {
--layer-2: #434C5E;
--layer-3: #5E81AC;
--active: #8999bd;
--selected: #b76c3f
--selected: #b76c3f;
--connection: #232731;
}
body.theme-dracula {

View File

@ -0,0 +1,10 @@
<script lang="ts">
import Float from "./Float.svelte";
export let value = [0, 0, 0];
export let id = "";
</script>
<Float id={`${id}-x`} bind:value={value[0]} />
<Float id={`${id}-y`} bind:value={value[1]} />
<Float id={`${id}-z`} bind:value={value[2]} />