diff --git a/README.md b/README.md index c9ac7c1..7042dac 100644 --- a/README.md +++ b/README.md @@ -41,24 +41,13 @@ $ yarn # start $ yarn start - -# Change version -$ yarn version - -# publish -$ npm publish - -# push -$ git push - -# push tags -$ git push --tags ``` - -## Deploy documents - -deploy to github pages +## Release ```bash +# publish +$ yarn release + +# deploy to github pages $ yarn story:deploy ``` diff --git a/docs/theme.stories.tsx b/docs/theme.stories.tsx index e6e6b16..1232ca7 100644 --- a/docs/theme.stories.tsx +++ b/docs/theme.stories.tsx @@ -14,11 +14,13 @@ const renderRadii = (value: string) => ( ); const renderShadows = (value: string) => ; -const renderSpace = (value: string) => ( - {renderColor('brand')} - {renderColor('brand')} - {renderColor('brand')} -) +const renderSpace = (value: string) => ( + + {renderColor('brand')} + {renderColor('brand')} + {renderColor('brand')} + +); const renderMap = { colors: renderColor, diff --git a/package.json b/package.json index 92e48d2..786af7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coral-system", - "version": "0.4.0", + "version": "0.4.1", "description": "a lightweight style system with react ui primitives", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", diff --git a/src/core/core.ts b/src/core/core.ts index 0ae2dc4..0646510 100644 --- a/src/core/core.ts +++ b/src/core/core.ts @@ -1,17 +1,17 @@ import { assign } from 'lodash-es'; -import { getToken, sizes, lineHeights, colors, shadows, borders } from '../helpers'; +import { getToken, sizes, space, radii, fontSizes, lineHeights, colors, shadows, borders } from '../helpers'; import { SystemScaleType } from '../types'; const getRawValue = (value: any) => value; const getValueMap = { - space: sizes, - fontSizes: sizes, colors, + fontSizes, lineHeights, + space, sizes, borders, - radii: sizes, + radii, shadows, zIndices: getToken, };