mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Type-ified styled components themes
This commit is contained in:
parent
349555b720
commit
dc62e6c395
9
styles/styled.d.ts
vendored
Normal file
9
styles/styled.d.ts
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import 'styled-components';
|
||||
|
||||
declare module 'styled-components' {
|
||||
export interface DefaultTheme {
|
||||
colors: {
|
||||
primary: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -1,9 +1,5 @@
|
|||
export type Theme = {
|
||||
colors: {
|
||||
primary: string;
|
||||
};
|
||||
};
|
||||
import type { DefaultTheme } from 'styled-components';
|
||||
|
||||
export type StyledAppProps = {
|
||||
theme?: Theme;
|
||||
theme?: DefaultTheme;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user