File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
apps/website/src/components/copy-css-config Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
- import { $ , component$ , useSignal } from '@builder.io/qwik' ;
1
+ import { component$ , useSignal } from '@builder.io/qwik' ;
2
2
import { Modal , ModalContent , ModalHeader } from '@qwik-ui/headless' ;
3
3
import { Button } from '@qwik-ui/styled' ;
4
4
import { extractThemeCSS } from '@qwik-ui/utils' ;
@@ -13,23 +13,17 @@ export default component$(() => {
13
13
14
14
const { theme } = useTheme ( ) ;
15
15
16
- const generateCSSThemeOutput = $ ( async ( ) => {
17
- console . log ( 'theme' , theme ) ;
18
- const cssRules = extractThemeCSS (
19
- theme === 'dark' || theme === 'light'
20
- ? 'border-radius-0 simple primary-cyan-600 light base-slate'
21
- : theme ,
22
- globalCSS ,
23
- ) ;
24
- cssThemeOutput . value = cssRules ;
25
- } ) ;
26
-
27
16
return (
28
17
< >
29
18
< Button
30
19
onClick$ = { ( ) => {
31
20
showSig . value = true ;
32
- generateCSSThemeOutput ( ) ;
21
+ cssThemeOutput . value = extractThemeCSS (
22
+ theme === 'dark' || theme === 'light'
23
+ ? 'border-radius-0 simple primary-cyan-600 light base-slate'
24
+ : theme ,
25
+ globalCSS ,
26
+ ) ;
33
27
} }
34
28
>
35
29
Copy code
You can’t perform that action at this time.
0 commit comments