go integration and wikipedia
This commit is contained in:
parent
47a252e339
commit
ee90335b92
7828 changed files with 1307913 additions and 20807 deletions
13
frontend/node_modules/tailwind-merge/src/lib/from-theme.ts
generated
vendored
Normal file
13
frontend/node_modules/tailwind-merge/src/lib/from-theme.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { DefaultThemeGroupIds, NoInfer, ThemeGetter, ThemeObject } from './types'
|
||||
|
||||
export const fromTheme = <
|
||||
AdditionalThemeGroupIds extends string = never,
|
||||
DefaultThemeGroupIdsInner extends string = DefaultThemeGroupIds,
|
||||
>(key: NoInfer<DefaultThemeGroupIdsInner | AdditionalThemeGroupIds>): ThemeGetter => {
|
||||
const themeGetter = (theme: ThemeObject<DefaultThemeGroupIdsInner | AdditionalThemeGroupIds>) =>
|
||||
theme[key] || []
|
||||
|
||||
themeGetter.isThemeGetter = true as const
|
||||
|
||||
return themeGetter
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue