primer / github-vscode-theme

GitHub's VS Code themes
https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme
MIT License
1.89k stars 195 forks source link

Refactor getColors function to use require directly on JSON files #363

Open DeepakKumarKhatri opened 1 year ago

DeepakKumarKhatri commented 1 year ago

The current implementation of the getColorsfunction in the file of colors.js file declares unnecessary variables for each theme's color object, which increases complexity and can be simplified. We can refactor the function to use requiredirectly on the jsonfiles for each theme's color object.