Skip to content

Commit

Permalink
Roll back style syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
henck committed Feb 8, 2024
1 parent ada8e2c commit 4a5ebd2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@independent-software/typeui",
"version": "1.2.12",
"version": "1.2.13",
"description": "TypeUI",
"keywords": [
"react",
Expand Down
10 changes: 7 additions & 3 deletions src/styles/StyleBase.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Theme } from './Theme'
import { createGlobalStyle } from 'styled-components'
import { css, createGlobalStyle, GlobalStyleComponent, DefaultTheme } from 'styled-components'

const StyleBase = createGlobalStyle`
const base = css`
@import url(${Theme.fontURL});
body {
Expand Down Expand Up @@ -49,4 +49,8 @@ const StyleBase = createGlobalStyle`
}
`;

export { StyleBase }
const StyleBase = createGlobalStyle`
${base}
`;

export { StyleBase };
10 changes: 7 additions & 3 deletions src/styles/StyleReset.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createGlobalStyle } from 'styled-components'
import { css, createGlobalStyle, GlobalStyleComponent, DefaultTheme } from 'styled-components'

const StyleReset = createGlobalStyle`
const reset = css`
/* http://meyerweb.com/eric/tools/css/reset/
v4.0 | 20180602
License: none (public domain)
Expand Down Expand Up @@ -54,4 +54,8 @@ const StyleReset = createGlobalStyle`
}
`;

export { StyleReset }
const StyleReset = createGlobalStyle`
${reset}
`

export { StyleReset };

0 comments on commit 4a5ebd2

Please sign in to comment.