feat(fs.dev): Added theme support
This commit is contained in:
parent
84ffe26a76
commit
e1ecd0cb98
26 changed files with 834 additions and 96 deletions
13
packages/freesewing.shared/components/theme-picker.js
Normal file
13
packages/freesewing.shared/components/theme-picker.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import themes from 'shared/themes/index.js'
|
||||
|
||||
const ThemePicker = ({ app }) => {
|
||||
return (
|
||||
<select className="select select-bordered w-full max-w-xs" onChange={evt => app.setTheme(evt.target.value)}>
|
||||
{Object.keys(themes).map(theme => (
|
||||
<option>{theme}</option>
|
||||
))}
|
||||
</select>
|
||||
)
|
||||
}
|
||||
|
||||
export default ThemePicker
|
Loading…
Add table
Add a link
Reference in a new issue