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

Commit

Permalink
fix: font family for components
Browse files Browse the repository at this point in the history
  • Loading branch information
codebender828 committed Dec 3, 2019
1 parent 570e41c commit 92f7c34
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 191 deletions.
11 changes: 9 additions & 2 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import { configure, addDecorator } from '@storybook/vue';
import { configure, addDecorator, addParameters } from '@storybook/vue';
import Vue from 'vue'
import ThemeProvider from 'kiwi'
import { ThemeProvider } from 'kiwi'
import theme from '../src/lib/theme'
import icons from '../src/lib/plugin/iconsPaths'
import Kiwi from '../src/lib/plugin'
import storyBookTheme from './theme'

Vue.use(Kiwi)

addParameters({
options: {
theme: storyBookTheme
}
})

addDecorator(() => ({
template: `
<ThemeProvider :theme="theme" :icons="icons" color-mode="light">
Expand Down
2 changes: 1 addition & 1 deletion .storybook/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default create({
base: 'light',
brandTitle: 'Kiwi UI Storybook',
brandUrl: 'https://github.com/codebender828/kiwi-ui',
brandImage: 'https://res.cloudinary.com/xtellar/image/upload/v1575300763/kiwi-ui/kiwi-ui-logo-h_w4ltfh.svg',
brandImage: 'https://res.cloudinary.com/xtellar/image/upload/v1575300764/kiwi-ui/kiwi-ui-logo-h_y75i1x.png'
});
3 changes: 2 additions & 1 deletion packages/kiwi-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"private": false,
"scripts": {
"build": "rollup -c && rollup -c --environment MINIFY",
"build:watch": "rollup -c --watch",
"test": "echo testing ...",
"clean": "rm -rf ./dist"
},
Expand All @@ -27,4 +28,4 @@
"core-js": "^3.4.5"
},
"gitHead": "bac5958955c86e8078fe444ee2738145b894af1d"
}
}
1 change: 1 addition & 0 deletions packages/kiwi-ui/src/Alert/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const Alert = {

return h(Box, {
props: {
fontFamily: 'body',
...alertStyles,
...forwardProps(this.$props)
},
Expand Down
1 change: 1 addition & 0 deletions packages/kiwi-ui/src/Badge/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default {
d: 'inline-block',
textTransform: 'uppercase',
fontSize: 'xs',
fontFamily: 'body',
px: 1,
rounded: 'sm',
fontWeight: 'bold',
Expand Down
1 change: 1 addition & 0 deletions packages/kiwi-ui/src/Text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
return h(Box, {
props: {
as: this.as,
fontFamily: this.as === 'kbd' ? 'mono' : 'body',
...forwardProps(this.$props)
}
}, this.$slots.default)
Expand Down
Loading

0 comments on commit 92f7c34

Please sign in to comment.