Giter Site home page Giter Site logo

grienauer / wingsuit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wingsuit-designsystem/wingsuit

0.0 1.0 0.0 106.23 MB

Twig for Storybook

License: GNU General Public License v2.0

Shell 0.64% JavaScript 16.98% PHP 1.54% HTML 0.13% CSS 1.26% TypeScript 35.94% Twig 42.35% EJS 1.17%

wingsuit's Introduction

Tailwind Jit and Postcss 8

In Version`Wingsuit V1 PostCss8 and Jit compiler becomes default.

To upgrade your existing project:

Step 1:

yarn add -D @storybook/addon-postcss
yarn add -D @wingsuit-designsystem/preset-postcss8
yarn add @tailwindcss/jit

# Replace
"tailwindcss": "npm:@tailwindcss/postcss7-compat"
with:
"tailwindcss": "^2.0.4"

Step 2:

Step 3:

Adjust your postcss config. See https://github.com/wingsuit-designsystem/wingsuit/blob/master/starter-kits/tailwind/postcss.config.js

Upgrade from BETA.41 to rc.1

Breaking changes:

  • From knobs to controls: Replace @storybook/addon-knobs to @storybook/addon-controls in your apps/storybook/main.js
  • Twig functions pattern_preview and pattern are now compatible with UI Patterns functions The arguments order changed from pattern, variant, variables to pattern, variable, variant. So search for all pattern_preview and pattern methods and reorder the variables.

Build bulletproof TWIG Components in Storybook

  1. Describe, develop and test your Pattern in storybook with twing.
  2. Use the same pattern in Drupal with UI Patterns without any presenter pattern
  3. Starterkits for:
    • Tailwind + Alpinejs
    • Boostrap + jQuery
  4. Bundled Webpack base configuration to keep everything up to date.

Documentation

Check out the Wingsuit documentation for more information.

Prerequisites

Quickstart

  1. To install run inside themes/custom:
npx @wingsuit-designsystem/cli init
  1. Then cd wingsuit/ and run:

NPM

To start storybook

npm run dev:storybook

To start drupal

npm run dev:drupal

YARN

To start storybook

yarn dev:storybook

To start drupal

yarn dev:drupal

Generate new pattern

yarn ws generate-component

Develop Wingsuit

Help?

I am looking for help. You can ping me at drupaltwig@Slack

To develop Wingsuit you need yarn.

  1. Clone repository:
git clone [email protected]:wingsuit-designsystem/wingsuit.git
cd wingsuit
yarn bootstrap
yarn dev
  1. To start storybook cd starter-kits/tailwind and run:
yarn dev:storybook
  1. To start drupal cd starter-kits/tailwind and run:
yarn dev:drupal
  1. To build docs
yarn dev:drupal

Wingsuit is inspired by Particle from Phase2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.