Add custom colors palette using KivyMD theme

162 views
Skip to first unread message

GIKPRO SA

unread,
Sep 8, 2023, 8:53:49 PM9/8/23
to Kivy users support


In KivyMD, how i can apply my custom color palette by configuring the theme colors using the theme_cls object ?

Assuming my color palette consists of the following colors:

  • Primary Color: Dark Blue (#203A5D)
  • Secondary Color: Green (#3EBD93)
  • Accent Color: Blue (#3E6AFF)
  • Neutral Color: Light Gray (#EDEDED)
  • Contrast Color: Deep Red (#C6171E)

elli...@cox.net

unread,
Sep 9, 2023, 12:48:00 AM9/9/23
to kivy-...@googlegroups.com

It is described here: https://kivymd.readthedocs.io/en/1.1.1/themes/theming/#changing-the-theme-colors

There is not a match between your descriptions, and the values that need to be overloaded in color_definitions.py.  You would need to decide these values.

See: https://github.com/kivymd/KivyMD/blob/master/kivymd/color_definitions.py

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b989476a-e4a8-4797-b508-55f6e72ce881n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages