0.8.20 • Published 9 months ago

@juxio/cli v0.8.20

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Features

  • Write CSS in JS, with zero runtime - all styles are extracted and calculated at build time
  • Full support for design tokens and themes, powered by @juxio/design-tokens
  • Utility first - write utilities (custom css properties) which can then be used to style your components
  • CLI for easy management of your design tokens, themes, utilities and styles
  • Type-safe - autocompletion for your design tokens, breakpoints, and utilities
  • Full interpolation support when generating styles
  • Pull components and design tokens from Jux design tool

Documentation

For documentation, visit docs.jux.io.

Quickstart

Jux is a PostCSS plugin, so you can use it with any build tool that supports PostCSS.

Install Jux CLI:

npm install -D @juxio/cli postcss

Initialize a new project. This will install the necessary dependencies, and create jux.config.ts and postcss.config.js files in your project root.

npx jux init --postcss

Configure your include files:

export default {
  preflight: true,
  include: ['./src/**/*.{js,jsx,ts,tsx}', './pages/**/*.{ts,tsx}'],
  exclude: [],

  /* The core tokens of your design system */
  core_tokens: {},

  /* The themes for your design system */
  themes: {},
};

Add Jux’s @layer directive to your main CSS file:

@layer juxbase, juxtokens, juxutilities;

Start your build process and generate your CSS:

npx jux generate css -o styles.css

Include the generated CSS in your project:

import './styles.css';

import { css } from '@juxio/css';

export default function Home() {
  return (
    <div
      className={css({
        color: 'violet',
        '&:hover': {
          color: 'darkviolet',
        },
      })}
    >
      Hello from Jux 🤖
    </div>
  );
}

Community

Love the project? ♥️ Need help or have a question? Join our Discord community or email us at squad@jux.io and say hi!

0.8.9

11 months ago

0.8.8

11 months ago

0.8.5

11 months ago

0.8.4

11 months ago

0.8.7

11 months ago

0.8.20

9 months ago

0.8.6

11 months ago

0.8.12

11 months ago

0.8.11

11 months ago

0.8.14

10 months ago

0.8.13

10 months ago

0.8.10

11 months ago

0.8.19

10 months ago

0.8.16

10 months ago

0.8.15

10 months ago

0.8.18

10 months ago

0.8.17

10 months ago

0.8.1

11 months ago

0.8.0

12 months ago

0.8.3

11 months ago

0.8.2

11 months ago

0.7.8

1 year ago

0.7.7

1 year ago

0.7.6

1 year ago

0.7.5

1 year ago

0.7.4

1 year ago

0.7.3

1 year ago

0.7.2

1 year ago