Skip to content

Commit eaf6d9a

Browse files
committed
Remove ThemeProvider from templated Framer components
1 parent f33bb34 commit eaf6d9a

File tree

3 files changed

+0
-61
lines changed

3 files changed

+0
-61
lines changed

framer/scripts/additionalProps.js

-12
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ const additionalProps = component => {
117117
},
118118
defaultValue: { value: "'Filled'" },
119119
},
120-
error: {
121-
type: { name: 'color' },
122-
defaultValue: { value: componentSettings[component].propValues.error },
123-
},
124120
fullWidth: {
125121
type: { name: 'boolean' },
126122
description: 'TextField - fullWidth',
@@ -208,10 +204,6 @@ const additionalProps = component => {
208204
description: 'Theme palette type',
209205
defaultValue: { value: "'light'" },
210206
},
211-
primary: {
212-
type: { name: 'color' },
213-
defaultValue: { value: componentSettings[component].propValues.primary },
214-
},
215207
primaryAction: {
216208
type: {
217209
name: 'enum',
@@ -246,10 +238,6 @@ const additionalProps = component => {
246238
},
247239
defaultValue: { value: componentSettings[component].propValues.progressValue },
248240
},
249-
secondary: {
250-
type: { name: 'color' },
251-
defaultValue: { value: componentSettings[component].propValues.secondary },
252-
},
253241
secondaryAction: {
254242
type: {
255243
name: 'enum',

framer/scripts/framerConfig.js

-10
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,6 @@ export const componentSettings = {
191191
},
192192
template: 'self_closing.txt',
193193
},
194-
ThemeProvider: {
195-
ignoredProps: ['theme'],
196-
propValues: {
197-
paletteType: 'light',
198-
primary: "'#3f51b5'",
199-
secondary: "'#f50057'",
200-
error: "'#f44336'",
201-
},
202-
template: 'theme_provider.txt',
203-
},
204194
Paper: {
205195
ignoredProps: [],
206196
propValues: {

framer/scripts/templates/theme_provider.txt

-39
This file was deleted.

0 commit comments

Comments
 (0)