![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
scss-theo-importer
Advanced tools
Basic importer for using Theo design token files directly in Sass
Basic importer for using Theo design token files directly in Sass
Design tokens are great - but they are better when they can be used invisibly by a variety of consumers. This Sass importer allows you to import design token files (either yml or json), formatted according to https://github.com/salesforce-ux/theo, directly in Sass, with the tokens converted into Sass variables.
npm install scss-theo-importer
// .sassrc.js
const theoImporter = require('scss-theo-importer')
module.exports = {
importer: [theoImporter()],
}
# src/tokens/_color.theo.yml
props:
color-background:
value: '{!gray}'
aliases:
gray: '#eff4f6'
global:
type: color
category: color
# src/tokens/index.theo.yml
imports:
- ./_color.theo.scss
// src/app.scss
@import './tokens/index.theo.yml';
body {
background-color: $color-background;
}
The theoImporter
function takes an optional object argument with the following
possible props:
opts.matcher
The regex used to match token filenames
RegExp
/\.theo\.(ya?ml|json)$/
opts.transform
The transform passed to the underlying Theo conversion (file
is added dynamically)
{type: 'web'}
opts.format
The format passed to the underlying Theo conversion
{ type: 'default.scss' }
FAQs
Basic importer for using Theo design token files directly in Sass
The npm package scss-theo-importer receives a total of 0 weekly downloads. As such, scss-theo-importer popularity was classified as not popular.
We found that scss-theo-importer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.