CLI for the Titus CSS toolkit; it generates the base CSS files.
Project description
Titus CLI
Titus is a toolkit composed by a CSS template system, a theming tool and a developer companion, targeted to the CSS artisan that likes to work by hand, with full control over the code, without sacrificing simplicity and ease of use.
This is the CLI tool that will generate the Titus CSS system files for any kind of frontend project that uses CSS.
Features
- Generate CSS theme files with a predefined structure.
- Define and manage CSS variables and templates.
- Automatically generates a complete CSS system with:
- a CSS reset (the classic http://meyerweb.com/eric/tools/css/reset/);
- absolute and relative general sizes;
- absolute and relative font sizes;
- a fully fledged five colors palette, with tints and shades for every color, based on the user's main color input;
- a border, shadows and breakpoints pre-established system.
- And more, very soon!
Requirements
The Titus CLI tool is distributed as a Python package, and it requires Python 3.8 or upwards. It is designed to work in combination with the Visual Studio Code Extension Titus Companion, which greatly improves the developer experience by providing a keyboard shortcut to easily enter Titus variables.
Usage
Install the Titus CLI by downloading it from the Python Package Index:
Once installed in the system, go to the target folder in which the main CSS files for the project will be: usually, these are named styles, stylesheets, css, or similar. Once there, enter:
titus init
You will be prompted for a main color, and Titus will generate a full CSS system based on that input.
Then, import the reset.css and titus-system.css files from your other CSS files:
@import(reset.css);
@import(titus-system.css);
You can also add them via HTML tags, or using import in a React application, e.g.
Using the Titus system along the Companion in Visual Studio Code gives access to the full power of Titus by pressing shift + f7, making much easier to enter Titus variables names.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file titus_cli-0.1.0.tar.gz.
File metadata
- Download URL: titus_cli-0.1.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35b33796340d5f78ff48d0ca5777bb671d6bf2f3e6fb164f538538f3e38e7233
|
|
| MD5 |
ddfa1069da2e21e66bbf989f6c56403a
|
|
| BLAKE2b-256 |
5e50b4627f9ea0b184bb5be2536a5b49a8ada565c9f32ee42b45424a39ea7847
|
File details
Details for the file titus_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: titus_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b2aa85ee87805b3454aa67ec93421fb559fc59af7852ae5a04d1fc48f0aac5
|
|
| MD5 |
a58cdb5c78c5372d7821b97f7b51e0ed
|
|
| BLAKE2b-256 |
845df37595f21c240667f2563906f56775e381f78c51c673650726652c4d258b
|