Skip to main content

Dash Customizable Style App Plugin Using Dash Hooks

Background color, text color and font family selectors to cusotmize your Dash apps using Dash Hooks.

Usage

from dash import html, Dash
import dash_bootstrap_components as dbc
import dash_ag_grid as dag  # Imported for the example explanation
import dash_customizable_app_style as style_plugin

# Initialize the Dash app
app = Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])

# Create the Dash App layout
app.layout = html.Div(

    # Set an ID called 'main_container' to the component you want an exchangeable background color, text color and font family
    id       = "main_container",
    children = [

        # Register the app style selectors
        style_plugin.customize_app_selectors(),

        # To be able to also update AgGrid's background color, text color
        # and font family, use a pattern-matching ID for them as following.
        dag.AgGrid(id       = {"type": "grid", "index": "your_grid_index"} 
                    # Rest of AgGrid...
                    ),

        # To be able to also update Figure's background color, text color
        # and font family, use a dcc.Store, dcc.Graph and a pattern-matching 
        # ID for them as following.
        dcc.Store(id={"type": "figure-store", "index": "line"}),
        dcc.Graph(id={"type": "graph", "index": "line"}),

        dcc.Store(id={"type": "figure-store", "index": "histogram"}),
        dcc.Graph(id={"type": "graph", "index": "histogram"})

        # Rest of your app code...
    ])

# To update Figures from an @app.callback
@app.callback(
    Output({"type": "figure-store", "index": "line"}, "data"),
    Output({"type": "figure-store", "index": "histogram"}, "data"),
    #    Rest of your callback....

    return line.to_dict(), histogram.to_dict()

Install requirements

pip install dash
pip install dash-bootstrap-components

Metadata

Release files for dash-customizable-app-style 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dash-customizable-app-style 0.0.7
File Size Uploaded Provenance Actions
dash_customizable_app_style-0.0.7.tar.gz 3.6 kB Without provenance Details for dash_customizable_app_style-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dash-customizable-app-style 0.0.7
File Interpreter ABI Platform Actions
dash_customizable_app_style-0.0.7-py3-none-any.whl Python 3 none any Details for dash_customizable_app_style-0.0.7-py3-none-any.whl

Total release size: 7.5 kB

Release files / dash_customizable_app_style-0.0.7.tar.gz

Download URL dash_customizable_app_style-0.0.7.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
747bc6d3db2f6f6039d97a5481f80623bcd7ba3a5094657581045bd581656c52
BLAKE2b-256 checksum
How to use checksums
8b08ed6562985a3fa98c75465f3d64da0145ab7648871dfefa69f690df892976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / dash_customizable_app_style-0.0.7-py3-none-any.whl

Download URL dash_customizable_app_style-0.0.7-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1faffee039359649eb3a9bfde08c64caf0f6dc407d5ec22bf3a633b854ed4cab
BLAKE2b-256 checksum
How to use checksums
31195a67ad9d67c5b0f6eb3790a6dffc260e1e26d32adac29a77595244e26b29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for dash-customizable-app-style 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page