Skip to content

Commit

Permalink
create infima configuration for style-dictionary
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Kuppens Groot <[email protected]>
  • Loading branch information
tkgroot committed Apr 18, 2024
1 parent 7668735 commit d90dc22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
import { TOKENS_FILE_PATH } from "../config.js";
import { BUILD_PATH_INFIMA, TOKENS_FILE_PATH } from "../config.js";
import { fileHeader } from "./formats/file-headers/register.js";

export default {
source: [TOKENS_FILE_PATH],
platforms: {
infima: {
prefix: "ifm",
transformGroup: "infima",
buildPath: BUILD_PATH_INFIMA,
files: [
{
format: "css/variables",
destination: "custom.css",
},
],
},
js: {
transformGroup: "custom/js",
buildPath: "build/js/",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import StyleDictionary from "style-dictionary";
import config from "./config.js";
import "./transforms/groups/js/register.js";
import "./transforms/groups/infima/register.js";

/** creates the dictionary with the config provided for the entire tokens package */
const dictionary = StyleDictionary.extend(config);
Expand Down

0 comments on commit d90dc22

Please sign in to comment.