Giter Site home page Giter Site logo

salesforce-ux / gulp-theo Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 6.0 2.09 MB

Gulp-theo is a plugin that transforms and formats Design Tokens

Home Page: https://www.npmjs.com/package/gulp-theo

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

JavaScript 100.00%

gulp-theo's People

Contributors

aputinski avatar dependabot-preview[bot] avatar fredboyle avatar kaelig avatar svc-scm avatar zahnster avatar

Stargazers

 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

gulp-theo's Issues

Multiple file outputs

Hey, gulp noob user here!

In the advanced usage documentation it mentions that the configuration outputs to multiple formats but I don't quite see which part does that.

If I wanted to use the same single yml file to output multiple different formats how would I do that? Ie. tokens.yml -> variables.css & variables.js

Upgrade to latest Gulp?

Hey there! We are using Theo + Gulp Theo - and we are looking to upgrade our Node version, looks like the Gulp we use is only supported up to node version 12. Are there any plans to rewrite Gulp theo so it is compatible with the new format?

I'm not able to pass options to Theo (transformPropName)

As per documentation, I should be able to pass additional options to Theo

// When passing "format" options to theo.convert(), this format can be
// passed some additional options
let formatOptions = {
  type: 'html',
  options: {
    transformPropName: name => name.toUpperCase()
  }
};

If I try to do that using gulp-plugin it wont work:

gulpTheo.plugin({
  transform: { type: 'web' },
  format: { type: 'html' },
  options: {
       transformPropName: name => `<p>${name}</p>`
  }
})

also I tried this way:

gulpTheo.plugin({
  transform: { 
     type: 'web',
     options: {
        transformPropName: name => `<p>${name}</p>`
    }
 },
  format: { type: 'html' },
})

Theo doesn't parse hex values for color

Unless I'm missing something, if I have the following in my aliases.yml:

---
aliases:
  # colors
  dark-blue: #003e52
  orange: #c18510

The output doesn't read hex values and I get:

$dark-blue: rgb(0, 0, 0);
$orange rgb(0, 0, 0);

...for all colors.

I'm also noticing the ability to just pass through token values that don't necessarily map to one of your existing formats. Might be worth allowing a general type/category for this.

Immutable.List(...).traverse is not a function

After installing the most recent version of gulp-theo we receive the following error when running the defined task:

(node:57669) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 8): TypeError in plugin 'gulp-theo'
Message:
    Immutable.List(...).traverse is not a function

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.