@@ -31,32 +31,34 @@ def sizes
3131
3232 # rubocop:disable Layout/LineLength
3333 def styles
34- {
35- danger : Flowbite ::Style . new (
36- default : [ "focus:outline-none" , "text-white" , "bg-danger" , "box-border" , "border" , "border-transparent" , "hover:bg-danger-strong" , "focus:ring-4" , "focus:ring-danger-medium" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
37- ) ,
38- dark : Flowbite ::Style . new (
39- default : [ "focus:outline-none" , "text-white" , "bg-dark" , "box-border" , "border" , "border-transparent" , "hover:bg-dark-strong" , "focus:ring-4" , "focus:ring-neutral-tertiary" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
40- ) ,
41- default : Flowbite ::Style . new (
42- default : [ "focus:outline-none" , "text-white" , "bg-brand" , "box-border" , "border" , "border-transparent" , "hover:bg-brand-strong" , "focus:ring-4" , "focus:ring-brand-medium" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
43- ) ,
44- ghost : Flowbite ::Style . new (
45- default : [ "focus:outline-none" , "text-heading" , "bg-transparent" , "box-border" , "border" , "border-transparent" , "hover:bg-neutral-secondary-medium" , "focus:ring-4" , "focus:ring-neutral-tertiary" , "font-medium" , "leading-5" , "rounded-base" ]
46- ) ,
47- secondary : Flowbite ::Style . new (
48- default : [ "focus:outline-none" , "text-body" , "bg-neutral-secondary-medium" , "box-border" , "border" , "border-default-medium" , "hover:bg-neutral-tertiary-medium" , "focus:ring-4" , "focus:ring-neutral-tertiary" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
49- ) ,
50- success : Flowbite ::Style . new (
51- default : [ "focus:outline-none" , "text-white" , "bg-success" , "box-border" , "border" , "border-transparent" , "hover:bg-success-strong" , "focus:ring-4" , "focus:ring-success-medium" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
52- ) ,
53- tertiary : Flowbite ::Style . new (
54- default : [ "focus:outline-none" , "text-body" , "bg-neutral-primary-soft" , "box-border" , "border" , "border-default" , "hover:bg-neutral-secondary-medium" , "focus:ring-4" , "focus:ring-neutral-tertiary-soft" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
55- ) ,
56- warning : Flowbite ::Style . new (
57- default : [ "focus:outline-none" , "text-white" , "bg-warning" , "box-border" , "border" , "border-transparent" , "hover:bg-warning-strong" , "focus:ring-4" , "focus:ring-warning-medium" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
58- )
59- } . freeze
34+ Flowbite ::Styles . from_hash (
35+ {
36+ danger : {
37+ default : [ "focus:outline-none" , "text-white" , "bg-danger" , "box-border" , "border" , "border-transparent" , "hover:bg-danger-strong" , "focus:ring-4" , "focus:ring-danger-medium" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
38+ } ,
39+ dark : {
40+ default : [ "focus:outline-none" , "text-white" , "bg-dark" , "box-border" , "border" , "border-transparent" , "hover:bg-dark-strong" , "focus:ring-4" , "focus:ring-neutral-tertiary" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
41+ } ,
42+ default : {
43+ default : [ "focus:outline-none" , "text-white" , "bg-brand" , "box-border" , "border" , "border-transparent" , "hover:bg-brand-strong" , "focus:ring-4" , "focus:ring-brand-medium" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
44+ } ,
45+ ghost : {
46+ default : [ "focus:outline-none" , "text-heading" , "bg-transparent" , "box-border" , "border" , "border-transparent" , "hover:bg-neutral-secondary-medium" , "focus:ring-4" , "focus:ring-neutral-tertiary" , "font-medium" , "leading-5" , "rounded-base" ]
47+ } ,
48+ secondary : {
49+ default : [ "focus:outline-none" , "text-body" , "bg-neutral-secondary-medium" , "box-border" , "border" , "border-default-medium" , "hover:bg-neutral-tertiary-medium" , "focus:ring-4" , "focus:ring-neutral-tertiary" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
50+ } ,
51+ success : {
52+ default : [ "focus:outline-none" , "text-white" , "bg-success" , "box-border" , "border" , "border-transparent" , "hover:bg-success-strong" , "focus:ring-4" , "focus:ring-success-medium" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
53+ } ,
54+ tertiary : {
55+ default : [ "focus:outline-none" , "text-body" , "bg-neutral-primary-soft" , "box-border" , "border" , "border-default" , "hover:bg-neutral-secondary-medium" , "focus:ring-4" , "focus:ring-neutral-tertiary-soft" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
56+ } ,
57+ warning : {
58+ default : [ "focus:outline-none" , "text-white" , "bg-warning" , "box-border" , "border" , "border-transparent" , "hover:bg-warning-strong" , "focus:ring-4" , "focus:ring-warning-medium" , "shadow-xs" , "font-medium" , "leading-5" , "rounded-base" ]
59+ }
60+ } . freeze
61+ )
6062 end
6163 # rubocop:enable Layout/LineLength
6264 end
0 commit comments