Skip to content

Commit

Permalink
create new style-dictionary dictionary
Browse files Browse the repository at this point in the history
- register all hooks

Signed-off-by: Tobias Kuppens Groot <[email protected]>
  • Loading branch information
tkgroot committed Jan 31, 2025
1 parent 0e3396d commit 21e2409
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/BlackSunDictionary.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import StyleDictionary from "style-dictionary";
import { customFileHeader } from "./formats/file-headers/index.js";
import {
infimaTransformGroup,
javascriptTransformGroup,
} from "./transform-group/index.js";
import {
nameVariableColorTransformer,
nameVariableDefaultTransformer,
valueColorRgbaTransformer,
} from "./transforms/index.js";

/**
*
*/
export const BlackSunDictionary = new StyleDictionary();

// Actions

// Formats

// FileHeaders
BlackSunDictionary.registerFileHeader(customFileHeader);

// Parser

// Preprocessors

// Transformers
BlackSunDictionary.registerTransform(nameVariableColorTransformer);
BlackSunDictionary.registerTransform(nameVariableDefaultTransformer);
BlackSunDictionary.registerTransform(valueColorRgbaTransformer);

// Transform Groups
BlackSunDictionary.registerTransformGroup(infimaTransformGroup);
BlackSunDictionary.registerTransformGroup(javascriptTransformGroup);

0 comments on commit 21e2409

Please sign in to comment.