Thonny CSS Highlighter
A small Thonny front-end plug-in that adds syntax highlighting for .css files.
It is designed primarily for viewing and editing CSS in teaching projects where
HTML, CSS, and Python files are kept together.
Highlighted constructs
- block comments and quoted strings
- selectors, classes, IDs, pseudo-classes, and pseudo-elements
- property names and custom properties
- at-rules and
!important - numbers, dimensions, percentages, and hexadecimal colors
- CSS functions such as
var(),calc(),clamp(), andrgb() - common CSS value keywords
- nested rules and common rule-list at-rules such as
@media,@supports,@container,@layer, and@keyframes
The plug-in reuses Thonny's standard syntax-theme tags. Consequently, CSS highlighting follows the syntax theme selected under Tools → Options → Theme & Font.
Install the wheel
- Open Thonny.
- Select Tools → Manage plug-ins.
- Choose Install from local file.
- Select
thonny_css_highlighter-0.1.0-py3-none-any.whl. - Restart Thonny.
- Open a
.cssfile.
The source directory can also be installed during development:
python -m pip install -e .
Run tests with:
python -m pytest
Compatibility
The package requires Python 3.10 or newer and targets Thonny 4.1 through 5.x. It
uses Thonny's current plug-in convention: a package below the thonnycontrib
namespace with a parameterless load_plugin() function.
Implementation note
Thonny's built-in colorer is Python-specific and clears the standard theme tags
for non-Python files. This plug-in bypasses that colorer only for editors whose
file type is css, then applies its own tolerant lexer. Other editor types keep
Thonny's normal behavior.
Metadata
Release files for thonny-css-highlighter 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| thonny_css_highlighter-0.1.0.tar.gz | 10.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thonny_css_highlighter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / thonny_css_highlighter-0.1.0.tar.gz
| Download URL | thonny_css_highlighter-0.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5deb21e6fe6f5e4226ebca6fa12a2e196827dc76e26104415c1b83028da8722a
|
|
BLAKE2b-256 checksum How to use checksums |
0c14a301f8e199bfe1e5300c3528874ddad7ec2d064bc9a4b2c45cf36f8f99c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.
Transparency logRelease files / thonny_css_highlighter-0.1.0-py3-none-any.whl
| Download URL | thonny_css_highlighter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2401686d43e0042f53a78e93002cce08acd1ae39a019718203974b88200095bc
|
|
BLAKE2b-256 checksum How to use checksums |
2c27432526f591386b92a6f8e969430e5c849be926eb376e86710e81582ad9af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.
Transparency logSecurity for thonny-css-highlighter 0.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for thonny_css_highlighter-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.
Transparency logA 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.