0.3.24 • Published 7 months ago

@wfp/themes-core v0.3.24

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

Style-dictionary

The themes core generates design tokens by using Style Dictionary.

Generate tokens npm run build

Using existing theme

TODO: Add paragraph import variables from @un/themes-core/scss/variables;

Building a theme

Generate Source json on your own

The source can be json, preferably generated from Figma using Design Tokens.

An example can be found in tokens/design-tokens.tokens.json

// Add this to your package.json to generate a theme
scripts: {
    "build:theme": "node buildTheme.js",
}
// buildTheme.js configuration
const { config } = require('@un/themes-core/config.js');

/*
config() can be configured
source: defines the lookup for finding
Example can be found in tokens/design-tokens.tokens.json
*/
const source = 'tokens/**/*.json';

// BuildPath: Output for the build
const buildPath = 'dist';

config({ source, buildPath });
0.3.48

7 months ago

0.3.47

7 months ago

0.3.46

9 months ago

0.3.45

9 months ago

0.3.44

10 months ago

0.3.43

11 months ago

0.3.42

12 months ago

0.3.41

1 year ago

0.3.39

1 year ago

0.3.40

1 year ago

0.3.38

1 year ago

0.3.37

1 year ago

0.3.36

1 year ago

0.3.35

1 year ago

0.3.34

1 year ago

0.3.33

1 year ago

0.3.31

1 year ago

0.3.30

1 year ago

0.3.32

1 year ago

0.3.29

1 year ago

0.3.28

1 year ago

0.3.27

1 year ago

0.3.26

2 years ago

0.3.25

2 years ago

0.3.24

2 years ago

0.3.23

2 years ago

0.3.22

2 years ago

0.3.21

2 years ago

0.3.20

2 years ago

0.3.17

2 years ago

0.3.16

2 years ago

0.3.15

2 years ago

0.3.14

2 years ago

0.3.19

2 years ago

0.3.18

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.3.9

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.48

2 years ago

0.0.47

2 years ago