Comments (5)
Since tailwind uses REM as a default & it doesn't really impact your tailwind config I'm not really inclined to do so. What would be your arguments for it?
from figma-tailwindcss.
most teams who develop design style guides use their own font size specifications and you can override the default tailwind sizes to anything you want.. not sure why you would add the extra effort to convert them, the style guide designer would be responsible to author in the format they prefer right?
would it be an idea to offer a config option that escapes the conversion?
from figma-tailwindcss.
My point was, your design uses pixels in Figma, the plugin sets these to rem
values. These end up in a config which you will use in your code. But what's the difference for you in these scenarios?
Scenario 1: your config has:
base: "1.125rem", // 18px
lg: "1.375rem", // 22px
xl: "1.5rem", // 24px
"2xl": "1.875rem", // 30px
"3xl": "2rem", // 32px
"4xl": "2.5rem", // 40px
"5xl": "3.125rem", // 50px
"6xl": "4.375rem" // 70px
In your code you use this, let's say: text-lg
Scenario 2: your config has:
base: "18px",
lg: "22px",
...
In your code you use this still the same: text-lg
.
Don't really see why you would want to change the way you write the values in your config since it doesn't affect the code you write in any way?
from figma-tailwindcss.
The tailwind config is used by more than one applications - We switched to pixels because some apps had a different font-size base value and we were having inconsistencies...
from figma-tailwindcss.
Hmm, will try to see if I can get this implemented anytime soon.
from figma-tailwindcss.
Related Issues (14)
- Not working with Tailwindcss 2.0.2 HOT 4
- [Feature] Configurable base size HOT 3
- [Feature] Additional exports HOT 3
- [Feature] border-radius HOT 1
- [BUG]the plugin is NOT working HOT 1
- Value has no property HOT 7
- [BUG] Plugin crashes when style with background blur is defined HOT 1
- [BUG] xs font size not exported correctly HOT 3
- Colors not grouped? HOT 3
- How to use this? HOT 1
- [Feature] Generate text styles as components HOT 1
- TypeError: cannot read property 'color' of undefined HOT 2
- [BUG] no longer works with new Figma update? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from figma-tailwindcss.