[{"data":1,"prerenderedAt":1872},["ShallowReactive",2],{"/blog/using-web-components-to-encapsulate-css-and-resolve-design-system-conflicts":3,"navigation-en-us":1122,"banner-en-us":1559,"footer-en-us":1567,"blog-post-authors-en-us-Tyler Williams":1813,"blog-related-posts-en-us-using-web-components-to-encapsulate-css-and-resolve-design-system-conflicts":1827,"blog-share-wrapper-en-us":1852,"next-steps-en-us":1862},{"id":4,"title":5,"authors":6,"body":8,"category":1103,"date":1104,"description":1105,"extension":1106,"externalUrl":1107,"faq":1107,"featured":1108,"heroImage":1109,"hidePromo":1108,"meta":1110,"navigation":666,"path":1111,"seo":1112,"slug":1115,"stem":1116,"tags":1117,"template":1120,"updatedDate":1107,"__hash__":1121},"blogPosts/en-us/blog/using-web-components-to-encapsulate-css-and-resolve-design-system-conflicts.md","Using web components to encapsulate CSS and resolve design system conflicts",[7],"Tyler Williams",{"type":9,"value":10,"toc":1097},"minimark",[11,16,39,43,63,78,81,95,99,125,152,582,611,626,629,887,898,913,916,1070,1074,1077,1090,1093],[12,13,15],"h2",{"id":14},"the-goal-a-new-design-for-the-gitlab-blog","The goal: A new design for the GitLab blog",[17,18,19,20,26,27,32,33,38],"p",{},"In March 2021, the ",[21,22,25],"a",{"href":23,"rel":24},"https://handbook.gitlab.com/handbook/marketing/digital-experience/",[],"Digital Experience team"," deployed a new and improved design for the GitLab blog. This design change affected more than 1,300 blog posts. It is the largest exercise to date for ",[21,28,31],{"href":29,"rel":30},"https://gitlab.com/gitlab-com/marketing/digital-experience/slippers-ui",[],"our design system, Slippers",". It presented challenges due to the age and size of the GitLab blog. We wanted to live up to GitLab's ",[21,34,37],{"href":35,"rel":36},"https://handbook.gitlab.com/handbook/values/#iteration",[],"iteration value",": \"Do the smallest thing possible and get it out as quickly as possible\".",[12,40,42],{"id":41},"the-major-challenge-incrementally-adopting-a-new-design-system-with-conflicting-css","The major challenge: Incrementally adopting a new design system with conflicting CSS",[17,44,45,50,51,56,57,62],{},[21,46,49],{"href":47,"rel":48},"https://gitlab-com.gitlab.io/marketing/inbound-marketing/slippers-ui/?path=/story/tailwind-css--page",[],"Slippers uses Tailwind CSS",", which comes with its own set of base styles, called ",[21,52,55],{"href":53,"rel":54},"https://tailwindcss.com/docs/preflight",[],"Preflight",". Preflight acts like normalizing styles (it's built on top of ",[21,58,61],{"href":59,"rel":60},"https://github.com/sindresorhus/modern-normalize",[],"modern-normalize","), which is useful for new projects, or projects making a full transition. In our case, Preflight is a hurdle because it has to work alongside our existing CSS.",[17,64,65,66,71,72,77],{},"We explored some out-of-the-box solutions, such as enabling the Tailwind ",[21,67,70],{"href":68,"rel":69},"https://tailwindcss.com/docs/configuration#important",[],"!important configuration",", or using a ",[21,73,76],{"href":74,"rel":75},"https://tailwindcss.com/docs/configuration#selector-strategy",[],"very specific selector strategy",".",[17,79,80],{},"We got very close to our desired outcome in both cases, but a problem remained:",[17,82,83,84,88,89,94],{},"Critical legacy components required the old CSS. Those old styles were getting past ",[85,86,87],"code",{},"!important"," and selector strategies because they applied to attributes we had not specified in our Tailwind utilities. Resolving those conflicts would take too much time and manual effort. We wanted a more ",[21,90,93],{"href":91,"rel":92},"https://handbook.gitlab.com/handbook/values/#efficiency",[],"efficient"," solution, so we focused on two things: Identifying an ideal state for our CSS and finding a better CSS encapsulation. The goal was to prevent existing styles from affecting new components, and new styles from affecting old components.",[12,96,98],{"id":97},"the-solution-css-encapsulation-with-web-components","The solution: CSS encapsulation with web components",[17,100,101,106,107,112,113,118,119,124],{},[21,102,105],{"href":103,"rel":104},"https://developer.mozilla.org/en-US/docs/Web/Web_Components",[],"Web component technologies"," offered a compelling solution to the requirement that we use the old CSS. We used the ",[21,108,111],{"href":109,"rel":110},"https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM",[],"shadow DOM"," to encapsulate CSS. ",[21,114,117],{"href":115,"rel":116},"https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_templates_and_slots",[],"Templates and slots"," allowed us to use existing HTML, ERB, and HAML templates. ",[21,120,123],{"href":121,"rel":122},"https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements",[],"Custom elements"," brought it all together.",[17,126,127,128,133,134,139,140,143,144,147,148,151],{},"In the ",[21,129,132],{"href":130,"rel":131},"https://gitlab.com/gitlab-com/www-gitlab-com/-/blob/master/sites/uncategorized/source/includes/cms/blog_post/slippers-blog-post.erb",[],"top-level blog template",", we placed a ",[21,135,138],{"href":136,"rel":137},"https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/77190/diffs#5667df8046398e47cb04d02fcc386420afc7ab57_35_28",[],"template tag for the blog post markup",". The ",[85,141,142],{},"template"," tag is valid HTML – meaning our templating engine can process everything inside it. We can use ",[85,145,146],{},"partial"," tags and ",[85,149,150],{},"yield"," as expected and they become part of the template. The output below shows what that looks like (some classes omitted for brevity):",[153,154,159],"pre",{"className":155,"code":156,"language":157,"meta":158,"style":158},"language-erb shiki shiki-themes github-light","\u003Ctemplate id=\"slp-blog\">\n  \u003Cmain class=\"slpBlog\">\n    \u003Cheader class=\"slpBlog__header\">\n      \u003C%= partial \"includes/cms/blog_post/slp-blog-avatar\", locals: { author: author } %>\n      \u003C%= partial \"includes/cms/blog_post/slp-tags\" %>\n      \u003Chr/>\n    \u003C/header>\n    \u003Carticle class=\"slpBlog__article\">\n      \u003C% if current_page.data.image_title %>\n        \u003Cimg alt=\"\" src=\"\u003C%= current_page.data.image_title %>\" width=\"100%\"/>\n      \u003C% end %>\n      \u003C%= yield %>\n    \u003C/article>\n    \u003Caside class=\"slpBlog__aside\">\n      \u003C%= partial \"includes/cms/blog_post/slp-social-follow\" %>\n      \u003Cslot name=\"non-slippers-aside-items\">\u003C/slot>\n    \u003C/aside>\n    \u003Cfooter class=\"slpBlog__footer\">\n      \u003Chr/>\n      \u003C%= partial \"includes/cms/blog_post/slp-related-content\" %>\n      \u003Cslot name=\"non-slippers-footer-items\">\u003C/slot>\n      \u003Chr/>\n    \u003C/footer>\n  \u003C/main>\n\u003C/template>\n\u003Cscript src=\"/javascripts/slippers-blog.js\" type=\"text/javascript\">\u003C/script>\n","erb","",[85,160,161,187,206,224,249,260,272,282,299,322,371,381,391,400,417,427,450,459,476,485,495,515,524,533,543,553],{"__ignoreMap":158},[162,163,166,170,173,177,180,184],"span",{"class":164,"line":165},"line",1,[162,167,169],{"class":168},"sgsFI","\u003C",[162,171,142],{"class":172},"shJU0",[162,174,176],{"class":175},"s7eDp"," id",[162,178,179],{"class":168},"=",[162,181,183],{"class":182},"sYBdl","\"slp-blog\"",[162,185,186],{"class":168},">\n",[162,188,190,193,196,199,201,204],{"class":164,"line":189},2,[162,191,192],{"class":168},"  \u003C",[162,194,195],{"class":172},"main",[162,197,198],{"class":175}," class",[162,200,179],{"class":168},[162,202,203],{"class":182},"\"slpBlog\"",[162,205,186],{"class":168},[162,207,209,212,215,217,219,222],{"class":164,"line":208},3,[162,210,211],{"class":168},"    \u003C",[162,213,214],{"class":172},"header",[162,216,198],{"class":175},[162,218,179],{"class":168},[162,220,221],{"class":182},"\"slpBlog__header\"",[162,223,186],{"class":168},[162,225,227,230,233,236,240,243,246],{"class":164,"line":226},4,[162,228,229],{"class":168},"      \u003C%= partial ",[162,231,232],{"class":182},"\"includes/cms/blog_post/slp-blog-avatar\"",[162,234,235],{"class":168},", ",[162,237,239],{"class":238},"sYu0t","locals:",[162,241,242],{"class":168}," { ",[162,244,245],{"class":238},"author:",[162,247,248],{"class":168}," author } %>\n",[162,250,252,254,257],{"class":164,"line":251},5,[162,253,229],{"class":168},[162,255,256],{"class":182},"\"includes/cms/blog_post/slp-tags\"",[162,258,259],{"class":168}," %>\n",[162,261,263,266,269],{"class":164,"line":262},6,[162,264,265],{"class":168},"      \u003C",[162,267,268],{"class":172},"hr",[162,270,271],{"class":168},"/>\n",[162,273,275,278,280],{"class":164,"line":274},7,[162,276,277],{"class":168},"    \u003C/",[162,279,214],{"class":172},[162,281,186],{"class":168},[162,283,285,287,290,292,294,297],{"class":164,"line":284},8,[162,286,211],{"class":168},[162,288,289],{"class":172},"article",[162,291,198],{"class":175},[162,293,179],{"class":168},[162,295,296],{"class":182},"\"slpBlog__article\"",[162,298,186],{"class":168},[162,300,302,305,309,312,315,317,320],{"class":164,"line":301},9,[162,303,304],{"class":168},"      \u003C% ",[162,306,308],{"class":307},"sD7c4","if",[162,310,311],{"class":168}," current_page.",[162,313,314],{"class":175},"data",[162,316,77],{"class":168},[162,318,319],{"class":175},"image_title",[162,321,259],{"class":168},[162,323,325,328,331,334,336,339,342,344,347,350,352,354,356,359,361,364,366,369],{"class":164,"line":324},10,[162,326,327],{"class":168},"        \u003C",[162,329,330],{"class":172},"img",[162,332,333],{"class":175}," alt",[162,335,179],{"class":168},[162,337,338],{"class":182},"\"\"",[162,340,341],{"class":175}," src",[162,343,179],{"class":168},[162,345,346],{"class":182},"\"",[162,348,349],{"class":182},"\u003C%= current_page.",[162,351,314],{"class":175},[162,353,77],{"class":182},[162,355,319],{"class":175},[162,357,358],{"class":182}," %>",[162,360,346],{"class":182},[162,362,363],{"class":175}," width",[162,365,179],{"class":168},[162,367,368],{"class":182},"\"100%\"",[162,370,271],{"class":168},[162,372,374,376,379],{"class":164,"line":373},11,[162,375,304],{"class":168},[162,377,378],{"class":307},"end",[162,380,259],{"class":168},[162,382,384,387,389],{"class":164,"line":383},12,[162,385,386],{"class":168},"      \u003C%= ",[162,388,150],{"class":307},[162,390,259],{"class":168},[162,392,394,396,398],{"class":164,"line":393},13,[162,395,277],{"class":168},[162,397,289],{"class":172},[162,399,186],{"class":168},[162,401,403,405,408,410,412,415],{"class":164,"line":402},14,[162,404,211],{"class":168},[162,406,407],{"class":172},"aside",[162,409,198],{"class":175},[162,411,179],{"class":168},[162,413,414],{"class":182},"\"slpBlog__aside\"",[162,416,186],{"class":168},[162,418,420,422,425],{"class":164,"line":419},15,[162,421,229],{"class":168},[162,423,424],{"class":182},"\"includes/cms/blog_post/slp-social-follow\"",[162,426,259],{"class":168},[162,428,430,432,435,438,440,443,446,448],{"class":164,"line":429},16,[162,431,265],{"class":168},[162,433,434],{"class":172},"slot",[162,436,437],{"class":175}," name",[162,439,179],{"class":168},[162,441,442],{"class":182},"\"non-slippers-aside-items\"",[162,444,445],{"class":168},">\u003C/",[162,447,434],{"class":172},[162,449,186],{"class":168},[162,451,453,455,457],{"class":164,"line":452},17,[162,454,277],{"class":168},[162,456,407],{"class":172},[162,458,186],{"class":168},[162,460,462,464,467,469,471,474],{"class":164,"line":461},18,[162,463,211],{"class":168},[162,465,466],{"class":172},"footer",[162,468,198],{"class":175},[162,470,179],{"class":168},[162,472,473],{"class":182},"\"slpBlog__footer\"",[162,475,186],{"class":168},[162,477,479,481,483],{"class":164,"line":478},19,[162,480,265],{"class":168},[162,482,268],{"class":172},[162,484,271],{"class":168},[162,486,488,490,493],{"class":164,"line":487},20,[162,489,229],{"class":168},[162,491,492],{"class":182},"\"includes/cms/blog_post/slp-related-content\"",[162,494,259],{"class":168},[162,496,498,500,502,504,506,509,511,513],{"class":164,"line":497},21,[162,499,265],{"class":168},[162,501,434],{"class":172},[162,503,437],{"class":175},[162,505,179],{"class":168},[162,507,508],{"class":182},"\"non-slippers-footer-items\"",[162,510,445],{"class":168},[162,512,434],{"class":172},[162,514,186],{"class":168},[162,516,518,520,522],{"class":164,"line":517},22,[162,519,265],{"class":168},[162,521,268],{"class":172},[162,523,271],{"class":168},[162,525,527,529,531],{"class":164,"line":526},23,[162,528,277],{"class":168},[162,530,466],{"class":172},[162,532,186],{"class":168},[162,534,536,539,541],{"class":164,"line":535},24,[162,537,538],{"class":168},"  \u003C/",[162,540,195],{"class":172},[162,542,186],{"class":168},[162,544,546,549,551],{"class":164,"line":545},25,[162,547,548],{"class":168},"\u003C/",[162,550,142],{"class":172},[162,552,186],{"class":168},[162,554,556,558,561,563,565,568,571,573,576,578,580],{"class":164,"line":555},26,[162,557,169],{"class":168},[162,559,560],{"class":172},"script",[162,562,341],{"class":175},[162,564,179],{"class":168},[162,566,567],{"class":182},"\"/javascripts/slippers-blog.js\"",[162,569,570],{"class":175}," type",[162,572,179],{"class":168},[162,574,575],{"class":182},"\"text/javascript\"",[162,577,445],{"class":168},[162,579,560],{"class":172},[162,581,186],{"class":168},[17,583,584,585,592,593,596,597,599,600,605,606,77],{},"The top-level template loads ",[21,586,589],{"href":587,"rel":588},"https://gitlab.com/gitlab-com/www-gitlab-com/-/blob/master/source/javascripts/slippers-blog.js",[],[85,590,591],{},"source/javascripts/slippers-blog.js"," inside the ",[85,594,595],{},"body"," of the document, which blocks rendering until the script finishes loading. ",[85,598,591],{}," imports Slippers CSS as a variable ",[21,601,604],{"href":602,"rel":603},"https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/77190/diffs#5b5ceecb366e6e69e99e2bae290c68bae177fc17_0_2",[],"using webpack loader syntax",". With the CSS stored as a variable, we can inject it into the ",[21,607,610],{"href":608,"rel":609},"https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/77190/diffs#5b5ceecb366e6e69e99e2bae290c68bae177fc17_0_6",[],"custom element definition",[17,612,613,614,617,618,625],{},"Next, we register ",[85,615,616],{},"slp-blog"," as a custom element. When the DOM parses the markup, it will either render the blog post template or, in the rare circumstance our JavaScript didn't load, it will fail. If it fails, we fall back to the ",[21,619,622,624],{"href":620,"rel":621},"https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/77190/diffs#5667df8046398e47cb04d02fcc386420afc7ab57_35_55",[],[85,623,150],{}," output in the light DOM"," to make sure critical content is never lost. In these cases, our static site generator already rendered the template, so the images and text of the blog post remain accessible to the visitor.",[17,627,628],{},"Here's what that JavaScript looks like:",[153,630,634],{"className":631,"code":632,"language":633,"meta":158,"style":158},"language-js shiki shiki-themes github-light","import Vue from 'vue/dist/vue.min.js'\nimport Slippers from 'slippers-ui/dist/slippersComponents.common.js'\n\n// eslint-disable-next-line import/no-webpack-loader-syntax\nconst css = require(\"!raw-loader!sass-loader!../stylesheets/slippers.css.scss\").default;\n\n// Some event handlers and other requirements omitted for brevity\n\nexport function initializeSlippersWebComponent() {\n    if (window.customElements) {\n        customElements.define('slp-blog',\n            class extends HTMLElement {\n                constructor() {\n                    super();\n                    const template = document.getElementById('slp-blog').content;\n                    const shadowRoot = this.attachShadow({ mode: 'open' });\n                    shadowRoot.innerHTML = `\u003Cstyle>${css}\u003C/style>`;\n                    shadowRoot.appendChild(template.cloneNode(true));\n                }\n            });\n    }\n}\n","js",[85,635,636,650,662,668,674,697,701,706,710,724,732,748,762,769,777,800,826,845,867,872,877,882],{"__ignoreMap":158},[162,637,638,641,644,647],{"class":164,"line":165},[162,639,640],{"class":307},"import",[162,642,643],{"class":168}," Vue ",[162,645,646],{"class":307},"from",[162,648,649],{"class":182}," 'vue/dist/vue.min.js'\n",[162,651,652,654,657,659],{"class":164,"line":189},[162,653,640],{"class":307},[162,655,656],{"class":168}," Slippers ",[162,658,646],{"class":307},[162,660,661],{"class":182}," 'slippers-ui/dist/slippersComponents.common.js'\n",[162,663,664],{"class":164,"line":208},[162,665,667],{"emptyLinePlaceholder":666},true,"\n",[162,669,670],{"class":164,"line":226},[162,671,673],{"class":672},"sAwPA","// eslint-disable-next-line import/no-webpack-loader-syntax\n",[162,675,676,679,682,685,688,691,694],{"class":164,"line":251},[162,677,678],{"class":307},"const",[162,680,681],{"class":238}," css",[162,683,684],{"class":307}," =",[162,686,687],{"class":175}," require",[162,689,690],{"class":168},"(",[162,692,693],{"class":182},"\"!raw-loader!sass-loader!../stylesheets/slippers.css.scss\"",[162,695,696],{"class":168},").default;\n",[162,698,699],{"class":164,"line":262},[162,700,667],{"emptyLinePlaceholder":666},[162,702,703],{"class":164,"line":274},[162,704,705],{"class":672},"// Some event handlers and other requirements omitted for brevity\n",[162,707,708],{"class":164,"line":284},[162,709,667],{"emptyLinePlaceholder":666},[162,711,712,715,718,721],{"class":164,"line":301},[162,713,714],{"class":307},"export",[162,716,717],{"class":307}," function",[162,719,720],{"class":175}," initializeSlippersWebComponent",[162,722,723],{"class":168},"() {\n",[162,725,726,729],{"class":164,"line":324},[162,727,728],{"class":307},"    if",[162,730,731],{"class":168}," (window.customElements) {\n",[162,733,734,737,740,742,745],{"class":164,"line":373},[162,735,736],{"class":168},"        customElements.",[162,738,739],{"class":175},"define",[162,741,690],{"class":168},[162,743,744],{"class":182},"'slp-blog'",[162,746,747],{"class":168},",\n",[162,749,750,753,756,759],{"class":164,"line":383},[162,751,752],{"class":307},"            class",[162,754,755],{"class":307}," extends",[162,757,758],{"class":175}," HTMLElement",[162,760,761],{"class":168}," {\n",[162,763,764,767],{"class":164,"line":393},[162,765,766],{"class":307},"                constructor",[162,768,723],{"class":168},[162,770,771,774],{"class":164,"line":402},[162,772,773],{"class":238},"                    super",[162,775,776],{"class":168},"();\n",[162,778,779,782,785,787,790,793,795,797],{"class":164,"line":419},[162,780,781],{"class":307},"                    const",[162,783,784],{"class":238}," template",[162,786,684],{"class":307},[162,788,789],{"class":168}," document.",[162,791,792],{"class":175},"getElementById",[162,794,690],{"class":168},[162,796,744],{"class":182},[162,798,799],{"class":168},").content;\n",[162,801,802,804,807,809,812,814,817,820,823],{"class":164,"line":429},[162,803,781],{"class":307},[162,805,806],{"class":238}," shadowRoot",[162,808,684],{"class":307},[162,810,811],{"class":238}," this",[162,813,77],{"class":168},[162,815,816],{"class":175},"attachShadow",[162,818,819],{"class":168},"({ mode: ",[162,821,822],{"class":182},"'open'",[162,824,825],{"class":168}," });\n",[162,827,828,831,833,836,839,842],{"class":164,"line":452},[162,829,830],{"class":168},"                    shadowRoot.innerHTML ",[162,832,179],{"class":307},[162,834,835],{"class":182}," `\u003Cstyle>${",[162,837,838],{"class":168},"css",[162,840,841],{"class":182},"}\u003C/style>`",[162,843,844],{"class":168},";\n",[162,846,847,850,853,856,859,861,864],{"class":164,"line":461},[162,848,849],{"class":168},"                    shadowRoot.",[162,851,852],{"class":175},"appendChild",[162,854,855],{"class":168},"(template.",[162,857,858],{"class":175},"cloneNode",[162,860,690],{"class":168},[162,862,863],{"class":238},"true",[162,865,866],{"class":168},"));\n",[162,868,869],{"class":164,"line":478},[162,870,871],{"class":168},"                }\n",[162,873,874],{"class":164,"line":487},[162,875,876],{"class":168},"            });\n",[162,878,879],{"class":164,"line":497},[162,880,881],{"class":168},"    }\n",[162,883,884],{"class":164,"line":517},[162,885,886],{"class":168},"}\n",[17,888,889,890,892,893,77],{},"If the script successfully loads, the light DOM content generated by our fallback ",[85,891,150],{}," statement is thrown away when the custom component is rendered. This is why we use an inline script tag beforehand - to avoid a ",[21,894,897],{"href":895,"rel":896},"https://en.wikipedia.org/wiki/Flash_of_unstyled_content#:~:text=A%20flash%20of%20unstyled%20content,before%20all%20information%20is%20retrieved.",[],"flash of unstyled content",[17,899,900,901,906,907,912],{},"Finally, we can use ",[21,902,905],{"href":903,"rel":904},"https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/77190/diffs#5667df8046398e47cb04d02fcc386420afc7ab57_40_59",[],"slots to render non-Slippers items",". Slotted elements get CSS from the light DOM, so our preexisting ",[21,908,911],{"href":909,"rel":910},"https://gitlab.com/gitlab-com/www-gitlab-com/-/tree/master/sites/uncategorized/source/includes/blog",[],"partials and other included templating"," will still work as expected.",[17,914,915],{},"Our custom element and its slots look something like this:",[153,917,919],{"className":155,"code":918,"language":157,"meta":158,"style":158},"\u003Cslp-blog>\n  \u003C%= yield %>\n  \u003Cdiv slot=\"non-slippers-aside-items\">\n    \u003C%= partial \"includes/newsletter-signup.html\" %>\n  \u003C/div>\n  \u003Cdiv slot=\"non-slippers-footer-items\">\n    \u003C% unless current_page.data.install_cta == false %>\n      \u003C%= partial \"includes/blog/try\" %>\n    \u003C% end %>\n    \u003C% if ci_environment? %>\n      \u003C%= partial \"includes/blog/comments\" %>\n    \u003C% end %>\n  \u003C/div>\n\u003C/slp-blog>\n",[85,920,921,929,938,954,964,972,986,1011,1020,1028,1037,1046,1054,1062],{"__ignoreMap":158},[162,922,923,925,927],{"class":164,"line":165},[162,924,169],{"class":168},[162,926,616],{"class":172},[162,928,186],{"class":168},[162,930,931,934,936],{"class":164,"line":189},[162,932,933],{"class":168},"  \u003C%= ",[162,935,150],{"class":307},[162,937,259],{"class":168},[162,939,940,942,945,948,950,952],{"class":164,"line":208},[162,941,192],{"class":168},[162,943,944],{"class":172},"div",[162,946,947],{"class":175}," slot",[162,949,179],{"class":168},[162,951,442],{"class":182},[162,953,186],{"class":168},[162,955,956,959,962],{"class":164,"line":226},[162,957,958],{"class":168},"    \u003C%= partial ",[162,960,961],{"class":182},"\"includes/newsletter-signup.html\"",[162,963,259],{"class":168},[162,965,966,968,970],{"class":164,"line":251},[162,967,538],{"class":168},[162,969,944],{"class":172},[162,971,186],{"class":168},[162,973,974,976,978,980,982,984],{"class":164,"line":262},[162,975,192],{"class":168},[162,977,944],{"class":172},[162,979,947],{"class":175},[162,981,179],{"class":168},[162,983,508],{"class":182},[162,985,186],{"class":168},[162,987,988,991,994,996,998,1000,1003,1006,1009],{"class":164,"line":274},[162,989,990],{"class":168},"    \u003C% ",[162,992,993],{"class":307},"unless",[162,995,311],{"class":168},[162,997,314],{"class":175},[162,999,77],{"class":168},[162,1001,1002],{"class":175},"install_cta",[162,1004,1005],{"class":307}," ==",[162,1007,1008],{"class":238}," false",[162,1010,259],{"class":168},[162,1012,1013,1015,1018],{"class":164,"line":284},[162,1014,229],{"class":168},[162,1016,1017],{"class":182},"\"includes/blog/try\"",[162,1019,259],{"class":168},[162,1021,1022,1024,1026],{"class":164,"line":301},[162,1023,990],{"class":168},[162,1025,378],{"class":307},[162,1027,259],{"class":168},[162,1029,1030,1032,1034],{"class":164,"line":324},[162,1031,990],{"class":168},[162,1033,308],{"class":307},[162,1035,1036],{"class":168}," ci_environment? %>\n",[162,1038,1039,1041,1044],{"class":164,"line":373},[162,1040,229],{"class":168},[162,1042,1043],{"class":182},"\"includes/blog/comments\"",[162,1045,259],{"class":168},[162,1047,1048,1050,1052],{"class":164,"line":383},[162,1049,990],{"class":168},[162,1051,378],{"class":307},[162,1053,259],{"class":168},[162,1055,1056,1058,1060],{"class":164,"line":393},[162,1057,538],{"class":168},[162,1059,944],{"class":172},[162,1061,186],{"class":168},[162,1063,1064,1066,1068],{"class":164,"line":402},[162,1065,548],{"class":168},[162,1067,616],{"class":172},[162,1069,186],{"class":168},[12,1071,1073],{"id":1072},"results-rapid-iteration-with-minimal-tradeoffs","Results: Rapid iteration with minimal tradeoffs",[17,1075,1076],{},"Our solution has some tradeoffs:",[1078,1079,1080,1084,1087],"ol",{},[1081,1082,1083],"li",{},"We added complexity to the build process for our blog posts.",[1081,1085,1086],{},"Web components have wide browser support, but that's only a recent development. The best practices around these tools are still being debated.",[1081,1088,1089],{},"Technically, we added client-side rendering to our statically generated site, meaning we're giving up some of the static site benefits to achieve our CSS encapsulation.",[17,1091,1092],{},"Those tradeoffs are worth it in the end. We achieved near-perfect CSS encapsulation which allowed us to iterate on Slippers and ship the blog template efficiently. We have reasonable fallbacks in place to preserve critical content for people who can't or won't load JavaScript to read our posts. Web components are the future, and we're excited to use them responsibly.",[1094,1095,1096],"style",{},"html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .s7eDp, html code.shiki .s7eDp{--shiki-default:#6F42C1}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}",{"title":158,"searchDepth":189,"depth":189,"links":1098},[1099,1100,1101,1102],{"id":14,"depth":189,"text":15},{"id":41,"depth":189,"text":42},{"id":97,"depth":189,"text":98},{"id":1072,"depth":189,"text":1073},"engineering","2021-05-03","How we used web component technologies like the Shadow DOM to make it easy to incrementally adopt our new design system, Slippers.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749679537/Blog/Hero%20Images/slippers-sys.jpg",{},"/en-us/blog/using-web-components-to-encapsulate-css-and-resolve-design-system-conflicts",{"title":5,"description":1105,"ogTitle":5,"ogDescription":1105,"noIndex":1108,"ogImage":1109,"ogUrl":1113,"ogSiteName":1114,"ogType":289,"canonicalUrls":1113},"https://about.gitlab.com/blog/using-web-components-to-encapsulate-css-and-resolve-design-system-conflicts","https://about.gitlab.com","using-web-components-to-encapsulate-css-and-resolve-design-system-conflicts","en-us/blog/using-web-components-to-encapsulate-css-and-resolve-design-system-conflicts",[1118,1119],"design","inside GitLab","BlogPost","r7vRLnH5s9vyqMDol5246AmfpUPys9lBGQLh4ZNVano",{"logo":1123,"freeTrial":1127,"sales":1132,"login":1137,"items":1142,"search":1478,"minimal":1510,"duo":1529,"switchNav":1538,"pricingDeployment":1549},{"config":1124},{"href":1125,"dataGaName":1126,"dataGaLocation":214},"/","gitlab logo",{"text":1128,"config":1129},"Get free trial",{"href":1130,"dataGaName":1131,"dataGaLocation":214},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1133,"config":1134},"Request a demo",{"href":1135,"dataGaName":1136,"dataGaLocation":214},"/request-a-demo/","sales",{"text":1138,"config":1139},"Sign in",{"href":1140,"dataGaName":1141,"dataGaLocation":214},"https://gitlab.com/users/sign_in/","sign in",[1143,1229,1317,1322,1402,1456],{"text":1144,"left":666,"config":1145,"menu":1147},"Platform",{"dataNavLevelOne":1146},"platform",{"type":1148,"link":1149,"columns":1153,"feature":1218},"lists",{"text":1150,"config":1151},"Explore the Platform",{"href":1152,"dataGaName":1146,"dataGaLocation":214},"/platform/",[1154,1177,1200],{"title":1155,"items":1156},"DevOps",[1157,1162,1167,1172],{"text":1158,"config":1159},"CI/CD",{"href":1160,"dataGaLocation":214,"dataGaName":1161},"/solutions/continuous-integration/","ci/cd",{"text":1163,"config":1164},"Source Code Management",{"href":1165,"dataGaLocation":214,"dataGaName":1166},"/solutions/source-code-management/","source code management",{"text":1168,"config":1169},"Agile Delivery",{"href":1170,"dataGaLocation":214,"dataGaName":1171},"/solutions/agile-delivery/","agile delivery",{"text":1173,"config":1174},"Artifact Management",{"href":1175,"dataGaLocation":214,"dataGaName":1176},"/artifact-central/","artifact management",{"title":1178,"items":1179},"Security & Governance",[1180,1185,1190,1195],{"text":1181,"config":1182},"Application Security Testing",{"href":1183,"dataGaLocation":214,"dataGaName":1184},"/solutions/application-security-testing/","application security testing",{"text":1186,"config":1187},"Governance & Compliance",{"href":1188,"dataGaLocation":214,"dataGaName":1189},"/solutions/software-compliance/","governance and compliance",{"text":1191,"config":1192},"Secrets Management",{"href":1193,"dataGaLocation":214,"dataGaName":1194},"/gitlab-secrets-manager/","secrets management",{"text":1196,"config":1197},"Supply Chain Security",{"href":1198,"dataGaLocation":214,"dataGaName":1199},"/solutions/supply-chain/","supply chain security",{"title":1201,"items":1202},"Agentic AI & Context",[1203,1208,1213],{"text":1204,"config":1205},"Duo Agent Platform",{"href":1206,"dataGaLocation":214,"dataGaName":1207},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1209,"config":1210},"Orbit Context Graph",{"href":1211,"dataGaLocation":214,"dataGaName":1212},"/gitlab-orbit/","orbit",{"text":1214,"config":1215},"Visibility & Measurement",{"href":1216,"dataGaLocation":214,"dataGaName":1217},"/solutions/visibility-measurement/","visibility and measurement",{"config":1219,"title":1222,"text":1223,"link":1224},{"background":1220,"textColor":1221},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":1225,"config":1226},"Read the announcement",{"href":1227,"dataGaName":1228,"dataGaLocation":214},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1230,"left":666,"config":1231,"menu":1233},"Solutions",{"dataNavLevelOne":1232},"solutions",{"type":1148,"link":1234,"columns":1238,"feature":1308},{"text":1235,"config":1236},"View all Solutions",{"href":1237,"dataGaName":1232,"dataGaLocation":214},"/solutions/",[1239,1257,1275],{"title":1240,"items":1241},"Outcomes",[1242,1247,1252],{"text":1243,"config":1244},"DevOps Modernization",{"href":1245,"dataGaLocation":214,"dataGaName":1246},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1248,"config":1249},"Security Modernization",{"href":1250,"dataGaLocation":214,"dataGaName":1251},"/assessments/security-modernization-assessment/","security modernization",{"text":1253,"config":1254},"AI Modernization",{"href":1255,"dataGaLocation":214,"dataGaName":1256},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1258,"items":1259},"By size",[1260,1265,1270],{"text":1261,"config":1262},"Enterprise",{"href":1263,"dataGaLocation":214,"dataGaName":1264},"/enterprise/","enterprise",{"text":1266,"config":1267},"Small Business",{"href":1268,"dataGaLocation":214,"dataGaName":1269},"/small-business/","small business",{"text":1271,"config":1272},"Startups",{"href":1273,"dataGaLocation":214,"dataGaName":1274},"/solutions/startups/","startups",{"title":1276,"items":1277},"Industries",[1278,1283,1288,1293,1298,1303],{"text":1279,"config":1280},"Financial Services",{"href":1281,"dataGaLocation":214,"dataGaName":1282},"/solutions/finance/","financial services",{"text":1284,"config":1285},"Public Sector",{"href":1286,"dataGaLocation":214,"dataGaName":1287},"/solutions/public-sector/","public sector",{"text":1289,"config":1290},"Telecommunications",{"href":1291,"dataGaLocation":214,"dataGaName":1292},"/solutions/telecommunications/","telecommunications",{"text":1294,"config":1295},"Automotive",{"href":1296,"dataGaLocation":214,"dataGaName":1297},"/solutions/automotive/","automotive",{"text":1299,"config":1300},"Education",{"href":1301,"dataGaLocation":214,"dataGaName":1302},"/solutions/education/","education",{"text":1304,"config":1305},"Aerospace",{"href":1306,"dataGaLocation":214,"dataGaName":1307},"/solutions/aerospace/","aerospace",{"config":1309,"title":1310,"text":1311,"link":1312},{"background":1220,"textColor":1221},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1313,"config":1314},"Explore the standard",{"href":1315,"dataGaName":1316,"dataGaLocation":214},"/gitlab-security-standard/","gitlab security standard",{"text":1318,"config":1319},"Pricing",{"href":1320,"dataGaName":1321,"dataGaLocation":214,"dataNavLevelOne":1321},"/pricing/","pricing",{"text":1323,"config":1324,"menu":1326},"Resources",{"dataNavLevelOne":1325},"resources",{"type":1148,"link":1327,"columns":1331,"feature":1393},{"text":1328,"config":1329},"View all resources",{"href":1330,"dataGaName":1325,"dataGaLocation":214},"/resources/",[1332,1365],{"title":1333,"items":1334},"Discover",[1335,1340,1345,1350,1355,1360],{"text":1336,"config":1337},"Docs",{"href":1338,"dataGaName":1339,"dataGaLocation":214},"https://docs.gitlab.com/","docs",{"text":1341,"config":1342},"University",{"href":1343,"dataGaName":1344,"dataGaLocation":214},"https://university.gitlab.com/","university",{"text":1346,"config":1347},"Demo Series",{"href":1348,"dataGaName":1349,"dataGaLocation":214},"/gitlab-technical-demo-series/","demo series",{"text":1351,"config":1352},"Demo Hub",{"href":1353,"dataGaName":1354,"dataGaLocation":214},"/demo-hub/","demo hub",{"text":1356,"config":1357},"Services",{"href":1358,"dataGaName":1359,"dataGaLocation":214},"/services/","services",{"text":1361,"config":1362},"Well Architected",{"href":1363,"dataGaName":1364,"dataGaLocation":214},"/resources/well-architected/","well architected",{"title":1366,"items":1367},"Connect",[1368,1373,1378,1383,1388],{"text":1369,"config":1370},"Blog",{"href":1371,"dataGaName":1372,"dataGaLocation":214},"/blog/","blog",{"text":1374,"config":1375},"Community",{"href":1376,"dataGaName":1377,"dataGaLocation":214},"/community/","community",{"text":1379,"config":1380},"Customers",{"href":1381,"dataGaName":1382,"dataGaLocation":214},"/customers/","customers",{"text":1384,"config":1385},"Partners",{"href":1386,"dataGaName":1387,"dataGaLocation":214},"/partners/","partners",{"text":1389,"config":1390},"Events",{"href":1391,"dataGaName":1392,"dataGaLocation":214},"/events/","events",{"config":1394,"title":1395,"text":1396,"link":1397},{"background":1220,"textColor":1221},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1398,"config":1399},"Read the latest",{"href":1400,"dataGaName":1401,"dataGaLocation":214},"/whats-new/","whats new",{"text":1403,"config":1404,"menu":1406},"Company",{"dataNavLevelOne":1405},"company",{"type":1148,"columns":1407},[1408],{"items":1409},[1410,1415,1421,1426,1431,1436,1441,1446,1451],{"text":1411,"config":1412},"About",{"href":1413,"dataGaName":1414,"dataGaLocation":214},"/company/","about",{"text":1416,"config":1417,"footerGa":1420},"Jobs",{"href":1418,"dataGaName":1419,"dataGaLocation":214},"/jobs/","jobs",{"dataGaName":1419},{"text":1422,"config":1423},"Press",{"href":1424,"dataGaName":1425,"dataGaLocation":214},"/press/","press",{"text":1427,"config":1428},"Handbook",{"href":1429,"dataGaName":1430,"dataGaLocation":214},"https://handbook.gitlab.com/","handbook",{"text":1432,"config":1433},"Leadership",{"href":1434,"dataGaName":1435,"dataGaLocation":214},"/company/team/e-group/","leadership",{"text":1437,"config":1438},"Investor relations",{"href":1439,"dataGaName":1440,"dataGaLocation":214},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1442,"config":1443},"Trust Center",{"href":1444,"dataGaName":1445,"dataGaLocation":214},"/security/","trust center",{"text":1447,"config":1448},"AI Transparency Center",{"href":1449,"dataGaName":1450,"dataGaLocation":214},"/ai-transparency-center/","ai transparency center",{"text":1452,"config":1453},"Newsletter",{"href":1454,"dataGaName":1455,"dataGaLocation":214},"/company/contact/#contact-forms","newsletter",{"text":1457,"config":1458,"menu":1459},"Contact us",{"dataNavLevelOne":1405},{"type":1148,"columns":1460},[1461],{"items":1462},[1463,1468,1473],{"text":1464,"config":1465},"Talk to sales",{"href":1466,"dataGaName":1467,"dataGaLocation":214},"/sales/","talk to sales",{"text":1469,"config":1470},"Support portal",{"href":1471,"dataGaName":1472,"dataGaLocation":214},"https://support.gitlab.com/hc/en-us","support portal",{"text":1474,"config":1475},"Customer portal",{"href":1476,"dataGaName":1477,"dataGaLocation":214},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1479,"login":1480,"suggestions":1487},"Close",{"text":1481,"link":1482},"To search repositories and projects, login to",{"text":1483,"config":1484},"gitlab.com",{"href":1140,"dataGaName":1485,"dataGaLocation":1486},"search login","search",{"text":1488,"default":1489},"Suggestions",[1490,1493,1496,1498,1502,1506],{"text":1491,"config":1492},"GitLab Duo Agent Platform",{"href":1206,"dataGaName":1491,"dataGaLocation":1486},{"text":1494,"config":1495},"Code Suggestions (AI)",{"href":1206,"dataGaName":1494,"dataGaLocation":1486},{"text":1158,"config":1497},{"href":1160,"dataGaName":1158,"dataGaLocation":1486},{"text":1499,"config":1500},"GitLab on AWS",{"href":1501,"dataGaName":1499,"dataGaLocation":1486},"/partners/technology-partners/aws/",{"text":1503,"config":1504},"GitLab on Google Cloud",{"href":1505,"dataGaName":1503,"dataGaLocation":1486},"/partners/technology-partners/google-cloud-platform/",{"text":1507,"config":1508},"Why GitLab?",{"href":1509,"dataGaName":1507,"dataGaLocation":1486},"/why-gitlab/",{"freeTrial":1511,"mobileIcon":1516,"desktopIcon":1521,"secondaryButton":1524},{"text":1512,"config":1513},"Start free trial",{"href":1514,"dataGaName":1131,"dataGaLocation":1515},"https://gitlab.com/-/trials/new/","nav",{"altText":1517,"config":1518},"Gitlab Icon",{"src":1519,"dataGaName":1520,"dataGaLocation":1515},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1517,"config":1522},{"src":1523,"dataGaName":1520,"dataGaLocation":1515},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1525,"config":1526},"Get Started",{"href":1527,"dataGaName":1528,"dataGaLocation":1515},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1530,"mobileIcon":1534,"desktopIcon":1536},{"text":1531,"config":1532},"Learn more about GitLab Duo",{"href":1206,"dataGaName":1533,"dataGaLocation":1515},"gitlab duo",{"altText":1517,"config":1535},{"src":1519,"dataGaName":1520,"dataGaLocation":1515},{"altText":1517,"config":1537},{"src":1523,"dataGaName":1520,"dataGaLocation":1515},{"button":1539,"mobileIcon":1544,"desktopIcon":1546},{"text":1540,"config":1541},"/switch",{"href":1542,"dataGaName":1543,"dataGaLocation":1515},"#contact","switch",{"altText":1517,"config":1545},{"src":1519,"dataGaName":1520,"dataGaLocation":1515},{"altText":1517,"config":1547},{"src":1548,"dataGaName":1520,"dataGaLocation":1515},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1550,"mobileIcon":1555,"desktopIcon":1557},{"text":1551,"config":1552},"Back to pricing",{"href":1320,"dataGaName":1553,"dataGaLocation":1515,"icon":1554},"back to pricing","GoBack",{"altText":1517,"config":1556},{"src":1519,"dataGaName":1520,"dataGaLocation":1515},{"altText":1517,"config":1558},{"src":1523,"dataGaName":1520,"dataGaLocation":1515},{"title":1560,"button":1561,"config":1565},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1225,"config":1562},{"href":1227,"dataGaName":1563,"dataGaLocation":1564},"orbit-ga-banner","global-banner",{"layout":1566,"disabled":1108},"release",{"data":1568},{"text":1569,"config":1570,"items":1575,"minimal":1802},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1571,"facebook":1572,"youtube":1573,"linkedin":1574},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1576,1623,1682,1729,1770],{"title":1318,"links":1577,"subMenu":1592},[1578,1582,1587],{"text":1579,"config":1580},"View plans",{"href":1320,"dataGaName":1581,"dataGaLocation":466},"view plans",{"text":1583,"config":1584},"Why Premium?",{"href":1585,"dataGaName":1586,"dataGaLocation":466},"/pricing/premium/","why premium",{"text":1588,"config":1589},"Why Ultimate?",{"href":1590,"dataGaName":1591,"dataGaLocation":466},"/pricing/ultimate/","why ultimate",[1593],{"title":1594,"links":1595},"Contact Us",[1596,1599,1601,1603,1608,1613,1618],{"text":1597,"config":1598},"Contact sales",{"href":1466,"dataGaName":1136,"dataGaLocation":466},{"text":1469,"config":1600},{"href":1471,"dataGaName":1472,"dataGaLocation":466},{"text":1474,"config":1602},{"href":1476,"dataGaName":1477,"dataGaLocation":466},{"text":1604,"config":1605},"Status",{"href":1606,"dataGaName":1607,"dataGaLocation":466},"https://status.gitlab.com/","status",{"text":1609,"config":1610},"Terms of use",{"href":1611,"dataGaName":1612,"dataGaLocation":466},"/terms/","terms of use",{"text":1614,"config":1615},"Privacy statement",{"href":1616,"dataGaName":1617,"dataGaLocation":466},"/privacy/","privacy statement",{"text":1619,"config":1620},"Cookie preferences",{"dataGaName":1621,"dataGaLocation":466,"id":1622,"isOneTrustButton":666},"cookie preferences","ot-sdk-btn",{"title":1144,"links":1624,"subMenu":1640},[1625,1628,1630,1632,1634,1636],{"text":1626,"config":1627},"Explore the platform",{"href":1152,"dataGaName":1146,"dataGaLocation":466},{"text":1204,"config":1629},{"href":1206,"dataGaName":1207,"dataGaLocation":466},{"text":1158,"config":1631},{"href":1160,"dataGaName":1161,"dataGaLocation":466},{"text":1209,"config":1633},{"href":1211,"dataGaName":1212,"dataGaLocation":466},{"text":1191,"config":1635},{"href":1193,"dataGaName":1194,"dataGaLocation":466},{"text":1637,"config":1638},"Why GitLab",{"href":1509,"dataGaName":1639,"dataGaLocation":466},"why gitlab",[1641],{"title":1642,"links":1643},"Topics",[1644,1648,1653,1657,1662,1667,1672,1677],{"text":1158,"config":1645},{"href":1646,"dataGaName":1647,"dataGaLocation":466},"/topics/ci-cd/","cicd",{"text":1649,"config":1650},"GitOps",{"href":1651,"dataGaName":1652,"dataGaLocation":466},"/topics/gitops/","gitops",{"text":1155,"config":1654},{"href":1655,"dataGaName":1656,"dataGaLocation":466},"/topics/devops/","devops",{"text":1658,"config":1659},"Version Control",{"href":1660,"dataGaName":1661,"dataGaLocation":466},"/topics/version-control/","version control",{"text":1663,"config":1664},"DevSecOps",{"href":1665,"dataGaName":1666,"dataGaLocation":466},"/topics/devsecops/","devsecops",{"text":1668,"config":1669},"Cloud Native",{"href":1670,"dataGaName":1671,"dataGaLocation":466},"/topics/cloud-native/","cloud native",{"text":1673,"config":1674},"AI for Coding",{"href":1675,"dataGaName":1676,"dataGaLocation":466},"/topics/devops/ai-for-coding/","ai for coding",{"text":1678,"config":1679},"Agentic AI",{"href":1680,"dataGaName":1681,"dataGaLocation":466},"/topics/agentic-ai/","agentic ai",{"title":1230,"links":1683},[1684,1687,1690,1693,1696,1699,1701,1703,1705,1707,1709,1712,1714,1717,1721,1725],{"text":1685,"config":1686},"DevOps modernization",{"href":1245,"dataGaName":1246,"dataGaLocation":466},{"text":1688,"config":1689},"Security modernization",{"href":1250,"dataGaName":1251,"dataGaLocation":466},{"text":1691,"config":1692},"AI modernization",{"href":1255,"dataGaName":1256,"dataGaLocation":466},{"text":1694,"config":1695},"Financial services",{"href":1281,"dataGaName":1282,"dataGaLocation":466},{"text":1697,"config":1698},"Public sector",{"href":1286,"dataGaName":1287,"dataGaLocation":466},{"text":1289,"config":1700},{"href":1291,"dataGaName":1292,"dataGaLocation":466},{"text":1294,"config":1702},{"href":1296,"dataGaName":1297,"dataGaLocation":466},{"text":1299,"config":1704},{"href":1301,"dataGaName":1302,"dataGaLocation":466},{"text":1304,"config":1706},{"href":1306,"dataGaName":1307,"dataGaLocation":466},{"text":1261,"config":1708},{"href":1263,"dataGaName":1264,"dataGaLocation":466},{"text":1710,"config":1711},"Small business",{"href":1268,"dataGaName":1269,"dataGaLocation":466},{"text":1271,"config":1713},{"href":1273,"dataGaName":1274,"dataGaLocation":466},{"text":1649,"config":1715},{"href":1716,"dataGaName":1652,"dataGaLocation":466},"/solutions/gitops/",{"text":1718,"config":1719},"Software composition analysis",{"href":1198,"dataGaName":1720,"dataGaLocation":466},"software composition analysis",{"text":1722,"config":1723},"Value stream management",{"href":1216,"dataGaName":1724,"dataGaLocation":466},"value stream management",{"text":1726,"config":1727},"All solutions",{"href":1237,"dataGaName":1728,"dataGaLocation":466},"all solutions",{"title":1323,"links":1730},[1731,1736,1741,1743,1745,1747,1749,1751,1753,1755,1757,1759,1761,1763,1766],{"text":1732,"config":1733},"Install",{"href":1734,"dataGaName":1735,"dataGaLocation":466},"/install/","install",{"text":1737,"config":1738},"Quick start guides",{"href":1739,"dataGaName":1740,"dataGaLocation":466},"/get-started/","quick setup checklists",{"text":1336,"config":1742},{"href":1338,"dataGaName":1339,"dataGaLocation":466},{"text":1341,"config":1744},{"href":1343,"dataGaName":1344,"dataGaLocation":466},{"text":1346,"config":1746},{"href":1348,"dataGaName":1349,"dataGaLocation":466},{"text":1351,"config":1748},{"href":1353,"dataGaName":1354,"dataGaLocation":466},{"text":1356,"config":1750},{"href":1358,"dataGaName":1359,"dataGaLocation":466},{"text":1369,"config":1752},{"href":1371,"dataGaName":1372,"dataGaLocation":466},{"text":1374,"config":1754},{"href":1376,"dataGaName":1377,"dataGaLocation":466},{"text":1379,"config":1756},{"href":1381,"dataGaName":1382,"dataGaLocation":466},{"text":1384,"config":1758},{"href":1386,"dataGaName":1387,"dataGaLocation":466},{"text":1389,"config":1760},{"href":1391,"dataGaName":1392,"dataGaLocation":466},{"text":1452,"config":1762},{"href":1454,"dataGaName":1455,"dataGaLocation":466},{"text":1764,"config":1765},"What's new",{"href":1400,"dataGaName":1401,"dataGaLocation":466},{"text":1767,"config":1768},"All resources",{"href":1330,"dataGaName":1769,"dataGaLocation":466},"all resources",{"title":1403,"links":1771},[1772,1774,1776,1778,1780,1782,1784,1786,1788,1792,1797],{"text":1411,"config":1773},{"href":1413,"dataGaName":1405,"dataGaLocation":466},{"text":1416,"config":1775},{"href":1418,"dataGaName":1419,"dataGaLocation":466},{"text":1422,"config":1777},{"href":1424,"dataGaName":1425,"dataGaLocation":466},{"text":1427,"config":1779},{"href":1429,"dataGaName":1430,"dataGaLocation":466},{"text":1432,"config":1781},{"href":1434,"dataGaName":1435,"dataGaLocation":466},{"text":1437,"config":1783},{"href":1439,"dataGaName":1440,"dataGaLocation":466},{"text":1442,"config":1785},{"href":1444,"dataGaName":1445,"dataGaLocation":466},{"text":1447,"config":1787},{"href":1449,"dataGaName":1450,"dataGaLocation":466},{"text":1789,"config":1790},"Sustainability",{"href":1791,"dataGaName":1789,"dataGaLocation":466},"/sustainability/",{"text":1793,"config":1794},"Diversity, inclusion and belonging (DIB)",{"href":1795,"dataGaName":1796,"dataGaLocation":466},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1798,"config":1799},"Modern Slavery Transparency Statement",{"href":1800,"dataGaName":1801,"dataGaLocation":466},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1803},[1804,1807,1810],{"text":1805,"config":1806},"Terms",{"href":1611,"dataGaName":1612,"dataGaLocation":466},{"text":1808,"config":1809},"Cookies",{"dataGaName":1621,"dataGaLocation":466,"id":1622,"isOneTrustButton":666},{"text":1811,"config":1812},"Privacy",{"href":1616,"dataGaName":1617,"dataGaLocation":466},[1814],{"id":1815,"title":7,"body":1107,"config":1816,"content":1818,"description":1107,"extension":1821,"meta":1822,"navigation":666,"path":1823,"seo":1824,"stem":1825,"__hash__":1826},"blogAuthors/en-us/blog/authors/tyler-williams.yml",{"template":1817},"BlogAuthor",{"name":7,"config":1819},{"headshot":158,"ctfId":1820},"tywilliams","yml",{},"/en-us/blog/authors/tyler-williams",{},"en-us/blog/authors/tyler-williams","E2cqNSZ9NTH20nmxNn6wSYi3bxEvIgwPWQSiIP3od60",[1828,1836,1844],{"title":1829,"description":1830,"heroImage":1831,"category":1103,"date":1832,"authors":1833,"slug":1835,"externalUrl":1107},"Two front doors: Module-level access in a Django GRC app","A technical deep-dive on restructuring a Django internal tool to support two distinct GitLab teams: Security Compliance and Internal Audit.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750097663/Blog/Hero%20Images/Blog/Hero%20Images/Workflow%201800x945_2gQoQIbY9NvjLFpXtsxtXy_1750097663612.png","2026-10-05",[1834],"Donovan Felton","module-level-access-in-a-django-grc-app",{"title":1837,"description":1838,"heroImage":1839,"category":1103,"date":1840,"authors":1841,"slug":1843,"externalUrl":1107},"How GitLab reduced code-per-agentic-flow ratio by 45%","Learn how Flow Registry, a component-based framework that compiles YAML configurations into fully functional LangGraph flows, helped improve scalability and more.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-09-22",[1842],"Mikolaj Wawrzyniak","how-gitlab-reduced-code-per-agentic-flow-ratio",{"title":1845,"description":1846,"heroImage":1847,"category":1103,"date":1848,"authors":1849,"slug":1851,"externalUrl":1107},"Co-Create: Building GitLab with our users","How GitLab users collaborated with us to build practical product improvements in the first half of 2026.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1750099203/Blog/Hero%20Images/Blog/Hero%20Images/blog-image-template-1800x945%20%2820%29_2bJGC5ZP3WheoqzlLT05C5_1750099203484.png","2026-09-10",[1850],"Isa Huerga","co-create-h1-2026",{"header":1853,"text":1854,"button":1858,"disclaimer":1861},"Start your free\n\n30-day GitLab trial\n",[1855,1856,1857],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":1128,"config":1859},{"href":1860,"dataGaName":1131,"dataGaLocation":1372},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":1863,"blurb":1864,"button":1865,"secondaryButton":1870},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1866,"config":1867},"Get your free trial",{"href":1868,"dataGaName":1131,"dataGaLocation":1869},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1597,"config":1871},{"href":1466,"dataGaName":1136,"dataGaLocation":1869},1794911785656]