jsscclr commited on
Commit
f4bdb3c
·
verified ·
1 Parent(s): a56d7fb

Update canva_theme.py

Browse files
Files changed (1) hide show
  1. canva_theme.py +14 -2
canva_theme.py CHANGED
@@ -3,8 +3,20 @@ from __future__ import annotations
3
  from gradio.themes.base import Base
4
  from gradio.themes.utils import fonts
5
 
6
- from colors import purple, neutral, blue, green, red, white, black, purpleA # Import our custom colors
7
- from sizes import spacing_md, radius_sm, text_md # Import our custom sizes
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  class CanvaTheme(Base):
10
  def __init__(
 
3
  from gradio.themes.base import Base
4
  from gradio.themes.utils import fonts
5
 
6
+ # Import our custom colors with the exact names we defined
7
+ from colors import (
8
+ neutral, # This was defined as neutral = Color(...)
9
+ purple, # This was defined as purple = Color(...)
10
+ blue, # This was defined as blue = Color(...)
11
+ green, # This was defined as green = Color(...)
12
+ red, # This was defined as red = Color(...)
13
+ yellow, # This was defined as yellow = Color(...)
14
+ white, # This was defined as white = {...}
15
+ black, # This was defined as black = {...}
16
+ grey # This was defined as grey = {...}
17
+ )
18
+ from sizes import spacing_md, radius_sm, text_md
19
+
20
 
21
  class CanvaTheme(Base):
22
  def __init__(