@primeuix/themes
Version:
Themes for PrimeUI Libraries
255 lines (246 loc) • 6.1 kB
TypeScript
/**
*
* Tabmenu Design Tokens
*
* @module tabmenu
*
*/
import type { ColorScheme as CS, DesignTokens, ExtendedCSS, ExtendedTokens } from '..';
/**
* Design Token Sections
*/
export declare namespace TabmenuTokenSections {
interface Root {
/**
* Transition duration of root
*
* @designToken tabmenu.transition.duration
*/
transitionDuration?: string;
}
interface Tablist {
/**
* Border width of tablist
*
* @designToken tabmenu.tablist.border.width
*/
borderWidth?: string;
/**
* Background of tablist
*
* @designToken tabmenu.tablist.background
*/
background?: string;
/**
* Border color of tablist
*
* @designToken tabmenu.tablist.border.color
*/
borderColor?: string;
}
interface Item {
/**
* Background of item
*
* @designToken tabmenu.item.background
*/
background?: string;
/**
* Hover background of item
*
* @designToken tabmenu.item.hover.background
*/
hoverBackground?: string;
/**
* Active background of item
*
* @designToken tabmenu.item.active.background
*/
activeBackground?: string;
/**
* Border width of item
*
* @designToken tabmenu.item.border.width
*/
borderWidth?: string;
/**
* Border color of item
*
* @designToken tabmenu.item.border.color
*/
borderColor?: string;
/**
* Hover border color of item
*
* @designToken tabmenu.item.hover.border.color
*/
hoverBorderColor?: string;
/**
* Active border color of item
*
* @designToken tabmenu.item.active.border.color
*/
activeBorderColor?: string;
/**
* Color of item
*
* @designToken tabmenu.item.color
*/
color?: string;
/**
* Hover color of item
*
* @designToken tabmenu.item.hover.color
*/
hoverColor?: string;
/**
* Active color of item
*
* @designToken tabmenu.item.active.color
*/
activeColor?: string;
/**
* Padding of item
*
* @designToken tabmenu.item.padding
*/
padding?: string;
/**
* Font weight of item
*
* @designToken tabmenu.item.font.weight
*/
fontWeight?: string;
/**
* Margin of item
*
* @designToken tabmenu.item.margin
*/
margin?: string;
/**
* Gap of item
*
* @designToken tabmenu.item.gap
*/
gap?: string;
/**
* Focus ring of item
*/
focusRing?: {
/**
* Focus ring width of item
*
* @designToken tabmenu.item.focus.ring.width
*/
width?: string;
/**
* Focus ring style of item
*
* @designToken tabmenu.item.focus.ring.style
*/
style?: string;
/**
* Focus ring color of item
*
* @designToken tabmenu.item.focus.ring.color
*/
color?: string;
/**
* Focus ring offset of item
*
* @designToken tabmenu.item.focus.ring.offset
*/
offset?: string;
/**
* Focus ring shadow of item
*
* @designToken tabmenu.item.focus.ring.shadow
*/
shadow?: string;
};
}
interface ItemIcon {
/**
* Color of item icon
*
* @designToken tabmenu.item.icon.color
*/
color?: string;
/**
* Hover color of item icon
*
* @designToken tabmenu.item.icon.hover.color
*/
hoverColor?: string;
/**
* Active color of item icon
*
* @designToken tabmenu.item.icon.active.color
*/
activeColor?: string;
}
interface ActiveBar {
/**
* Height of active bar
*
* @designToken tabmenu.active.bar.height
*/
height?: string;
/**
* Bottom of active bar
*
* @designToken tabmenu.active.bar.bottom
*/
bottom?: string;
/**
* Background of active bar
*
* @designToken tabmenu.active.bar.background
*/
background?: string;
}
/* Static Sections */
type ColorScheme = CS<TabmenuDesignTokens>;
type CSS = ExtendedCSS;
type Extend = ExtendedTokens;
}
/**
*
* _Tabmenu Design Tokens_
*
* @group components
* @module tabmenu
* @see
* --- ---
* **Compatible Libraries**
*
* [](https://primeng.org/theming/styled)
* [](https://primevue.org/theming/styled)
* --- ---
* **Figma UI Kit**
*
* [PrimeNG](https://primeng.org/uikit) | [PrimeVue](https://primevue.org/uikit)
*
*/
export interface TabmenuDesignTokens extends DesignTokens<TabmenuDesignTokens> {
/**
* Used to pass tokens of the root section
*/
root?: TabmenuTokenSections.Root;
/**
* Used to pass tokens of the tablist section
*/
tablist?: TabmenuTokenSections.Tablist;
/**
* Used to pass tokens of the item section
*/
item?: TabmenuTokenSections.Item;
/**
* Used to pass tokens of the item icon section
*/
itemIcon?: TabmenuTokenSections.ItemIcon;
/**
* Used to pass tokens of the active bar section
*/
activeBar?: TabmenuTokenSections.ActiveBar;
}