Home / File/ theme.svelte.js — svelte Source File

theme.svelte.js — svelte Source File

Architecture documentation for theme.svelte.js, a javascript file in the svelte codebase. 1 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  049aa162_267f_94cf_de48_551fb40b6c63["theme.svelte.js"]
  3a5197c5_26d7_61da_55b4_8d8d0647614e["store"]
  049aa162_267f_94cf_de48_551fb40b6c63 --> 3a5197c5_26d7_61da_55b4_8d8d0647614e
  style 049aa162_267f_94cf_de48_551fb40b6c63 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { fromStore, writable } from 'svelte/store';

export const store = writable({ theme: 'dark' });

class ThemeState {
	#storeState = fromStore(store);
	value = $derived(this.#storeState.current);

	constructor() {
		$effect.root(() => {
			$effect(() => {
				console.log(this.value.theme);
			});
		});
	}
}

export const themeState = new ThemeState();

Domain

Subdomains

Classes

Dependencies

  • store

Frequently Asked Questions

What does theme.svelte.js do?
theme.svelte.js is a source file in the svelte codebase, written in javascript. It belongs to the BuildSystem domain, QualityControl subdomain.
What does theme.svelte.js depend on?
theme.svelte.js imports 1 module(s): store.
Where is theme.svelte.js in the architecture?
theme.svelte.js is located at packages/svelte/tests/runtime-runes/samples/derived-unowned-10/theme.svelte.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/runtime-runes/samples/derived-unowned-10).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free