macaron-elements / macaron

Visual component editor for Web development

Home Page:https://macaron-elements.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Macaron

Screenshot

example workflow Pulls Chat on Discord Twitter Follow

Macaron is an open-source design tool to visually create Web Components, which can be used in most Web frameworks, or in vanilla HTML/JavaScript.

Its goal is to allow you to create and continuously maintain components visually, and make Web frontend development easier and more fun.

  • πŸ–ŠοΈ Easy-to-use visual editor
  • πŸ§‘β€πŸ’» Runs in Visual Studio Code
  • 🌐 Framework-agnostic
  • πŸ“₯ Import Web Components
  • πŸ—’οΈ Clean File Format
  • 🎨 Copy-paste from Figma (WIP)

Demo

Usage

Roadmap

  • Better component usability
    • Better access to inner elements (#125)
    • Per-element pseudoclasses / pseudoelements (#124)
    • Improve server side rendering
      • Macaron currently compatible with SSR by Next.js or other tools but component contents are renderered in client side

Development

Setup

# Clone
git clone --recursive git@github.com:macaron-elements/macaron.git

cd macaron

# Install dependencies
yarn

# Build
yarn build

Project Structure

  • /packages/editor - The Macaron Editor
  • /packages/paintkit - The submodule for the paintkit library
  • /packages/vscode - The VS Code extension that provides Macaron as a custom editor
  • /packages/figma - The Figma plugin for Macaron
  • /packages/compiler - The compiler that converts Macaron files to Web Components
  • /packages/loader-vite - The Vite plugin to import Macaron files directly from JS/HTML
  • /packages/docs - The Website and documentation

This project uses Yarn Workspaces.

Start devservers

yarn dev

Launch VS Code extension

  • Make sure yarn dev is running
  • Open the root directory in VS Code
  • Press F5 (or menu Run β†’ Start Debugging)

Test

yarn test

# Update snapshots
yarn test -u

Release a new version

Version bump

GH_TOKEN={GitHub PAT with repo: scope} yarn bump-version # this runs `lerna version --conventional-commits --create-release github`

Publish NPM packages

yarn build
cd packages/compiler
yarn publish
cd ../..
cd packages/loader-vite
yarn publish

Publish the VS Code extension

Log in to vsce before publish

yarn build
cd packages/vscode
yarn vsce publish

Analytics

Macaron uses Plausible to collect anonymous analytics data.

Dashboards

About

Visual component editor for Web development

https://macaron-elements.com/

License:MIT License


Languages

Language:TypeScript 94.8%Language:JavaScript 2.6%Language:Vue 1.7%Language:HTML 0.5%Language:CSS 0.3%