-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add further product and gui icons
- Loading branch information
1 parent
90a96e6
commit e99f5f3
Showing
11 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { AccordionTheme, AccordionThemeColors } from "./types"; | ||
|
||
export const themeClasses: Record<AccordionTheme, AccordionThemeColors> = { | ||
dark: { | ||
bg: "bg-neutral-1200", | ||
hoverBg: "hover:bg-neutral-1100", | ||
text: "text-white", | ||
toggleIconColor: "text-orange-600", | ||
selectableBg: "data-[state=open]:bg-neutral-300", | ||
selectableText: "data-[state=open]:text-neutral-1300", | ||
}, | ||
light: { | ||
bg: "bg-neutral-200", | ||
hoverBg: "hover:bg-neutral-300", | ||
text: "text-neutral-1300", | ||
toggleIconColor: "text-neutral-1000", | ||
selectableBg: "data-[state=open]:bg-neutral-1200", | ||
selectableText: "data-[state=open]:text-white", | ||
}, | ||
transparent: { | ||
bg: "bg-transparent", | ||
hoverBg: "hover:bg-transparent", | ||
text: "text-neutral-1000", | ||
toggleIconColor: "text-dark-grey", | ||
border: "border-neutral-500 border-b last:border-none", | ||
}, | ||
darkTransparent: { | ||
bg: "bg-transparent", | ||
hoverBg: "hover:bg-transparent", | ||
text: "text-neutral-000", | ||
toggleIconColor: "text-orange-600", | ||
border: "border-neutral-900 border-b last:border-none", | ||
}, | ||
static: { | ||
bg: "bg-neutral-200", | ||
hoverBg: "hover:bg-neutral-200", | ||
text: "text-neutral-1300", | ||
toggleIconColor: "text-neutral-200", | ||
selectableBg: "data-[state=open]:bg-neutral-1200", | ||
selectableText: "data-[state=open]:text-white", | ||
}, | ||
darkStatic: { | ||
bg: "bg-neutral-1200", | ||
hoverBg: "hover:bg-neutral-1200", | ||
text: "text-white", | ||
toggleIconColor: "text-neutral-1200", | ||
selectableBg: "data-[state=open]:bg-neutral-1200", | ||
selectableText: "data-[state=open]:text-neutral-1300", | ||
}, | ||
}; | ||
|
||
export const isNonTransparentTheme = (theme: AccordionTheme) => | ||
!["transparent", "darkTransparent"].includes(theme); | ||
|
||
export const isStaticTheme = (theme: AccordionTheme) => | ||
["static", "darkStatic"].includes(theme); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.