Skip to content

Commit 2bde84f

Browse files
author
Brandon Scott
authored
fix(theme): export evergreen, twilio and twilio dark themes from index file for consumer reference (#3006)
1 parent 4d9b4e6 commit 2bde84f

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.changeset/wet-bikes-cough.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@twilio-paste/core': minor
3+
'@twilio-paste/theme': minor
4+
---
5+
6+
[Theme] Export EvergreenTheme, TwilioTheme and TwilioDarkTheme objects and types

packages/paste-theme/src/index.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,25 @@ export {pasteGlobalStyles} from './styles/global';
1212
export {pasteFonts} from './styles/fonts';
1313
export {StyledBase};
1414
export type {ThemeProviderProps};
15-
export type {ThemeShape, SendGridThemeShape, ConsoleThemeShape, DarkThemeShape} from './types/themes';
15+
export type {
16+
ThemeShape,
17+
SendGridThemeShape,
18+
ConsoleThemeShape,
19+
DarkThemeShape,
20+
EvergreenThemeShape,
21+
TwilioThemeShape,
22+
TwilioDarkThemeShape,
23+
} from './types/themes';
1624
export type {GenericThemeShape} from './types/GenericThemeShape';
17-
export {DefaultTheme, ConsoleTheme, SendGridTheme, DarkTheme} from './themes';
25+
export {
26+
DefaultTheme,
27+
ConsoleTheme,
28+
SendGridTheme,
29+
DarkTheme,
30+
EvergreenTheme,
31+
TwilioTheme,
32+
TwilioDarkTheme,
33+
} from './themes';
1834
export {withTheme} from './withTheme';
1935
export {useTheme} from './useTheme';
2036
export {ThemeVariants} from './constants';
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import type {DefaultTheme} from '../themes/default';
22
import type {SendGridTheme} from '../themes/sendgrid';
33
import type {DarkTheme} from '../themes/dark';
4+
import type {EvergreenTheme} from '../themes/evergreen';
5+
import type {TwilioTheme} from '../themes/twilio';
6+
import type {TwilioDarkTheme} from '../themes/twilio-dark';
47

58
export type SendGridThemeShape = typeof SendGridTheme;
69
export type ConsoleThemeShape = typeof DefaultTheme;
710
export type DarkThemeShape = typeof DarkTheme;
811
export type ThemeShape = typeof DefaultTheme;
12+
export type EvergreenThemeShape = typeof EvergreenTheme;
13+
export type TwilioThemeShape = typeof TwilioTheme;
14+
export type TwilioDarkThemeShape = typeof TwilioDarkTheme;

0 commit comments

Comments
 (0)