@@ -120,7 +120,7 @@ class CodeTabsElement extends HTMLElement {
120120 private buildUi ( args : { shouldRenderTabs : boolean ; labels : string [ ] } ) : void {
121121 const header = document . createElement ( 'div' )
122122 header . className =
123- 'flex w-full min-w-0 items-center justify-between border-b border-gray-200 bg-gray-50 '
123+ 'flex w-full min-w-0 items-center justify-between bg-page-base-offset '
124124
125125 const copyButton = this . createCopyButton ( )
126126
@@ -136,7 +136,7 @@ class CodeTabsElement extends HTMLElement {
136136
137137 const button = document . createElement ( 'button' )
138138 button . type = 'button'
139- button . className = 'inline-block px-2 py-1 m-2 text-gray-400 '
139+ button . className = 'inline-block px-2 py-1 m-2 text-content-offset '
140140 button . textContent = tabLabel
141141 button . setAttribute ( 'data-code-tabs-button' , String ( index ) )
142142
@@ -168,7 +168,7 @@ class CodeTabsElement extends HTMLElement {
168168 const button = document . createElement ( 'button' )
169169 button . type = 'button'
170170 button . className =
171- 'flex shrink-0 items-center gap-2 mr-2 px-3 py-2 text-gray-600 hover:text-gray-900 border-l border-gray-200 '
171+ 'flex shrink-0 items-center gap-2 mr-2 px-3 py-2 text-content hover:text-content-active '
172172 button . setAttribute ( 'aria-label' , tooltip )
173173 button . title = tooltip
174174
@@ -203,18 +203,18 @@ class CodeTabsElement extends HTMLElement {
203203
204204 this . tabButtons . forEach ( ( btn , i ) => {
205205 const isActive = i === index
206- btn . classList . toggle ( 'text-gray-900 ' , isActive )
207- btn . classList . toggle ( 'text-gray-400 ' , ! isActive )
206+ btn . classList . toggle ( 'text-content ' , isActive )
207+ btn . classList . toggle ( 'text-content-offset ' , ! isActive )
208208
209209 // Hover color behavior:
210210 // - Single-tab UI: no hover color change.
211211 // - Multi-tab UI: inactive tabs change color on hover; active tab does not.
212212 if ( ! this . isInteractiveTabs ) {
213- btn . classList . remove ( 'hover:text-gray-600 ' )
213+ btn . classList . remove ( 'hover:text-content-active ' )
214214 return
215215 }
216216
217- btn . classList . toggle ( 'hover:text-gray-600 ' , ! isActive )
217+ btn . classList . toggle ( 'hover:text-content-active ' , ! isActive )
218218 } )
219219 }
220220
0 commit comments