@khanacademy/wonder-blocks-tokens 16.2.0 → 16.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @khanacademy/wonder-blocks-tokens@16.2.0 build:css /home/runner/work/wonder-blocks/wonder-blocks/packages/wonder-blocks-tokens
2
+ > @khanacademy/wonder-blocks-tokens@16.3.0 build:css /home/runner/work/wonder-blocks/wonder-blocks/packages/wonder-blocks-tokens
3
3
  > node -r @swc-node/register ./src/build/generate-css-variables.ts
4
4
 
5
5
  CSS variables generated successfully in: /home/runner/work/wonder-blocks/wonder-blocks/packages/wonder-blocks-tokens/dist/css
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @khanacademy/wonder-blocks-tokens
2
2
 
3
+ ## 16.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 40f217b: Add Noto as fallback font for Thunderblocks in tokens.fontFamily
8
+
3
9
  ## 16.2.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env -S node -r @swc-node/register
2
+ import themeDefault from "../theme/default";
3
+ type ThemeObject = typeof themeDefault;
4
+ export declare function flattenToMap(obj: unknown, prefix?: string, map?: Map<string, string | number>): Map<string, string | number>;
5
+ export declare function toCssVar(tokenGroup: string, dotPath: string): string;
6
+ type Group = {
7
+ /** Slug used for the output filename. */
8
+ id: string;
9
+ /** Storybook title path. */
10
+ title: string;
11
+ /** H1 rendered in the MDX page. */
12
+ heading: string;
13
+ /** Variable name used in code examples (e.g. `sizing`). */
14
+ tokenPrefix: string;
15
+ /** Short blurb shown above the table, rendered as markdown. */
16
+ description: string;
17
+ /** Whether to emit a CSS Variable column. */
18
+ includeCssVar: boolean;
19
+ } & ({
20
+ /**
21
+ * Returns the token subtree for a given theme. One value column is
22
+ * emitted per theme.
23
+ */
24
+ getTokens: (theme: ThemeObject) => unknown;
25
+ } | {
26
+ /**
27
+ * For tokens that aren't themed (e.g. media query breakpoints). A
28
+ * single Value column is emitted.
29
+ */
30
+ tokens: unknown;
31
+ });
32
+ export declare const groups: ReadonlyArray<Group>;
33
+ export declare function renderThemedTable(group: Group & {
34
+ getTokens: (theme: ThemeObject) => unknown;
35
+ }): string;
36
+ export declare function renderSimpleTable(group: Group & {
37
+ tokens: unknown;
38
+ }): string;
39
+ export declare function renderMdx(group: Group): string;
40
+ export declare function generateTokenDocs(outputDir: string): void;
41
+ export {};
@@ -856,7 +856,7 @@
856
856
  --wb-boxShadow-low: 0 2px 2px 0 color-mix(in srgb, #252368 20%, transparent);
857
857
  --wb-boxShadow-mid: 0 4px 8px 0 color-mix(in srgb, #252368 20%, transparent);
858
858
  --wb-boxShadow-high: 0 8px 16px 0 color-mix(in srgb, #252368 20%, transparent);
859
- --wb-font-family-sans: Plus Jakarta Sans, serif;
859
+ --wb-font-family-sans: Plus Jakarta Sans, "Noto Sans", sans-serif;
860
860
  --wb-font-family-serif: "Noto Serif", serif;
861
861
  --wb-font-family-mono: Inconsolata, monospace;
862
862
  --wb-font-size-xxxLarge: 3.6rem;
package/dist/css/vars.css CHANGED
@@ -490,7 +490,7 @@
490
490
  --wb-boxShadow-low: 0 2px 2px 0 color-mix(in srgb, #252368 20%, transparent);
491
491
  --wb-boxShadow-mid: 0 4px 8px 0 color-mix(in srgb, #252368 20%, transparent);
492
492
  --wb-boxShadow-high: 0 8px 16px 0 color-mix(in srgb, #252368 20%, transparent);
493
- --wb-font-family-sans: Plus Jakarta Sans, serif;
493
+ --wb-font-family-sans: Plus Jakarta Sans, "Noto Sans", sans-serif;
494
494
  --wb-font-family-serif: "Noto Serif", serif;
495
495
  --wb-font-family-mono: Inconsolata, monospace;
496
496
  --wb-font-size-xxxLarge: 3.6rem;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core primitive design tokens for Web Wonder Blocks",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "16.2.0",
6
+ "version": "16.3.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -35,6 +35,7 @@
35
35
  "bin": "./bin/cli.js",
36
36
  "scripts": {
37
37
  "build:css": "node -r @swc-node/register ./src/build/generate-css-variables.ts",
38
+ "build:token-docs": "node -r @swc-node/register ./src/build/generate-token-docs.ts",
38
39
  "test": "echo \"Error: no test specified\" && exit 1"
39
40
  }
40
41
  }