It looks like @Brett Mchdonald is correct. You have a typo in your post I'd check the spelling of the grid-template-columns
// create a reference to linked stylesheet
const stylesheet = document.styleSheets[0];
const rules = stylesheet.cssRules || stylesheet.rules;
// loop through the style sheet reference to find the classes to be modified and modify them
for (let i = 0; i < rules.length; i++) {
if (rules[i].selectorText === '.grid-container') {
rules[i].style['background-color'] ='yellow';
rules[i].style['grid-template-columns'] = 'auto auto auto';
break;
}
}