Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

feat: export mergeThemes and add examples#285

Merged
miroslavstastny merged 4 commits intomasterfrom
feat/css-utilities
Oct 23, 2018
Merged

feat: export mergeThemes and add examples#285
miroslavstastny merged 4 commits intomasterfrom
feat/css-utilities

Conversation

@levithomason
Copy link
Member

@levithomason levithomason commented Sep 26, 2018

This PR exports mergeThemes which allows consumers to merge themes at the top of their application.

import { mergeThemes } from '@stardust-ui/react'

<Provider theme={mergeThemes(themes.teams, { /* my overrides */})}>
  <MyApp />
</Provider>

@levithomason levithomason force-pushed the feat/css-utilities branch 2 times, most recently from 66b9fa0 to d1273df Compare October 19, 2018 23:02
@levithomason levithomason changed the title [WIP] feat: export mergeThemes and add examples feat: export mergeThemes and add examples Oct 19, 2018
@codecov
Copy link

codecov bot commented Oct 22, 2018

Codecov Report

Merging #285 into master will increase coverage by 0.98%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #285      +/-   ##
==========================================
+ Coverage   90.77%   91.76%   +0.98%     
==========================================
  Files          41       41              
  Lines        1334     1335       +1     
  Branches      194      194              
==========================================
+ Hits         1211     1225      +14     
+ Misses        120      107      -13     
  Partials        3        3
Impacted Files Coverage Δ
src/components/Provider/Provider.tsx 88.88% <ø> (+28.88%) ⬆️
src/index.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e70307...e238c76. Read the comment docs.

@miroslavstastny miroslavstastny merged commit aa514b3 into master Oct 23, 2018
@miroslavstastny miroslavstastny deleted the feat/css-utilities branch October 23, 2018 04:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants