Skip to content

Commit 775abcf

Browse files
chore: impore theme red by default with btn
1 parent 7175fa6 commit 775abcf

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

@codexteam/ui/src/vue/components/button/Button.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
import { computed, defineProps, useSlots } from 'vue';
2626
import Icon from '../icon/Icon.vue';
2727
28+
/**
29+
* Import red theme for destructive button style.
30+
* This is marked as external in vite config, so consumers need to import
31+
* '@codexteam/ui/styles/themes/red' in their app.
32+
*/
33+
import '@codexteam/ui/styles/themes/red';
34+
2835
const props = withDefaults(
2936
defineProps<{
3037
/**

@codexteam/ui/vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ export default defineConfig({
8686
'@vueuse/shared',
8787
'@editorjs/editorjs',
8888
'@codexteam/icons',
89+
/**
90+
* Theme red is used by Button component for destructive style.
91+
* Mark as external so it's not bundled into component but imported separately.
92+
*/
93+
'@codexteam/ui/styles/themes/red',
8994
],
9095
},
9196
},

0 commit comments

Comments
 (0)