Skip to content
Snippets Groups Projects
Commit 85ba768b authored by Sivert Kronen Hatteberg's avatar Sivert Kronen Hatteberg
Browse files

Use styled-components/macro

Issue: GREG-40
parent 77b7cd59
No related branches found
No related tags found
1 merge request!51Add basic theming support.
Pipeline #92651 passed
import { createGlobalStyle } from 'styled-components'
import { createGlobalStyle } from 'styled-components/macro'
const GlobalStyle = createGlobalStyle`
body {
......
import React, { Suspense } from 'react'
import ReactDOM from 'react-dom'
import { ThemeProvider } from 'styled-components'
import { ThemeProvider } from 'styled-components/macro'
import 'i18n'
import getCurrentTheme from 'theme'
......
import 'styled-components'
import 'styled-components/macro'
declare module 'styled-components' {
export interface DefaultTheme {
......
import { DefaultTheme } from "styled-components";
import { DefaultTheme } from 'styled-components/macro'
const white = '#FFFFFF'
const hotPink = '#FF69B4'
......@@ -8,7 +8,7 @@ const defaultTheme: DefaultTheme = {
colors: {
main: hotPink,
secondary: white,
}
},
}
export default defaultTheme;
export default defaultTheme
import { DefaultTheme } from "styled-components";
import { DefaultTheme } from 'styled-components/macro'
const white = '#FFFFFF'
const hotPink = '#FF69B4'
......@@ -8,7 +8,7 @@ const uioTheme: DefaultTheme = {
colors: {
main: hotPink,
secondary: white,
}
},
}
export default uioTheme;
export default uioTheme
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment