You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the document, it would be nice to have a marker/int/something on each component pages to tell people this component is implementing a flowbite-angular standard theming.
By flowbite-angular standard, I mean, inside the theme configuration of that component, having different sections for different TailwindCSS states
under the page's header with a little mention This component is implementing flowbite-angular configuration standard
Library
Implementing this feature on documentation AND components MUST NOT affect existing code (the customStyle input will be discussed later as it's a DeepPartial type, it won't break existing code, but it may not work anymore in some case)
Here are states that will must be implemented for each theme section
hover
dark
focus
disabled
If we take the color property for a random component, its theme should look like this
Therefore, as it is always the same scheme, a global type should be created, named StandardThemeConfiguration located inside flowbite-angular/common/type-definition
Having multiple input per component won't be verry clever, so I suggest to have one global typeStandardThemeInput located inside flowbite-angular/common/type-definition, with key to boolean values like so
As this will be a standardized way of doing things, we could create a function for theme services to merge and retrieve classes from a theme, with parameter of type StandardThemeInput
Default values for common cases could be created in the same file as StandardThemeInput
Preview
Description
In the document, it would be nice to have a marker/int/something on each component pages to tell people this component is implementing a flowbite-angular standard theming.
By flowbite-angular standard, I mean, inside the theme configuration of that component, having different sections for different TailwindCSS states
Proposed solution
Documentation
Having a Check icon
under the page's header with a little mention This component is implementing flowbite-angular configuration standard
Library
Implementing this feature on documentation AND components MUST NOT affect existing code (the
customStyle
input will be discussed later as it's aDeepPartial
type, it won't break existing code, but it may not work anymore in some case)Here are states that will must be implemented for each theme section
hover
dark
focus
disabled
If we take the color property for a random component, its theme should look like this
Therefore, as it is always the same scheme, a global
type
should be created, named StandardThemeConfiguration located insideflowbite-angular/common/type-definition
Having multiple input per component won't be verry clever, so I suggest to have one global
type
StandardThemeInput
located insideflowbite-angular/common/type-definition
, with key to boolean values like soAs this will be a standardized way of doing things, we could create a function for theme services to merge and retrieve classes from a theme, with parameter of type
StandardThemeInput
Default values for common cases could be created in the same file as
StandardThemeInput
Alternatives considered
No response
The text was updated successfully, but these errors were encountered: