GithubHelp home page GithubHelp logo

reinvanoyen / typex Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 3.0 2.67 MB

Typography web export (css, sass, html, json, ..) plugin for Sketch

License: BSD 3-Clause "New" or "Revised" License

JavaScript 100.00%
sketch sketch-plugin sketch-app css sketch-css sass json fonts

typex's Introduction

Export your text styles to CSS, SASS mixins, JSON, HTML, ...

Highly configurable (Including rem, em units, etc)

Installation

  1. Download the plugin.
  2. Unzip the downloaded file.
  3. Double click on typex.sketchplugin

Typex?

Typex is a Sketch plugin which provides you with all the tools you need to export your text styles to the web platform, ready for your developer to put them to use. Instead of just giving you the typical simplistic copy-pastable CSS snippet for your text styles, you can now actually configure how to export them to CSS, SASS mixins and JSON.

typex's People

Contributors

reinvanoyen avatar

Stargazers

Joel Javillo  avatar Hung Pham avatar Terry avatar  avatar Antonio Gómez-Maldonado avatar Tommy Dunn avatar  avatar Suke Han avatar  avatar wufree avatar  avatar AquaDesDev avatar Akram Rekik avatar Ryan R. Smith avatar Christopher Janzen avatar  avatar Raffaele Rasini avatar Van Quoc Bui avatar Kelly Mears avatar jmills avatar Dennis Haulund Nielsen avatar Ernesto Araujo avatar Tim Burch avatar Ely Kahn avatar Yuhei Yasuda avatar KiNo.W avatar Thanesh Rajandran avatar Daniele Arduini avatar Zo-Hasina Rasatavohary avatar Joshua Scott avatar Pierre Charles avatar Xavier Keeling avatar Alejo Gastélum avatar Fahad Murtaza avatar  avatar Makoto Tateno avatar Dashon 'DJ' Hawkins avatar Chang Lebeouf avatar John Doe avatar Dieter Vyncke avatar Tarun Chaudhry avatar  avatar

Watchers

 avatar James Cloos avatar AquaDesDev avatar

typex's Issues

Include name in JSON

Hi, sorry for this abuse of gh-issues. This is a fantastic plugin but I am having to do some extensive processing to get it into something I can really use. I'd love to be able to use our existing JSON > SCSS gulp task, but this JSON just has the rules, not the names of each style (unlike the mixins and css options). My issue is I need SOMETHING to loop over to create utility classes where I can use the same .class-name and nest in the media queries (thinking of something similar to Sarah Dayan's Modifiers: https://gist.github.com/sarahdayan/4d2cc04a636e8039f10a889a0e29fbd9)

Anyway right now I can get mixins
Input:
@mixin type-heading-4-tablet-regular-white-left
{
font-family: Helvetica;
font-weight: 400;
text-transform: uppercase;
font-size: 25px;
letter-spacing: 0px;
line-height: 0.86;
}
@mixin type-heading-4-mobile-regular-white-left
{
font-family: Helvetica;
font-weight: 400;
text-transform: uppercase;
font-size: 20px;
letter-spacing: 0px;
line-height: 0.96;
}

etc

Which are great once I've converted them to:

.h-text--heading-4-regular {
@include media($phone) {
@include heading-4-mobile-regular;
}
@include media($tablet) {
@include heading-4-tablet-regular;
}
@include media($desktop) {
@include heading-4-desktop-regular;
}
}

But otherwise are not mega useful. Or there's JSON but the name is nested in so I have to write a ton more processing rules to grab that, I guess? Unless I'm missing something. If I could nominate/group by keyword in the GUI it would be incredible. But that might be hard. I'm doing a bazillion regExp in gulp-replace at the moment and it's still not reeeeeally that useful. I'm wondering if we could get the JSON to format a bit differently, say, by pulling up the name and then doing something like the JSON-SASS colour swatches: https://gist.github.com/KatieMFritz/1fa770a5dee59de8a12d796165f855d9
?

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.