Skip to content

Commit

Permalink
Build rgb variables
Browse files Browse the repository at this point in the history
  • Loading branch information
imprashast committed Jun 4, 2024
1 parent f5db7e7 commit cc9ca3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion data/figma.json

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions styledictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,32 @@ export function generateSDAssets() {
const config = {
source: [path.join(tokensPath, brandMode, "*.json")],
platforms: {
scss: {
transformGroup: "scss",
css: {
transformGroup: "css",
buildPath: `output/web/${brandMode}/`,
files: [
{
destination: "_variables.scss",
format: "scss/variables",
destination: "variables.css",
format: "css/variables",
options: {
outputReferences: true,
},
},
],
},
css: {
transformGroup: "css",
cssRgb: {
transforms: [
"attribute/cti",
"name/cti/kebab",
"time/seconds",
"content/icon",
"size/rem",
"color/rgb",
],
buildPath: `output/web/${brandMode}/`,
files: [
{
destination: "variables.css",
destination: "variables-rgb.css",
format: "css/variables",
options: {
outputReferences: true,
Expand Down

0 comments on commit cc9ca3b

Please sign in to comment.