Skip to content

Commit 756edb5

Browse files
committed
formatting
1 parent 3c0c8e8 commit 756edb5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/react-jss-ts.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,16 @@ export {}
119119

120120
This enables React-JSS to rely on a default `Theme` type, removing the need to explicitly provide a type to `createUseStyles`. This file does not need to be imported anywhere; it is automatically acknowledged by TypeScript and/or VSCode's TypeScript Server.
121121

122-
123122
## Using your Global Default Theme
124123

125124
After defining your custom theme type in `global.d.ts`, as shown above, you can import and use the custom theme interface as follows:
126125

127126
```typescript
128127
// theme.tsx
129128

130-
import { DefaultTheme } from "react-jss";
129+
import {DefaultTheme} from 'react-jss'
131130

132131
export const theme: DefaultTheme = {
133-
"background": "#fafafa",
134-
};
132+
background: '#fafafa'
133+
}
135134
```

0 commit comments

Comments
 (0)