Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 92f7c34

Browse files
committed
fix: font family for components
1 parent 570e41c commit 92f7c34

File tree

7 files changed

+187
-191
lines changed

7 files changed

+187
-191
lines changed

.storybook/config.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
import { configure, addDecorator } from '@storybook/vue';
1+
import { configure, addDecorator, addParameters } from '@storybook/vue';
22
import Vue from 'vue'
3-
import ThemeProvider from 'kiwi'
3+
import { ThemeProvider } from 'kiwi'
44
import theme from '../src/lib/theme'
55
import icons from '../src/lib/plugin/iconsPaths'
66
import Kiwi from '../src/lib/plugin'
7+
import storyBookTheme from './theme'
78

89
Vue.use(Kiwi)
910

11+
addParameters({
12+
options: {
13+
theme: storyBookTheme
14+
}
15+
})
16+
1017
addDecorator(() => ({
1118
template: `
1219
<ThemeProvider :theme="theme" :icons="icons" color-mode="light">

.storybook/theme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export default create({
44
base: 'light',
55
brandTitle: 'Kiwi UI Storybook',
66
brandUrl: 'https://github.com/codebender828/kiwi-ui',
7-
brandImage: 'https://res.cloudinary.com/xtellar/image/upload/v1575300763/kiwi-ui/kiwi-ui-logo-h_w4ltfh.svg',
7+
brandImage: 'https://res.cloudinary.com/xtellar/image/upload/v1575300764/kiwi-ui/kiwi-ui-logo-h_y75i1x.png'
88
});

packages/kiwi-ui/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"private": false,
1111
"scripts": {
1212
"build": "rollup -c && rollup -c --environment MINIFY",
13+
"build:watch": "rollup -c --watch",
1314
"test": "echo testing ...",
1415
"clean": "rm -rf ./dist"
1516
},
@@ -27,4 +28,4 @@
2728
"core-js": "^3.4.5"
2829
},
2930
"gitHead": "bac5958955c86e8078fe444ee2738145b894af1d"
30-
}
31+
}

packages/kiwi-ui/src/Alert/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const Alert = {
4141

4242
return h(Box, {
4343
props: {
44+
fontFamily: 'body',
4445
...alertStyles,
4546
...forwardProps(this.$props)
4647
},

packages/kiwi-ui/src/Badge/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default {
3333
d: 'inline-block',
3434
textTransform: 'uppercase',
3535
fontSize: 'xs',
36+
fontFamily: 'body',
3637
px: 1,
3738
rounded: 'sm',
3839
fontWeight: 'bold',

packages/kiwi-ui/src/Text/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default {
1616
return h(Box, {
1717
props: {
1818
as: this.as,
19+
fontFamily: this.as === 'kbd' ? 'mono' : 'body',
1920
...forwardProps(this.$props)
2021
}
2122
}, this.$slots.default)

0 commit comments

Comments
 (0)