Use theme store to pass color_scheme directly to components
This commit is contained in:
parent
f8316dd127
commit
d5acfe8fc1
36 changed files with 280 additions and 136 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { ColorScheme } from "../theme/color_scheme"
|
||||
import { text, border, background, foreground } from "./components"
|
||||
import { interactive } from "../element"
|
||||
import { useTheme } from "../theme"
|
||||
|
||||
export default function assistant(): any {
|
||||
const theme = useTheme()
|
||||
|
||||
export default function assistant(theme: ColorScheme): any {
|
||||
return {
|
||||
container: {
|
||||
background: background(theme.highest),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue