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,9 +1,11 @@
|
|||
import { ColorScheme } from "../theme/color_scheme"
|
||||
import { with_opacity } from "../theme/color"
|
||||
import { background, border, text } from "./components"
|
||||
import { interactive, toggleable } from "../element"
|
||||
import { useTheme } from "../theme"
|
||||
|
||||
export default function picker(): any {
|
||||
const theme = useTheme()
|
||||
|
||||
export default function picker(theme: ColorScheme): any {
|
||||
const container = {
|
||||
background: background(theme.lowest),
|
||||
border: border(theme.lowest),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue