Skip to main content

shadcn-qt (Python)

The free Core package is published at PyPI. The distribution name is shadcn-qt; its normalized Python import name is shadcn_qt. Python 3.9 or newer is required.

Core uses the classic shadcn/ui new-york visual profile with the Zinc light/dark palette. STYLE_PROFILE and BASE_COLOR expose that identity to applications and tooling.

For a new environment, install with exactly one Qt binding extra:

This is an independent Qt implementation and is not affiliated with or endorsed by the upstream shadcn project. It is published by Felorx.

python -m pip install "shadcn-qt[pyside6]"
# or: pyqt6 | pyside2 | pyqt5

If an existing project already has PySide or PyQt, preserve it and install Core without a binding extra:

python -m pip install shadcn-qt

Verify the installed version with:

python -c "from importlib.metadata import version; print(version('shadcn-qt'))"

For source development, use python -m pip install -e ".[pyside6,dev]" in this directory.

Regenerate styles after editing packages/design-tokens/tokens.json:

python ../../tools/token-codegen/generate.py

Global and custom themes

from shadcn_qt import apply_theme, configure, create_theme

brand = create_theme(
    "brand",
    base="light",
    colors={"primary": "#7c3aed", "ring": "#8b5cf6"},
    radius={"md": "10px"},
)
configure(theme=brand, extra_qss="QWidget#sidebar { border: none; }")
apply_theme()  # uses the current QApplication

JSON theme files can be loaded with load_theme("brand.json").

High-DPI startup

Configure DPI handling before creating QApplication. This keeps fractional Windows display scales such as 125%, 150%, and 175% exact instead of allowing Qt 5 to round them to a larger integer scale:

from shadcn_qt import apply_theme, configure_high_dpi
from shadcn_qt._qt import QtWidgets

configure_high_dpi()
app = QtWidgets.QApplication([])
apply_theme(app, "light")

Qt 6 already enables high-DPI rendering; the initializer selects precise fractional scaling. On Qt 5 it also enables high-DPI widgets and pixmaps. Do not combine normal Windows display scaling with a production QT_SCALE_FACTOR; Qt multiplies that override by the native scale.

Existing native widgets

Apply full default shadcn-qt styling to the complete existing and future QtWidgets family without replacing classes. Known controls use component-specific rules; uncommon or third-party QWidget subclasses receive a neutral themed fallback:

from shadcn_qt import apply_theme, enable_native_widget_styling

enable_native_widget_styling(app)
apply_theme(app, "light")

Use adopt_native_widgets(page) for one subtree, and disable_native_widget_styling(app) to remove unchanged adapter defaults. Set shadcn_qt_native_styling=False on custom-painted or third-party widgets that should be left alone.

Known QtWidgets receive dedicated new-york + Zinc rules. QSS-inexpressible checkbox/radio glyphs, editor arrows, calendar cells, and elevation use reversible adapter enhancements. The repository Gallery includes four pages built exclusively from stock QtWidgets plus eight light/dark screenshot baselines.

Qt Designer

Install the recommended plugin host, then launch Designer with the registration path already configured:

pip install "shadcn-qt[designer]"
shadcn-qt-designer

Use from shadcn_qt.designer import load_ui to load the saved form under PySide or PyQt.

The public package exports 66 Qt-native classes covering the current named shadcn/ui catalog plus the Chrome-style TabPane convenience. Compound widgets retain normal Qt signals, models, layouts, and Designer-editable properties.

Core and Pro

This distribution is shadcn-qt Core. The separately ordered private shadcn-qt-pro distribution uses the shadcn_qt_pro import name. The shadcn_qt.pro namespace in Core only forwards to that package when it is installed; no Pro implementation or customer entitlement is included in this wheel. Core commercial rights and Pro access are separate Order Form items.

License

Core is publicly downloadable at no cost under GPL-3.0-only. Proprietary projects need a valid shadcn-qt commercial Order Form instead. Installing from PyPI does not grant commercial rights. The commercial license does not include the separate Qt, PySide, or PyQt licenses. See the LICENSE, LICENSES, and NOTICE.md files included in every wheel and source distribution.

Download files

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

Source Distribution

shadcn_qt-0.2.2.tar.gz (115.8 kB view details)

Uploaded Source

Built Distribution

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

shadcn_qt-0.2.2-py3-none-any.whl (110.7 kB view details)

Uploaded Python 3

File details

Details for the file shadcn_qt-0.2.2.tar.gz.

File metadata

  • Download URL: shadcn_qt-0.2.2.tar.gz
  • Upload date:
  • Size: 115.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for shadcn_qt-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1f1d2667554341bf006a64117734d460013d29c6f85283d71091988ea055dc09
MD5 9ee1ad6b8721e3072655ebe652434142
BLAKE2b-256 3653624a179547ed259e7d282c170569be68d4db19dc6e0eee38385af068be27

See more details on using hashes here.

File details

Details for the file shadcn_qt-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: shadcn_qt-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 110.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for shadcn_qt-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 499b50f7f946c5092d58fa5fa0a7f6d2158563e220dde49891087c7cd685349b
MD5 d5ba253fdc4c370e59e211dbbfc6fdac
BLAKE2b-256 d486b32dec8b7397f0b537634ec4729d7061f98301c09e3387d2e4ef3456b827

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

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