File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -53,22 +53,7 @@ export function parseTypographyVariants(rawCssCode: string): TypographyVariant[]
5353 return n ;
5454 }
5555
56- return value . replace ( / v a r \( ( - - [ ^ ) ] + ) \) / g, ( ...[ , cssVariableName ] ) => {
57- assert ( is < `--${string } `> ( cssVariableName ) ) ;
58-
59- const cssVariableValue = getCssVariable ( cssVariableName ) ;
60-
61- assert (
62- isInvariantAcrossTheme ( cssVariableValue ) ,
63- "CSS variable for TypoGraphy that depends on the theme have been introduce, the alg need to be made a bit more sophisticated."
64- ) ;
65- assert (
66- isInvariantAcrossScreenSizes ( cssVariableValue ) ,
67- "CSS variable for TypoGraphy that depends on screen width have been introduce, the alg need to be made a bit more sophisticated."
68- ) ;
69-
70- return cssVariableValue . root . light ;
71- } ) ;
56+ return value ;
7257 } ) ( ) )
7358 ) ;
7459
You can’t perform that action at this time.
0 commit comments