Skip to content

Commit

Permalink
fix: textstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Nov 15, 2024
1 parent 11a4784 commit f47d4ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/studio/src/theme/components/Searchbar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { createMultiStyleConfigHelpers } from "@chakra-ui/styled-system"
import { anatomy } from "@chakra-ui/theme-tools"

import { textStyles } from "../generated/textStyles"

const parts = anatomy("searchbar").parts("icon", "field")
const { defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys)

export const Searchbar = defineMultiStyleConfig({
variants: {
outline: {
field: {
...textStyles["body-2"],
},
},
},
})
2 changes: 2 additions & 0 deletions apps/studio/src/theme/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Infobox } from "./Infobox"
import { Searchbar } from "./Searchbar"
import { Table } from "./Table"

export const components = {
Table,
Infobox,
Searchbar,
}

0 comments on commit f47d4ea

Please sign in to comment.