Git Product home page Git Product logo

tailwindcss-figma-kit's Introduction

Figma Kit for Tailwind CSS

Information

Click the banner or here to get to the project

Limitations

  • Font styles need to be overwritten separately
  • Figma does not support spread shadow styles

Changelog (dd/mm/yy):

  • 24.11.2020: Update to Tailwind v2 colors
  • 10.08.2020: Update Heroicons
  • 30.07.2020: Add TailwindUI colors
  • 19.07.2020: Rename default colors
  • 25.04.2020: Update Heroicons
  • 12.04.2020: Fix line-height
  • 27.02.2020: Update Heroicons
  • 04.01.2020: Update to Auto Layout

Alternatively this repo also contains a .fig file that can be imported into Figma.

Need an easy way to import tailwind config styles? Check my Figma Plugin

Icons included: Heroicons UI by Steve Schoger and Adam Wathan

Screenshots

Colors

Typography

Buttons

Pills

Input

Shadows

Navigation

Forms

Alerts

Cards

Heroicons Outline

Heroicons Solid

Container

Spacing

Grid

tailwindcss-figma-kit's People

Contributors

ecklf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tailwindcss-figma-kit's Issues

All colour styles are prefixed with `default/`

When I import my config using the plugin, I need to add "default" as the prefix in order to overwrite the built-in styles. I'd prefer these to not have this prefix - this will help people using the plugin to overwrite the styles in the .fig.

The font styles don't include default as a prefix.

Update to Tailwind v2

Tailwind v2 is coming out today. I'll update the color scheme and adjust the components accordingly.

Since adding the colors as a preview by hand is quite a tedious process, I'll be integrating something to automate it in my Figma plugin.

  • Default Colors
  • Components
  • Spacing
  • Container
  • New Plugin features

Card with header and footer/Desktop Not scaling correctly

Hello, thanks for all the components!
Our team found an issue while scaling the Card with header and footer/Desktop.

Basically the footer stays up and the content box does not grows with the scaled card.
Screen Shot 2021-04-13 at 6 20 00 PM

We fixed it by doing this:
Screen Shot 2021-04-13 at 6 21 02 PM

Now it scales :)
Screen Shot 2021-04-13 at 6 21 29 PM

Thank you.

set tailwind's default line-height

Problem

line height of styles is not the same as tailwind.

Expected

Styles use same line-height as tailwind: 150%

Details

Tailwind sets 1.5 as the default line height in the base.css overwrite.

 * Tailwind custom reset styles
 */

/**
 * 1. Use the user's configured `sans` font-family (with Tailwind's default
 *    sans-serif font stack as a fallback) as a sane default.
 * 2. Use Tailwind's default "normal" line-height so the user isn't forced
 *    to override it to ensure consistency even when using the default theme.
 */

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
  line-height: 1.5; /* 2 */
}

The tailwindcss-figma-kit currently uses Auto which represents 100% of the font defined line-height:

Text boxes also start with automatic line height. When you switch between the fonts, we will adjust the line height to match the font’s default line height. That will make it easier to explore different fonts and have the text feel great either way. We won’t do this, of course, if you specify line height in pixels or as percents.

(source)

Changing colours

`is there a way I can change background colours for all my components at once without editing the existing styles?
Eg: if I want my background to be light blue 500 instead of gay600 in figma , where can I make changes that would change everywhere with one click?

Gray/Grey

devs use "grey" in the code, but the file uses "gray", which can introduce confusion in handoff.

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.