@kong/design-tokens 3.3.2 → 3.3.3-pr.729.7170dc5.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.
- package/TOKENS.md +118 -1
- package/dist/tokens/README.md +118 -1
- package/dist/tokens/css/custom-properties.css +1 -1
- package/dist/tokens/js/cjs/index.d.ts +1 -1
- package/dist/tokens/js/cjs/index.js +1 -1
- package/dist/tokens/js/index.d.ts +1 -1
- package/dist/tokens/js/index.mjs +1 -1
- package/dist/tokens/scss/_map.scss +1 -1
- package/dist/tokens/scss/_variables.scss +1 -1
- package/package.json +26 -27
package/TOKENS.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
# Kong Design Tokens
|
|
10
10
|
|
|
11
|
-
This document outlines the majority of the available tokens.
|
|
11
|
+
This document outlines the majority of the available tokens and explains how to use them — see [Usage](#usage) at the end.
|
|
12
12
|
|
|
13
13
|
## SCSS
|
|
14
14
|
|
|
@@ -9803,3 +9803,120 @@ export const KUI_THEMEABLE_TOKENS = [
|
|
|
9803
9803
|
```
|
|
9804
9804
|
|
|
9805
9805
|
</details>
|
|
9806
|
+
|
|
9807
|
+
## Usage
|
|
9808
|
+
|
|
9809
|
+
### Choosing a format
|
|
9810
|
+
|
|
9811
|
+
Themes and host-application overrides work by setting `--kui-*` custom properties at runtime. SCSS variables and JavaScript constants are replaced with static values at compile time, so a value used on its own **ignores every theme**. Whenever a token styles the DOM, reference the CSS custom property and pass the static token as its fallback:
|
|
9812
|
+
|
|
9813
|
+
| Context | Pattern |
|
|
9814
|
+
|---|---|
|
|
9815
|
+
| SCSS declaration | `color: var(--kui-color-text-primary, $kui-color-text-primary);` |
|
|
9816
|
+
| Defining a custom property in SCSS | `--my-gap: var(--kui-space-40, #{$kui-space-40});` |
|
|
9817
|
+
| Vue template binding | `` :style="{ color: `var(--kui-color-text-primary, ${KUI_COLOR_TEXT_PRIMARY})` }" `` |
|
|
9818
|
+
| `@media` query | `@media (min-width: $kui-breakpoint-phablet)` — custom properties are not valid in media queries |
|
|
9819
|
+
| Non-DOM consumers (canvas charts, JS math, `matchMedia`) | `KUI_BREAKPOINT_PHABLET` — the constant on its own; `var()` only resolves in CSS, so these values do not follow themes |
|
|
9820
|
+
|
|
9821
|
+
The custom property name always matches the token it falls back to:
|
|
9822
|
+
|
|
9823
|
+
```
|
|
9824
|
+
--kui-color-text-primary ↔ $kui-color-text-primary ↔ KUI_COLOR_TEXT_PRIMARY
|
|
9825
|
+
```
|
|
9826
|
+
|
|
9827
|
+
Always include the fallback. A bare `var(--kui-color-text-primary)` falls back to the inherited or initial value when nothing defines the property, and neither linter flags it.
|
|
9828
|
+
|
|
9829
|
+
### Component tokens
|
|
9830
|
+
|
|
9831
|
+
Component tokens (`--kui-button-*`, `--kui-input-*`, …) have **no value, no SCSS variable, and no JavaScript constant**. They are override slots that only take effect when a theme sets them. Use one as the outermost `var()` and fall through to the semantic token:
|
|
9832
|
+
|
|
9833
|
+
```scss
|
|
9834
|
+
border-radius: var(--kui-button-border-radius-medium, var(--kui-border-radius-30, $kui-border-radius-30));
|
|
9835
|
+
// ↑ component token (unset by default) ↑ semantic token ↑ static fallback
|
|
9836
|
+
```
|
|
9837
|
+
|
|
9838
|
+
Never reference a component token without that semantic fallback — on its own it is unset unless a theme writes it.
|
|
9839
|
+
|
|
9840
|
+
### Linting
|
|
9841
|
+
|
|
9842
|
+
Two plugins enforce the patterns above. Install them as `devDependencies` alongside `@kong/design-tokens`:
|
|
9843
|
+
|
|
9844
|
+
```sh
|
|
9845
|
+
pnpm add -D @kong/stylelint-plugin-design-tokens stylelint
|
|
9846
|
+
pnpm add -D @kong/eslint-plugin-design-tokens eslint eslint-plugin-vue vue-eslint-parser
|
|
9847
|
+
```
|
|
9848
|
+
|
|
9849
|
+
Stylelint (your project must already parse SCSS and Vue `<style>` blocks, e.g. via `postcss-scss` / `postcss-html`):
|
|
9850
|
+
|
|
9851
|
+
```js
|
|
9852
|
+
export default {
|
|
9853
|
+
plugins: ['@kong/stylelint-plugin-design-tokens'],
|
|
9854
|
+
rules: {
|
|
9855
|
+
'@kong/stylelint-plugin-design-tokens/token-var-usage': true,
|
|
9856
|
+
'@kong/stylelint-plugin-design-tokens/use-proper-token': true,
|
|
9857
|
+
},
|
|
9858
|
+
}
|
|
9859
|
+
```
|
|
9860
|
+
|
|
9861
|
+
ESLint (flat config, Vue SFCs):
|
|
9862
|
+
|
|
9863
|
+
```js
|
|
9864
|
+
import vue from 'eslint-plugin-vue'
|
|
9865
|
+
import designTokens from '@kong/eslint-plugin-design-tokens'
|
|
9866
|
+
|
|
9867
|
+
export default [
|
|
9868
|
+
...vue.configs['flat/recommended'],
|
|
9869
|
+
{ files: ['**/*.vue'], ...designTokens.configs.recommended },
|
|
9870
|
+
]
|
|
9871
|
+
```
|
|
9872
|
+
|
|
9873
|
+
Run `stylelint --fix` and `eslint --fix` to apply the autofixes described below. Full rule documentation: [stylelint plugin](https://github.com/Kong/design-tokens/tree/main/packages/stylelint-plugin-design-tokens#readme), [ESLint plugin](https://github.com/Kong/design-tokens/tree/main/packages/eslint-plugin-design-tokens#readme).
|
|
9874
|
+
|
|
9875
|
+
#### `token-var-usage` (stylelint)
|
|
9876
|
+
|
|
9877
|
+
Every `$kui-*` SCSS variable in a declaration must sit inside `var(--kui-<same-name>, $kui-<same-name>)` or `var(--kui-<same-name>, #{$kui-<same-name>})` — exactly one space after the comma, no other spaces. Bare tokens and misformatted `var()` calls are autofixed.
|
|
9878
|
+
|
|
9879
|
+
Watch out for:
|
|
9880
|
+
|
|
9881
|
+
- **SCSS variable assignments are checked too.** `$gap: $kui-space-40;` is rewritten to `$gap: var(--kui-space-40, $kui-space-40);`, which breaks any Sass math done with `$gap` afterwards. Do the math in CSS instead: `calc(var(--kui-space-40, $kui-space-40) * 2)`.
|
|
9882
|
+
- **Sass functions can't take a runtime value.** `darken()`, `math.div()`, etc. fail on a `var()` argument. Prefer CSS-native equivalents (`calc()`, `color-mix()`) or a token that already expresses the value you need.
|
|
9883
|
+
- **Keep each `var()` on one line.** Multi-line `var()` calls are not parsed correctly.
|
|
9884
|
+
- **Standalone interpolation is reported but not fixed.** For `#{$kui-color-text-primary}` you choose between the plain and the interpolated `var()` form yourself.
|
|
9885
|
+
- **`@media` parameters are not checked**, so `$kui-breakpoint-*` can be used there directly.
|
|
9886
|
+
|
|
9887
|
+
#### `use-proper-token` (stylelint)
|
|
9888
|
+
|
|
9889
|
+
Reports a token used on a property it was not designed for, e.g. `background-color: var(--kui-color-text-primary, $kui-color-text-primary)`. It checks both `--kui-*` and `$kui-*` references and has **no autofix**. Component-prefixed tokens are matched by family, so `--kui-button-color-background-primary` is valid wherever `color-background` is. Properties not listed below are not checked.
|
|
9890
|
+
|
|
9891
|
+
| Property | Allowed token families |
|
|
9892
|
+
|---|---|
|
|
9893
|
+
| `background`, `background-color` | `color-background`, `color-brand`, `status-color` |
|
|
9894
|
+
| `color` | `color-text`, `icon-color`, `status-color`, `color-brand` |
|
|
9895
|
+
| `fill`, `stroke` | `color-text`, `color-brand`, `status-color` |
|
|
9896
|
+
| `text-decoration-color` | `color-text`, `color-brand` |
|
|
9897
|
+
| `border`, `border-{side}` | `border-width`, `border-radius`, `color-border`, `color-brand` |
|
|
9898
|
+
| `border-color`, `border-{side}-color`, `outline-color` | `color-border`, `color-brand` |
|
|
9899
|
+
| `border-width`, `border-{side}-width`, `outline-width` | `border-width` |
|
|
9900
|
+
| `outline` | `border-width`, `color-border`, `color-brand` |
|
|
9901
|
+
| `border-radius`, `border-{corner}-radius` | `border-radius` |
|
|
9902
|
+
| `box-shadow` | `shadow`, `border-width`, `color-border`, `color-brand` |
|
|
9903
|
+
| `margin*`, `gap`, `row-gap`, `column-gap`, `border-spacing` | `space` |
|
|
9904
|
+
| `padding*` | `space`, `padding` |
|
|
9905
|
+
| `font` | `font-family`, `font-size`, `font-weight` |
|
|
9906
|
+
| `font-family`, `font-size`, `font-weight`, `line-height`, `letter-spacing` | the token family of the same name |
|
|
9907
|
+
| `width`, `min-width`, `max-width` | `icon-size`, `breakpoint` |
|
|
9908
|
+
| `height`, `min-height`, `max-height` | `icon-size` |
|
|
9909
|
+
| `top`, `right`, `bottom`, `left`, `inset`, `background-size`, `column-width` | none — no token may be used |
|
|
9910
|
+
|
|
9911
|
+
The source of truth is [`token-map.mjs`](https://github.com/Kong/design-tokens/blob/main/packages/stylelint-plugin-design-tokens/rules/use-proper-token/token-map.mjs).
|
|
9912
|
+
|
|
9913
|
+
#### `token-constant-requires-css-var` (ESLint)
|
|
9914
|
+
|
|
9915
|
+
The template-side counterpart of `token-var-usage`: a `KUI_*` constant imported from `@kong/design-tokens` and used in a Vue `<template>` binding must be wrapped as `` `var(--kui-x, ${KUI_X})` ``. Only template bindings are checked — `<script>` code is not, and `<style>` blocks are covered by stylelint.
|
|
9916
|
+
|
|
9917
|
+
- **Autofixed:** direct bindings (`:color="KUI_X"`), ternary branches, and object values in `:style`.
|
|
9918
|
+
- **Reported, fix by hand:** template literals, string concatenation, function arguments (`darken(KUI_X)` — the function may not accept a `var()` string), and a `<script setup>` variable holding a token (`const c = KUI_X`). Wrap at the binding site.
|
|
9919
|
+
- **Not detected:** tokens placed in a script-level object, `ref()`, or `computed()` before being bound, namespace imports (`import * as tokens`), re-exports through your own barrel files, and render functions / JSX. Wrap the token where the value is created, e.g. `` const styles = { padding: `var(--kui-space-40, ${KUI_SPACE_40})` } ``.
|
|
9920
|
+
- **Excluded:** `KUI_BREAKPOINT_*` constants, which feed media-query logic where custom properties don't work.
|
|
9921
|
+
|
|
9922
|
+
Tokens from other packages can be tracked with the `importSources` option: `['error', { importSources: ['@kong/design-tokens', 'my-tokens'] }]`.
|
package/dist/tokens/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
# Kong Design Tokens
|
|
10
10
|
|
|
11
|
-
This document outlines the majority of the available tokens.
|
|
11
|
+
This document outlines the majority of the available tokens and explains how to use them — see [Usage](#usage) at the end.
|
|
12
12
|
|
|
13
13
|
## SCSS
|
|
14
14
|
|
|
@@ -9803,3 +9803,120 @@ export const KUI_THEMEABLE_TOKENS = [
|
|
|
9803
9803
|
```
|
|
9804
9804
|
|
|
9805
9805
|
</details>
|
|
9806
|
+
|
|
9807
|
+
## Usage
|
|
9808
|
+
|
|
9809
|
+
### Choosing a format
|
|
9810
|
+
|
|
9811
|
+
Themes and host-application overrides work by setting `--kui-*` custom properties at runtime. SCSS variables and JavaScript constants are replaced with static values at compile time, so a value used on its own **ignores every theme**. Whenever a token styles the DOM, reference the CSS custom property and pass the static token as its fallback:
|
|
9812
|
+
|
|
9813
|
+
| Context | Pattern |
|
|
9814
|
+
|---|---|
|
|
9815
|
+
| SCSS declaration | `color: var(--kui-color-text-primary, $kui-color-text-primary);` |
|
|
9816
|
+
| Defining a custom property in SCSS | `--my-gap: var(--kui-space-40, #{$kui-space-40});` |
|
|
9817
|
+
| Vue template binding | `` :style="{ color: `var(--kui-color-text-primary, ${KUI_COLOR_TEXT_PRIMARY})` }" `` |
|
|
9818
|
+
| `@media` query | `@media (min-width: $kui-breakpoint-phablet)` — custom properties are not valid in media queries |
|
|
9819
|
+
| Non-DOM consumers (canvas charts, JS math, `matchMedia`) | `KUI_BREAKPOINT_PHABLET` — the constant on its own; `var()` only resolves in CSS, so these values do not follow themes |
|
|
9820
|
+
|
|
9821
|
+
The custom property name always matches the token it falls back to:
|
|
9822
|
+
|
|
9823
|
+
```
|
|
9824
|
+
--kui-color-text-primary ↔ $kui-color-text-primary ↔ KUI_COLOR_TEXT_PRIMARY
|
|
9825
|
+
```
|
|
9826
|
+
|
|
9827
|
+
Always include the fallback. A bare `var(--kui-color-text-primary)` falls back to the inherited or initial value when nothing defines the property, and neither linter flags it.
|
|
9828
|
+
|
|
9829
|
+
### Component tokens
|
|
9830
|
+
|
|
9831
|
+
Component tokens (`--kui-button-*`, `--kui-input-*`, …) have **no value, no SCSS variable, and no JavaScript constant**. They are override slots that only take effect when a theme sets them. Use one as the outermost `var()` and fall through to the semantic token:
|
|
9832
|
+
|
|
9833
|
+
```scss
|
|
9834
|
+
border-radius: var(--kui-button-border-radius-medium, var(--kui-border-radius-30, $kui-border-radius-30));
|
|
9835
|
+
// ↑ component token (unset by default) ↑ semantic token ↑ static fallback
|
|
9836
|
+
```
|
|
9837
|
+
|
|
9838
|
+
Never reference a component token without that semantic fallback — on its own it is unset unless a theme writes it.
|
|
9839
|
+
|
|
9840
|
+
### Linting
|
|
9841
|
+
|
|
9842
|
+
Two plugins enforce the patterns above. Install them as `devDependencies` alongside `@kong/design-tokens`:
|
|
9843
|
+
|
|
9844
|
+
```sh
|
|
9845
|
+
pnpm add -D @kong/stylelint-plugin-design-tokens stylelint
|
|
9846
|
+
pnpm add -D @kong/eslint-plugin-design-tokens eslint eslint-plugin-vue vue-eslint-parser
|
|
9847
|
+
```
|
|
9848
|
+
|
|
9849
|
+
Stylelint (your project must already parse SCSS and Vue `<style>` blocks, e.g. via `postcss-scss` / `postcss-html`):
|
|
9850
|
+
|
|
9851
|
+
```js
|
|
9852
|
+
export default {
|
|
9853
|
+
plugins: ['@kong/stylelint-plugin-design-tokens'],
|
|
9854
|
+
rules: {
|
|
9855
|
+
'@kong/stylelint-plugin-design-tokens/token-var-usage': true,
|
|
9856
|
+
'@kong/stylelint-plugin-design-tokens/use-proper-token': true,
|
|
9857
|
+
},
|
|
9858
|
+
}
|
|
9859
|
+
```
|
|
9860
|
+
|
|
9861
|
+
ESLint (flat config, Vue SFCs):
|
|
9862
|
+
|
|
9863
|
+
```js
|
|
9864
|
+
import vue from 'eslint-plugin-vue'
|
|
9865
|
+
import designTokens from '@kong/eslint-plugin-design-tokens'
|
|
9866
|
+
|
|
9867
|
+
export default [
|
|
9868
|
+
...vue.configs['flat/recommended'],
|
|
9869
|
+
{ files: ['**/*.vue'], ...designTokens.configs.recommended },
|
|
9870
|
+
]
|
|
9871
|
+
```
|
|
9872
|
+
|
|
9873
|
+
Run `stylelint --fix` and `eslint --fix` to apply the autofixes described below. Full rule documentation: [stylelint plugin](https://github.com/Kong/design-tokens/tree/main/packages/stylelint-plugin-design-tokens#readme), [ESLint plugin](https://github.com/Kong/design-tokens/tree/main/packages/eslint-plugin-design-tokens#readme).
|
|
9874
|
+
|
|
9875
|
+
#### `token-var-usage` (stylelint)
|
|
9876
|
+
|
|
9877
|
+
Every `$kui-*` SCSS variable in a declaration must sit inside `var(--kui-<same-name>, $kui-<same-name>)` or `var(--kui-<same-name>, #{$kui-<same-name>})` — exactly one space after the comma, no other spaces. Bare tokens and misformatted `var()` calls are autofixed.
|
|
9878
|
+
|
|
9879
|
+
Watch out for:
|
|
9880
|
+
|
|
9881
|
+
- **SCSS variable assignments are checked too.** `$gap: $kui-space-40;` is rewritten to `$gap: var(--kui-space-40, $kui-space-40);`, which breaks any Sass math done with `$gap` afterwards. Do the math in CSS instead: `calc(var(--kui-space-40, $kui-space-40) * 2)`.
|
|
9882
|
+
- **Sass functions can't take a runtime value.** `darken()`, `math.div()`, etc. fail on a `var()` argument. Prefer CSS-native equivalents (`calc()`, `color-mix()`) or a token that already expresses the value you need.
|
|
9883
|
+
- **Keep each `var()` on one line.** Multi-line `var()` calls are not parsed correctly.
|
|
9884
|
+
- **Standalone interpolation is reported but not fixed.** For `#{$kui-color-text-primary}` you choose between the plain and the interpolated `var()` form yourself.
|
|
9885
|
+
- **`@media` parameters are not checked**, so `$kui-breakpoint-*` can be used there directly.
|
|
9886
|
+
|
|
9887
|
+
#### `use-proper-token` (stylelint)
|
|
9888
|
+
|
|
9889
|
+
Reports a token used on a property it was not designed for, e.g. `background-color: var(--kui-color-text-primary, $kui-color-text-primary)`. It checks both `--kui-*` and `$kui-*` references and has **no autofix**. Component-prefixed tokens are matched by family, so `--kui-button-color-background-primary` is valid wherever `color-background` is. Properties not listed below are not checked.
|
|
9890
|
+
|
|
9891
|
+
| Property | Allowed token families |
|
|
9892
|
+
|---|---|
|
|
9893
|
+
| `background`, `background-color` | `color-background`, `color-brand`, `status-color` |
|
|
9894
|
+
| `color` | `color-text`, `icon-color`, `status-color`, `color-brand` |
|
|
9895
|
+
| `fill`, `stroke` | `color-text`, `color-brand`, `status-color` |
|
|
9896
|
+
| `text-decoration-color` | `color-text`, `color-brand` |
|
|
9897
|
+
| `border`, `border-{side}` | `border-width`, `border-radius`, `color-border`, `color-brand` |
|
|
9898
|
+
| `border-color`, `border-{side}-color`, `outline-color` | `color-border`, `color-brand` |
|
|
9899
|
+
| `border-width`, `border-{side}-width`, `outline-width` | `border-width` |
|
|
9900
|
+
| `outline` | `border-width`, `color-border`, `color-brand` |
|
|
9901
|
+
| `border-radius`, `border-{corner}-radius` | `border-radius` |
|
|
9902
|
+
| `box-shadow` | `shadow`, `border-width`, `color-border`, `color-brand` |
|
|
9903
|
+
| `margin*`, `gap`, `row-gap`, `column-gap`, `border-spacing` | `space` |
|
|
9904
|
+
| `padding*` | `space`, `padding` |
|
|
9905
|
+
| `font` | `font-family`, `font-size`, `font-weight` |
|
|
9906
|
+
| `font-family`, `font-size`, `font-weight`, `line-height`, `letter-spacing` | the token family of the same name |
|
|
9907
|
+
| `width`, `min-width`, `max-width` | `icon-size`, `breakpoint` |
|
|
9908
|
+
| `height`, `min-height`, `max-height` | `icon-size` |
|
|
9909
|
+
| `top`, `right`, `bottom`, `left`, `inset`, `background-size`, `column-width` | none — no token may be used |
|
|
9910
|
+
|
|
9911
|
+
The source of truth is [`token-map.mjs`](https://github.com/Kong/design-tokens/blob/main/packages/stylelint-plugin-design-tokens/rules/use-proper-token/token-map.mjs).
|
|
9912
|
+
|
|
9913
|
+
#### `token-constant-requires-css-var` (ESLint)
|
|
9914
|
+
|
|
9915
|
+
The template-side counterpart of `token-var-usage`: a `KUI_*` constant imported from `@kong/design-tokens` and used in a Vue `<template>` binding must be wrapped as `` `var(--kui-x, ${KUI_X})` ``. Only template bindings are checked — `<script>` code is not, and `<style>` blocks are covered by stylelint.
|
|
9916
|
+
|
|
9917
|
+
- **Autofixed:** direct bindings (`:color="KUI_X"`), ternary branches, and object values in `:style`.
|
|
9918
|
+
- **Reported, fix by hand:** template literals, string concatenation, function arguments (`darken(KUI_X)` — the function may not accept a `var()` string), and a `<script setup>` variable holding a token (`const c = KUI_X`). Wrap at the binding site.
|
|
9919
|
+
- **Not detected:** tokens placed in a script-level object, `ref()`, or `computed()` before being bound, namespace imports (`import * as tokens`), re-exports through your own barrel files, and render functions / JSX. Wrap the token where the value is created, e.g. `` const styles = { padding: `var(--kui-space-40, ${KUI_SPACE_40})` } ``.
|
|
9920
|
+
- **Excluded:** `KUI_BREAKPOINT_*` constants, which feed media-query logic where custom properties don't work.
|
|
9921
|
+
|
|
9922
|
+
Tokens from other packages can be tracked with the `importSources` option: `['error', { importSources: ['@kong/design-tokens', 'my-tokens'] }]`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 05 Oct 2026 15:53:01 GMT
|
|
4
4
|
*
|
|
5
5
|
* Kong Konnect Design Tokens
|
|
6
6
|
* GitHub: https://github.com/Kong/design-tokens/tree/main/packages/design-tokens
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 05 Oct 2026 15:53:01 GMT
|
|
4
4
|
*
|
|
5
5
|
* Kong Konnect Design Tokens
|
|
6
6
|
* GitHub: https://github.com/Kong/design-tokens/tree/main/packages/design-tokens
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 05 Oct 2026 15:53:01 GMT
|
|
4
4
|
*
|
|
5
5
|
* Kong Konnect Design Tokens
|
|
6
6
|
* GitHub: https://github.com/Kong/design-tokens/tree/main/packages/design-tokens
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 05 Oct 2026 15:53:01 GMT
|
|
4
4
|
*
|
|
5
5
|
* Kong Konnect Design Tokens
|
|
6
6
|
* GitHub: https://github.com/Kong/design-tokens/tree/main/packages/design-tokens
|
package/dist/tokens/js/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 05 Oct 2026 15:53:01 GMT
|
|
4
4
|
*
|
|
5
5
|
* Kong Konnect Design Tokens
|
|
6
6
|
* GitHub: https://github.com/Kong/design-tokens/tree/main/packages/design-tokens
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly, this file was auto-generated.
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Mon, 05 Oct 2026 15:53:01 GMT
|
|
5
5
|
*
|
|
6
6
|
* Kong Konnect Design Tokens
|
|
7
7
|
* GitHub: https://github.com/Kong/design-tokens/tree/main/packages/design-tokens
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
// Do not edit directly, this file was auto-generated.
|
|
3
|
-
// Generated on
|
|
3
|
+
// Generated on Mon, 05 Oct 2026 15:53:01 GMT
|
|
4
4
|
//
|
|
5
5
|
// Kong Konnect Design Tokens
|
|
6
6
|
// GitHub: https://github.com/Kong/design-tokens/tree/main/packages/design-tokens
|
package/package.json
CHANGED
|
@@ -1,33 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong/design-tokens",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3-pr.729.7170dc5.0",
|
|
4
4
|
"description": "Kong Design Tokens and style dictionary",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "pnpm build:clean && pnpm build:tokens && pnpm copy:tokens-doc",
|
|
9
|
-
"build:tokens": "style-dictionary build --config ./config.mjs",
|
|
10
|
-
"build:clean": "rimraf ./dist",
|
|
11
|
-
"copy:tokens-doc": "shx cp -f './dist/tokens/README.md' './TOKENS.md'",
|
|
12
|
-
"lint": "eslint",
|
|
13
|
-
"lint:fix": "eslint --fix",
|
|
14
|
-
"typecheck": "pnpm typecheck:sandbox",
|
|
15
|
-
"typecheck:sandbox": "vue-tsc --project ./sandbox/tsconfig.json --noEmit",
|
|
16
|
-
"stylelint": "stylelint --allow-empty-input './sandbox/**/*.{css,scss,vue}'",
|
|
17
|
-
"stylelint:fix": "stylelint --allow-empty-input './sandbox/**/*.{css,scss,sass,vue}' --fix",
|
|
18
|
-
"sandbox": "pnpm build && run-p sandbox:open sandbox:watch",
|
|
19
|
-
"sandbox:open": "vite sandbox -c ./sandbox/vite.config.ts",
|
|
20
|
-
"sandbox:watch": "chokidar \"tokens/**/*.json\" \"themes/**/*.json\" -c \"pnpm build\"",
|
|
21
|
-
"sandbox:build": "BUILD_SANDBOX=true vite build -c ./sandbox/vite.config.ts -m production",
|
|
22
|
-
"sandbox:preview": "BUILD_SANDBOX=true vite preview -c ./sandbox/vite.config.ts",
|
|
23
|
-
"watch:tokens": "pnpm build && chokidar \"tokens/**/*.json\" -c \"pnpm build\"",
|
|
24
|
-
"theme:scaffold": "node scripts/theme-scaffold.mjs",
|
|
25
|
-
"theme:preview": "node ../skills/theme-creation/scripts/preview.mjs",
|
|
26
|
-
"themes:sync": "node scripts/themes-sync.mjs",
|
|
27
|
-
"themes:unfilled": "node scripts/themes-unfilled.mjs",
|
|
28
|
-
"pretest": "pnpm build:tokens",
|
|
29
|
-
"test": "vitest run --config vitest.config.mjs"
|
|
30
|
-
},
|
|
31
7
|
"publishConfig": {
|
|
32
8
|
"access": "public"
|
|
33
9
|
},
|
|
@@ -103,5 +79,28 @@
|
|
|
103
79
|
"volta": {
|
|
104
80
|
"node": "24.13.1"
|
|
105
81
|
},
|
|
106
|
-
"
|
|
107
|
-
|
|
82
|
+
"scripts": {
|
|
83
|
+
"build": "pnpm build:clean && pnpm build:tokens && pnpm copy:tokens-doc",
|
|
84
|
+
"build:tokens": "style-dictionary build --config ./config.mjs",
|
|
85
|
+
"build:clean": "rimraf ./dist",
|
|
86
|
+
"copy:tokens-doc": "shx cp -f './dist/tokens/README.md' './TOKENS.md'",
|
|
87
|
+
"lint": "eslint",
|
|
88
|
+
"lint:fix": "eslint --fix",
|
|
89
|
+
"typecheck": "pnpm typecheck:sandbox",
|
|
90
|
+
"typecheck:sandbox": "vue-tsc --project ./sandbox/tsconfig.json --noEmit",
|
|
91
|
+
"stylelint": "stylelint --allow-empty-input './sandbox/**/*.{css,scss,vue}'",
|
|
92
|
+
"stylelint:fix": "stylelint --allow-empty-input './sandbox/**/*.{css,scss,sass,vue}' --fix",
|
|
93
|
+
"sandbox": "pnpm build && run-p sandbox:open sandbox:watch",
|
|
94
|
+
"sandbox:open": "vite sandbox -c ./sandbox/vite.config.ts",
|
|
95
|
+
"sandbox:watch": "chokidar \"tokens/**/*.json\" \"themes/**/*.json\" -c \"pnpm build\"",
|
|
96
|
+
"sandbox:build": "BUILD_SANDBOX=true vite build -c ./sandbox/vite.config.ts -m production",
|
|
97
|
+
"sandbox:preview": "BUILD_SANDBOX=true vite preview -c ./sandbox/vite.config.ts",
|
|
98
|
+
"watch:tokens": "pnpm build && chokidar \"tokens/**/*.json\" -c \"pnpm build\"",
|
|
99
|
+
"theme:scaffold": "node scripts/theme-scaffold.mjs",
|
|
100
|
+
"theme:preview": "node ../skills/theme-creation/scripts/preview.mjs",
|
|
101
|
+
"themes:sync": "node scripts/themes-sync.mjs",
|
|
102
|
+
"themes:unfilled": "node scripts/themes-unfilled.mjs",
|
|
103
|
+
"pretest": "pnpm build:tokens",
|
|
104
|
+
"test": "vitest run --config vitest.config.mjs"
|
|
105
|
+
}
|
|
106
|
+
}
|