GithubHelp home page GithubHelp logo

lfender6445 / tailwind-styleguide Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rentpath/tailwind-styleguide

0.0 1.0 0.0 898 KB

Dynamically construct a visual styleguide for your own custom Tailwind CSS configuration.

Home Page: https://windsock.app

License: Other

TypeScript 68.49% HTML 1.34% JavaScript 30.13% Makefile 0.02% CSS 0.01%

tailwind-styleguide's Introduction

Windsock - A Tailwind Styleguide Builder

https://windsock.app

โœจ Bootstrapped with Create Snowpack App (CSA). Icons made by Freepik from www.flaticon.com

Tailwind is a powerful tool with some awesome out-of-the-box presets for spacings, colors, font sizes, box shadows, etc. But it's also highly configurable, and its documentation only references the built-in standards in its code samples.

Windsock was built after dealing one too many times with the frustration of cross-referencing the Tailwind docs with your project or organization's tailwind configuration file.

If you've ever found thinking something along the lines of...

Why does px-24 not work? It says right here in the documentation it's valid. Oh wait, we defined a new spacing grid for our project that worked better for our designs. Okay so what spacings DO I have to work with?

Then Windsock is the tool for you.

Windsocks are flags that can be used to visually show how the wind is blowing.

Using the App

Simply upload your project's built Tailwind CSS file in the upload dialog on the app's splash page. Alternatively, you can use the default Tailwind config as a handy quick reference! Everything is handled client side, so you aren't actually sending anyone your CSS file. It's all parsed on your end.

Integrating with your CI

Windsock is both a web app and an installable Node app. If your organization would like to integrate Windsock into your CI pipeline to have a statically hosted and always up-to-date reference for the developers in your organization, don't even sweat it. Windsock has it covered.

npm install -g windsock-cli

# Windsock can read from a file, or from stdin
# Windsock can write its output to a file, or to stdout

# e.g.
cat ./my-tailwind.css | windsock > ./styleguide.html

# or
windsock -i ./my-tailwind.css -o ./styleguide-html

Windsock is under active development. Only a small fraction of Tailwind's massive surface area has been covered in the style guide builder. There are definitely bugs and edge cases to be uncovered. Contributions are always welcome.

tailwind-styleguide's People

Contributors

joseph-walker avatar

Watchers

 avatar

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.