mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
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.
14 lines
254 B
Svelte
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>
|