Skip to main content

A package to use Tailwind CSS in Shiny for Python

Project description

shinytail

A lightweight Python package for seamlessly integrating Tailwind CSS with Shiny for Python applications.

Installation

pip install shiny_tail

Features

  • Add Tailwind CSS to Shiny with one line of code
  • Support for Tailwind plugins and configurations
  • Custom themes and styling
  • No external CSS dependencies required
  • Simple, intuitive API
  • Responsive design out of the box

Usage

from shiny import App, ui
from htmltools import tags
from shinytail import tailwind

# Configure Tailwind with plugins
tailwind.configure(
    plugins=["typography"],
    config={"theme": {"extend": {"colors": {"custom-blue": "#1e40af"}}}}
)

# Create a UI with Tailwind classes
app_ui = tailwind.page(
    tags.h1("Hello Tailwind", class_="text-3xl font-bold text-custom-blue")
)

def server(input, output, session):
    pass

app = App(app_ui, server)

Requirements

  • Python >=3.7
  • shiny >=0.5.0
  • htmltools >=0.4.0

License MIT

Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -am 'Add my feature'
  4. Push to the branch: git push origin feature/my-feature
  5. Submit a pull request

Support For issues and feature requests, please use the issue tracker.

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

shiny_tail-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shiny_tail-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file shiny_tail-0.1.0.tar.gz.

File metadata

  • Download URL: shiny_tail-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for shiny_tail-0.1.0.tar.gz
Algorithm Hash digest
SHA256 778b6b4a5b212ed2e697c7e7230ac814a0825ad1da0d456559d559d320ab3c8d
MD5 6fca26421c4392be5119b9f5fafea1fd
BLAKE2b-256 00e302f7ec9fc6343767961c4e8a986f2a0dca6d8f6e018a593298036cad02d1

See more details on using hashes here.

File details

Details for the file shiny_tail-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: shiny_tail-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for shiny_tail-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 978733e1d16d82a18c1e02002ed2e2473b65ba2ec4b3bae130456ed75f046588
MD5 2ed6014a5e13b1edf2ddc95fb8105a32
BLAKE2b-256 38ca2213f599abd8a93fbbda92b51b52b4f561811914a5ed83700918a846549f

See more details on using hashes here.

Supported by

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