Buckets:
| def generate_theme_script(primary_color: str = "#4f46e5", secondary_color: str = "#0ea5e9") -> str: | |
| """ | |
| Generates a script tag for Tailwind custom configuration. | |
| """ | |
| script = f""" | |
| <script> | |
| tailwind.config = {{ | |
| theme: {{ | |
| extend: {{ | |
| colors: {{ | |
| primary: '{primary_color}', | |
| secondary: '{secondary_color}', | |
| }} | |
| }} | |
| }} | |
| }} | |
| </script> | |
| """ | |
| return script | |
| def generate_global_css(font_family: str = "Inter, sans-serif") -> str: | |
| """ | |
| Generates a basic global CSS structure. | |
| """ | |
| css = f""" | |
| body {{ | |
| font-family: {font_family}; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| }} | |
| .btn-primary {{ | |
| @apply bg-primary text-white px-4 py-2 rounded-md hover:opacity-90 transition; | |
| }} | |
| """ | |
| return css | |
Xet Storage Details
- Size:
- 807 Bytes
- Xet hash:
- 926f98c971b5feacbf7734264cea8eba37e4c5d6cf08bf2ee29f13ba87a74dfa
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.