File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919# Example 3: Initialize with custom theme configuration
2020theme_config = {
21- " colors" : {
22- " brand" : {
23- "50" : " #eff6ff" ,
24- " 100" : " #dbeafe" ,
25- " 200" : " #bfdbfe" ,
26- " 300" : " #93c5fd" ,
27- " 400" : " #60a5fa" ,
28- " 500" : " #3b82f6" ,
29- " 600" : " #2563eb" ,
30- " 700" : " #1d4ed8" ,
31- " 800" : " #1e40af" ,
32- " 900" : " #1e3a8a"
21+ ' colors' : {
22+ ' brand' : {
23+ '50' : ' #eff6ff' ,
24+ ' 100' : ' #dbeafe' ,
25+ ' 200' : ' #bfdbfe' ,
26+ ' 300' : ' #93c5fd' ,
27+ ' 400' : ' #60a5fa' ,
28+ ' 500' : ' #3b82f6' ,
29+ ' 600' : ' #2563eb' ,
30+ ' 700' : ' #1d4ed8' ,
31+ ' 800' : ' #1e40af' ,
32+ ' 900' : ' #1e3a8a' ,
3333 }
3434 }
3535}
36- setup_tailwindcss_plugin (mode = " offline" , tailwind_theme_config = theme_config )
36+ setup_tailwindcss_plugin (mode = ' offline' , tailwind_theme_config = theme_config )
3737
3838# Example 4: Initialize with download_node option
3939# setup_tailwindcss_plugin(mode="offline", download_node=True, node_version="18.17.0")
@@ -138,4 +138,4 @@ def update_output(value):
138138if __name__ == '__main__' :
139139 print ('Starting Dash app with TailwindCSS plugin...' )
140140 print ('Access the app at http://127.0.0.1:8050' )
141- app .run (debug = True )
141+ app .run (debug = True )
Original file line number Diff line number Diff line change @@ -357,11 +357,7 @@ def test_plugin_with_custom_plugin_tmp_dir(self):
357357
358358 def test_plugin_with_skip_build_parameters (self ):
359359 """Test plugin initialization with skip build parameters."""
360- plugin = _TailwindCSSPlugin (
361- mode = 'offline' ,
362- skip_build_if_recent = False ,
363- skip_build_time_threshold = 10
364- )
360+ plugin = _TailwindCSSPlugin (mode = 'offline' , skip_build_if_recent = False , skip_build_time_threshold = 10 )
365361
366362 assert plugin .skip_build_if_recent is False
367363 assert plugin .skip_build_time_threshold == 10
You can’t perform that action at this time.
0 commit comments