Files
gogh-engine/common/storage.js
Aditya Gupta 6cdc79e345 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.
2026-03-03 23:11:08 +05:30

9 lines
280 B
JavaScript

export const getStorage = (componentKey, callback) => {
chrome.storage.sync.get([componentKey], function(result) {
callback(result[componentKey]);
});
};
export const setStorage = (componentKey, value) => {
chrome.storage.sync.set({[componentKey]: value});
};