Skip to main content

Aina Theme is a custom Gradio theme inspired by the visual style of Storj theme. Feel free to use this theme to create Gradio apps that have a visual connection to the world of cloud technology.

Project description

Aina Theme is a custom Gradio theme inspired by the visual style of Storj theme. Feel free to use this theme to create Gradio apps that have a visual connection to the world of cloud technology.

How to edit Aina Gradio Theme colors and properties?

In case you would like to change theme properties, just edit AinaTheme/__init__.py file.

There are custom colors that you can set at utils/custom_colors.py.

How to use this theme in my Gradio app?

First install the theme package.

pip install git+https://gitlab.bsc.es/projecte-aina/aina-gradio-theme@<TAG_VERSION>

Once you have installed it, add it to the interface/block parameters.

#Using Blocks instance
with gr.Blocks(**AinaGradioTheme().get_kwargs()) as demo:
...
#Using Interface instance
iface = gr.Interface(
    **AinaGradioTheme().get_kwargs(),

NOTE: You need to call the get_kwargs function.

Why? Because this will spread theme arguments. It needs to be this way because it's mandatory to load the custom CSS.

So just instance the theme using the function.

**AinaGradioTheme().get_kwargs()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aina-gradio-theme-1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

aina_gradio_theme-1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file aina-gradio-theme-1.0.tar.gz.

File metadata

  • Download URL: aina-gradio-theme-1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for aina-gradio-theme-1.0.tar.gz
Algorithm Hash digest
SHA256 e3f17e533b38655bbd1746241e5cba4044658c16816c32bb150c3148388d19ea
MD5 e218ea41aeeeede183ea56b79baf468d
BLAKE2b-256 99635873ea420f6ea2cc2b28749cbe3cc8aa8e1998c7253eb8e980878c87757e

See more details on using hashes here.

File details

Details for the file aina_gradio_theme-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aina_gradio_theme-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93f91ea1b16608665f69429fc0b92acc11049e39127c2882904d550d9ae4b6cd
MD5 0a877b3e1b20564fce686cde84684d7a
BLAKE2b-256 d4244b8ce8583804a97483957e7043a0cd8358b5a8c39acc9c9ae28e59aa4c83

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page