File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ const buildCssVariables = <T>(variables: ThemeVariables) => {
148
148
const keys = Object . keys ( variables ) as ( keyof ThemeVariables ) [ ] ;
149
149
return keys . reduce (
150
150
( acc , key ) =>
151
- acc . concat ( `--${ key . replace ( / _ / , '-' ) } : ${ variables [ key ] } ;` , '\n' ) ,
151
+ acc . concat ( `--${ key . replace ( / _ / g , '-' ) } : ${ variables [ key ] } ;` , '\n' ) ,
152
152
'' ,
153
153
) ;
154
154
} ;
@@ -158,7 +158,7 @@ export const themes = {
158
158
dark : buildCssVariables ( themeVariableSets . dark ) ,
159
159
} ;
160
160
161
- const cssVar = ( name : string ) => `var(--${ name . replace ( / _ / , '-' ) } )` ;
161
+ const cssVar = ( name : string ) => `var(--${ name . replace ( / _ / g , '-' ) } )` ;
162
162
163
163
const variableKeys = Object . keys ( themeVariableSets . light ) as VariableKey [ ] ;
164
164
You can’t perform that action at this time.
0 commit comments