1
0
Fork 0

feat(fs.dev): MDX styling

This commit is contained in:
Joost De Cock 2021-12-21 20:47:13 +01:00
parent 334a6933fd
commit 99393b8629
10 changed files with 137 additions and 67 deletions

View file

@ -1,8 +1,11 @@
import themes from 'shared/themes/index.js'
const ThemePicker = ({ app }) => {
const ThemePicker = ({ app, className='' }) => {
return (
<select className="select select-bordered w-full max-w-xs" onChange={evt => app.setTheme(evt.target.value)}>
<select
className={`select select-bordered w-full max-w-sm text-base-content ${className}`}
onChange={evt => app.setTheme(evt.target.value)}
>
{Object.keys(themes).map(theme => (
<option>{theme}</option>
))}