feat: Implement Gogh Theme Engine with options page, theme parsing, and semantic theme derivation
We're cooked. <skull emoji> - Added options page for YAML palette editing, live color preview, and diagnostics. - Implemented theme engine to parse Gogh YAML palettes and derive semantic themes. - Configured TypeScript and Vite for building the extension. - Created new tab and popup HTML pages with corresponding scripts and styles. - Established storage management for user configurations in Chrome storage. - Added icons for the extension and updated manifest for MV3 compatibility.
This commit is contained in:
13
content_scripts/index.js
Normal file
13
content_scripts/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { getStorage } from "../common/storage";
|
||||
import { CHROME_SYNC_STORAGE_KEY, PRESET_CONFIGURATION } from "../common/settings";
|
||||
|
||||
function loadAndDisplayStorageValue(result) {
|
||||
const savedConfiguration = result || PRESET_CONFIGURATION;
|
||||
const storageValue = savedConfiguration["storageValue"];
|
||||
console.info("Storage value is", storageValue);
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
console.info("Content script loaded");
|
||||
getStorage(CHROME_SYNC_STORAGE_KEY, loadAndDisplayStorageValue);
|
||||
}
|
||||
Reference in New Issue
Block a user