All Projects → jan-dh → Sketch Tailwind

jan-dh / Sketch Tailwind

Licence: mit
A plugin that tries to bridge the gap between designs and code. Sketch Tailwind lets you export aspects of a design made in Sketch to a javascript theme file that you can import into your TailwindCSS config

Projects that are alternatives of or similar to Sketch Tailwind

Magic Buttons Sketch Plugin
Be a wizard! Automatically resize and relabel buttons with padding sizes like CSS.
Stars: ✭ 115 (-30.72%)
Mutual labels:  sketch-plugin, sketch
Sketch Batch Create Symbols
A plugin for Sketch to convert selected layers to individual symbols.
Stars: ✭ 134 (-19.28%)
Mutual labels:  sketch-plugin, sketch
Sketch Potrace
Potrace for Sketch is a bitmap tracing plugin. It converts bitmap images into monochrome vector graphics.
Stars: ✭ 122 (-26.51%)
Mutual labels:  sketch-plugin, sketch
Kitchen
Powerful sketch plugin for design cooperation 🍳🍳🍳
Stars: ✭ 103 (-37.95%)
Mutual labels:  sketch-plugin, sketch
Sketch Navigator
Artboard navigation (with autocomplete) for Sketch.
Stars: ✭ 161 (-3.01%)
Mutual labels:  sketch-plugin, sketch
Overrideit Sketchplugin
Overrideit is sketch plugin that allow designers to search in overridelist and overrides dropdowns, and with many other features.
Stars: ✭ 113 (-31.93%)
Mutual labels:  sketch-plugin, sketch
Exporter
A Sketch plugin that exports Sketch artboards into clickable HTML file.
Stars: ✭ 131 (-21.08%)
Mutual labels:  sketch-plugin, sketch
Sketch Make Long Shadow
A plugin for Sketch to create long shadows of a user defined length from a shape.
Stars: ✭ 92 (-44.58%)
Mutual labels:  sketch-plugin, sketch
Html Sketchapp
HTML to Sketch export solution
Stars: ✭ 1,811 (+990.96%)
Mutual labels:  sketch-plugin, sketch
Fake Chinese Name For Sketch
生成随机中文人名的 Sketch 插件
Stars: ✭ 141 (-15.06%)
Mutual labels:  sketch-plugin, sketch
Egmont Plugin
Sketch plugin for create squircle shapes. No longer maintained.
Stars: ✭ 102 (-38.55%)
Mutual labels:  sketch-plugin, sketch
Symbol Instance Locator
Locate all instances of a selected symbol or instance.
Stars: ✭ 150 (-9.64%)
Mutual labels:  sketch-plugin, sketch
Photo Grid
A Sketch plugin that can size layers to common photo dimensions and scale them to fit in rows or columns.
Stars: ✭ 100 (-39.76%)
Mutual labels:  sketch-plugin, sketch
Sketch Select
🖱 Make it much more convenient to select layers with similar attributes.
Stars: ✭ 114 (-31.33%)
Mutual labels:  sketch-plugin, sketch
Unused Style Remover
Remove unused layer and text styles.
Stars: ✭ 94 (-43.37%)
Mutual labels:  sketch-plugin, sketch
Sketch Copy Paste Position Size
A Sketch plugin that lets you easily copy & paste width, height, x & y values from and to objects
Stars: ✭ 130 (-21.69%)
Mutual labels:  sketch-plugin, sketch
Paster
Pasting a text data from a clipboard directlly to Sketch text layers [Sketch plugin]
Stars: ✭ 88 (-46.99%)
Mutual labels:  sketch-plugin, sketch
Sketch Dockpreview
A Sketch plugin that lets you preview your current artboard in the Dock.
Stars: ✭ 90 (-45.78%)
Mutual labels:  sketch-plugin, sketch
Logodrop
A Sketch Plugin to get brand logos right into Sketch App.
Stars: ✭ 140 (-15.66%)
Mutual labels:  sketch-plugin, sketch
Sketch Palette Generator
Output a JSON colour palette to Sketch 💎
Stars: ✭ 148 (-10.84%)
Mutual labels:  sketch-plugin, sketch

Sketch Tailwind

Note: This plugin will not be updated. I don't own a Sketch licence anymore and plugin development for Sketch is a bit of a pain tbh. Have made a Figma version of this plugin, you can find it over here. That version is still being maintained and input for new features is welcome in the repo.

A plugin that tries to bridge the gap between design and code. Sketch Tailwind lets you export aspects of a design made in Sketch to a javascript theme file that can easily be used with Tailwind CSS.


Table of Contents

Installation

Download the ZIP-folder. After extracting, double-click the 💎sketch-tailwind-plugin.sketchplugin file.

Usage

Creating your theme

The plugin gets it's info from the Layer Styles and Text Styles. At this point it picks up:

  • colors
  • font-families
  • text-sizes

Colors

For the colors the plugin will look at all your Layer Styles and takes each color, using the last part of it's name (behind the last /). This way you can still organize your colors in Sketch using subfolders, while only exporting the actual color name. Within the plugin you can add some extra colors if you need to. Might add a color-picker if people would like to see that.

Font-families

The plugin will pick up all font-families used in your Text Layers.

Text-sizes

All the different font-sizes you use in your Text Styles will be picked up by the plugin. You can pick a base font-size and the rest of the font-size names are calculated accordingly. The logic used:

...
'3xs'
'2xs'
'xs'
'sm'
'base'
'lg'
'xl'
'2xl'
'3xl'
...

The font-sizes the plugin spits out will also be converted into a rem based scale (with 16 as your base).

Importing your theme

When you export the theme it saves a file with your theme in a variable theme and there's an export available in the file. Import the theme.js file in to your tailwind.js configuration file.

import theme from './theme';

Using the spread operator at the end of each property you can add the colors, fonts and font-sizes to your config.

let colors = {
  'transparent': 'transparent',
  ...
  ...theme.colors,

Contributing

All feedback is welcome. Feel free to submit issues or suggestions.

Roadmap

  • 🎨 Provide color scale support
  • 🚀 Add more possible exports

License

This project is licensed under the terms of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].