All Projects → jan-dh → figma-tailwindcss

jan-dh / figma-tailwindcss

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

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to figma-tailwindcss

figma-plugin-helpers
A collection of useful helper functions to import to your Figma plugin project
Stars: ✭ 161 (+155.56%)
Mutual labels:  figma, figma-plugin
assistant
🤖 Bring your Figma design & development pipeline to the next level - with design to code, in-design-content-management, component management, tools for faster design
Stars: ✭ 451 (+615.87%)
Mutual labels:  figma, figma-plugin
Figmatocode
Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI.
Stars: ✭ 2,299 (+3549.21%)
Mutual labels:  figma, tailwindcss
figma-hosted-export
Copy hosted image URLs for any frame inside Figma
Stars: ✭ 39 (-38.1%)
Mutual labels:  figma, figma-plugin
figma-plugins-stats
📈 A CLI to get live and historical stats for your Figma plugins
Stars: ✭ 53 (-15.87%)
Mutual labels:  figma, figma-plugin
figma-static-localizer
A Figma plugin for static localization
Stars: ✭ 30 (-52.38%)
Mutual labels:  figma, figma-plugin
figma-responsify
⚡️A Figma plugin to quickly test your designs across multiple device sizes.
Stars: ✭ 51 (-19.05%)
Mutual labels:  figma, figma-plugin
figma-plugin-typescript-boilerplate
Figma plugin TypeScript boilerplate to start developing right away
Stars: ✭ 43 (-31.75%)
Mutual labels:  figma, figma-plugin
phosphor-figma
A flexible icon family for Figma
Stars: ✭ 17 (-73.02%)
Mutual labels:  figma, figma-plugin
top-nuxt3
Full stack Nuxt 3 Template starter with Supabase and Tailwindcss
Stars: ✭ 59 (-6.35%)
Mutual labels:  tailwindcss
gridsome-starter-liebling
Gridsome starter based on the Liebling theme for Ghost. Content is added via markdown, while Tailwind CSS is used for the layout/styling.
Stars: ✭ 21 (-66.67%)
Mutual labels:  tailwindcss
demo-tailwindcss
🎐 TailwindCSS 2 + Oruga demo
Stars: ✭ 15 (-76.19%)
Mutual labels:  tailwindcss
phinger-cursors
Most likely the most over engineered cursor theme.
Stars: ✭ 332 (+426.98%)
Mutual labels:  figma
boring-avatars
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based avatars from any username and color palette.
Stars: ✭ 3,582 (+5585.71%)
Mutual labels:  figma
figma-plugin-react-template
Quickstart your Figma Plugin with this template and tooling.
Stars: ✭ 199 (+215.87%)
Mutual labels:  figma-plugin
merakiui
Tailwind CSS components that support RTL languages & fully responsive based on Flexbox & CSS Grid with elegant Dark Mode 🚀 ☄️.
Stars: ✭ 1,185 (+1780.95%)
Mutual labels:  tailwindcss
db-portfolio
My personal portfolio website.
Stars: ✭ 97 (+53.97%)
Mutual labels:  tailwindcss
memento-svelte-electron-typescript
Template to create a desktop app with Svelte, TailwindCSS, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)
Stars: ✭ 27 (-57.14%)
Mutual labels:  tailwindcss
apps
daily.dev application suite
Stars: ✭ 253 (+301.59%)
Mutual labels:  tailwindcss
rebuilding-acquia
A clone of Acquia's dashboard, built with Vue.js and Tailwind CSS.
Stars: ✭ 20 (-68.25%)
Mutual labels:  tailwindcss

Figma Tailwindcss

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


Table of Contents

Usage

Creating your theme

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

  • colors
  • font-families
  • text-sizes
  • box-shadow
  • border-radius

Colors

Colors are taken from the Figma Local Paint Styles. Colors can be grouped in the export step. If you want to group codes,prefix them with the same name.

Font-families

The plugin will pick up all font-families used in the Local Text Styles.

Text-sizes

All the different font-sizes used in the Local Text Styles will be picked up by the plugin. 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.

Box-shadows

Taken from the effectStyles from your document.

Border-radius

Taken from the nodeStyles from your document.

Importing your theme

Import the theme.js file in to your tailwind.config.js configuration file to use it:

Require syntax

const myTheme = require(./theme);

the require syntax will make sure your custom values get picked up by the Intelligent Tailwind CSS plugin. If you want to use this syntax, remove the export default theme statement from your theme file

Import syntax

import 'myTheme' from './theme

Extending the default theme

You can extend the default theme like so:

module.exports = {
    theme: {
        extend: {
            colors: myTheme.colors
        }
    }

More info on extending the default theme:

Contributing

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

The plugin shows you some random messages when you're missing one of the exportable properties. If you want to add your own, feel free to make a Pull Request for this file.

Roadmap

  • line-height

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].