Skip to content

Commit

Permalink
Merge pull request #5988 from gaetanmaisse/improve-lib-theming-ts-typing
Browse files Browse the repository at this point in the history
Improve typings of theming lib
  • Loading branch information
gaetanmaisse authored Mar 11, 2019
2 parents 3f94f5b + fcdc0ba commit 1e71612
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ exports[`Storyshots Basics|SyntaxHighlighter bordered & copy-able 1`] = `
position: relative;
overflow: hidden;
border: 1px solid rgba(0,0,0,.1);
background: #FFFFFF;
}

.emotion-2 {
Expand Down
1 change: 1 addition & 0 deletions lib/theming/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const color = {

export const background = {
app: '#F6F9FC',
bar: '#FFFFFF',
content: color.lightest,
hoverable: 'rgba(0,0,0,.05)', // hover state for items in a list

Expand Down
1 change: 1 addition & 0 deletions lib/theming/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const convert = (inherit: ThemeVars = lightThemeVars): Theme => {
color: createColors(inherit),
background: {
app: appBg,
bar: background.bar,
content: appContentBg,
hoverable:
base === 'light' ? 'rgba(0,0,0,.05)' : 'rgba(250,250,252,.1)' || background.hoverable,
Expand Down
5 changes: 3 additions & 2 deletions lib/theming/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import styled from '@emotion/styled';
import emotionStyled, { CreateStyled } from '@emotion/styled';
import dark from './themes/dark';
import light from './themes/light';
import { Theme } from './base';

export { styled };
export const styled = emotionStyled as CreateStyled<Theme>;

export * from './base';

Expand Down
1 change: 1 addition & 0 deletions lib/ui/src/settings/__snapshots__/about.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,7 @@ exports[`Storyshots UI|Settings/AboutScreen new version required 1`] = `
position: relative;
overflow: hidden;
border: 1px solid rgba(0,0,0,.1);
background: #FFFFFF;
}

.emotion-20 {
Expand Down

0 comments on commit 1e71612

Please sign in to comment.