Skip to main content

Enhanced console output for Jac CLI with Rich formatting

Project description

Jac Super

Enhanced console output plugin for Jac CLI with Rich formatting, plus shadcn-style UI components for Jac projects.

Installation

pip install jac-super

Once installed, the plugin automatically registers and enhances all Jac CLI command output.

Usage

No configuration required. After installation, jac-super automatically enhances output for all Jac commands:

  • jac create - Enhanced project creation messages
  • jac start - Server startup and status messages
  • jac run - Formatted execution output
  • jac config - Styled configuration display

Environment Variables

Variable Effect
NO_COLOR Disables colors (fallback to base console)
NO_EMOJI Disables emojis (uses text labels)
TERM=dumb Disables both colors and emojis

Shadcn Components

jac-super also brings shadcn/ui-style components to Jac projects. The components, styles, and color themes all ship bundled with the plugin (under jac_super/shadcn/registry/), so create, theme, add, and remove all work fully offline -- no network calls.

Create a themed project

jac create --use jac-shadcn --theme rose --font inter myapp

Scaffolds a themed starter (generated global.css, lib/utils, button/card, and a main.jac demo). All theme flags are optional: --style (nova|vega|maia|lyra|mira), --baseColor, --theme, --font, --radius, --menuAccent. The chosen values are written to [jac-shadcn] in jac.toml.

Re-theme in place

jac retheme --theme emerald --font outfit   # switch accent + font
jac retheme --style mira                     # switch style + restyle installed components
jac retheme                                  # regenerate global.css from jac.toml

jac retheme regenerates global.css from the [jac-shadcn] config (with optional flag overrides) and, when --style changes, re-resolves the components already in components/ui/.

Add / remove components

jac add --shadcn button card dialog    # resolve + install (auto-resolves peer deps)
jac remove --shadcn button dialog      # delete from components/ui/

Adding components resolves the chosen style's Tailwind classes from the bundled sources, writes .cl.jac files to components/ui/, updates [dependencies.npm] in jac.toml, and creates lib/utils.cl.jac with the cn() helper if missing. The component set under jac_super/shadcn/registry/ is a vendored snapshot of the jac-shadcn repo.

Configure the style

Add a [jac-shadcn] section to your project's jac.toml:

[jac-shadcn]
style = "nova"   # nova | vega | maia | lyra | mira

Use components in your code

cl import from "./components/ui/button" { Button }

cl {
    def:pub MyPage() -> JsxElement {
        return <div>
            <Button variant="outline">Click me</Button>
        </div>;
    }
}

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

jac_super-0.1.21.tar.gz (183.1 kB view details)

Uploaded Source

Built Distribution

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

jac_super-0.1.21-py3-none-any.whl (880.8 kB view details)

Uploaded Python 3

File details

Details for the file jac_super-0.1.21.tar.gz.

File metadata

  • Download URL: jac_super-0.1.21.tar.gz
  • Upload date:
  • Size: 183.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jac_super-0.1.21.tar.gz
Algorithm Hash digest
SHA256 739ce5da6a8cf9bb62993f926ed697b9422730be3ed4751ec102cfa496c99659
MD5 3fc991f2a28a67186ba57f441bc1eb04
BLAKE2b-256 ec13d8b8d2a276186516b8d5e25dca750012fdeb3339e47c8b8dded3a66ef579

See more details on using hashes here.

File details

Details for the file jac_super-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: jac_super-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 880.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jac_super-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 58e8cf9618c04a8f0c355f065fb0a99e9b907a19b667dddc1a42c4369b4c08fa
MD5 1fecd4686633dc7375c4294947bb748c
BLAKE2b-256 dccd3b8dcf63504ffa3e12109463854888bb497d81a6fa67d582ba123ecbb39f

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