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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

jac_super-0.1.17-py3-none-any.whl (879.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jac_super-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 879.9 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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 97a8f63c3fd8c0c7ef493df3b159c9096f888e7c8e0ad77d8c47abcfc9d278fa
MD5 7558ee263f17afc7bfaf5626813dd8f6
BLAKE2b-256 d654cc4f7f411e7f2377f74bc066eb8c1cc15daf2d5f28883fa69a27f4cfcd6a

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