Skip to main content

A Python library for generating CSS in a Tinker-like style.

Project description

TinkerCSS

TinkerCSS is a Python library for generating CSS in a Tinker-like style. It allows you to create CSS styles using a Pythonic interface.

Installation

You can install TinkerCSS via pip:

pip install tinkercss

Example

from tinkercss import TinkerCSS

style = TinkerCSS()
css_code = (
    style.set_background('blue')
         .set_font_size('16px')
         .set_margin('10px')
         .set_padding('5px')
         .set_border('1px solid black')
         .generate_css()
)

print(css_code)

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

tinkercss-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

tinkercss-0.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tinkercss-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for tinkercss-0.1.0.tar.gz
Algorithm Hash digest
SHA256 738cb036618f732ee29d4e42c3fe83c714b4bdcda914c9df1120d174c3aee0df
MD5 c33bfe2b4666e5b66eeca9874ea9dbfe
BLAKE2b-256 0c43ab07f0b2dccb18f34da9a5739c0740fb02a2498bdc29b36c1a88930ebcce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tinkercss-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for tinkercss-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8daff623d8b8968d9397eecd0d2d6a3c47927cb221cb01fe902994dd31472c95
MD5 408fd0d7f18465196044477415414da5
BLAKE2b-256 21462d3489edf730a8f474daeee9bb20c1c71ea94efc1d47ab59ba44198a89f2

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