carbon-components-svelte/docs/src/pages/framed/GlobalTheme/GlobalThemeTokens.svelte
Gregor Wassmann c0ff8ff76a chore: Move Theme to GlobalTheme
The reason for this is that Theme is a new v11 component that allows for inline theming. That’s a different purpose than this component has. In the standard Carbon implementation a GlobalTheme is used that matches the purpose of what this Svelte component used to do. The idea is to stick to the same name as the standard implementation.
2023-03-26 13:40:55 +02:00

14 lines
254 B
Svelte

<script>
import { Theme, Button } from "carbon-components-svelte";
</script>
<Theme
theme="g90"
tokens="{{
'interactive-01': '#d02670',
'hover-primary': '#ee5396',
'active-primary': '#9f1853',
}}"
/>
<Button>Primary button</Button>