@commercetools/nimbus 0.0.2 → 0.0.3
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/dist/index.d.ts +1412 -0
- package/dist/index.js +11183 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +27 -0
- package/dist/index.umd.cjs.map +1 -0
- package/package.json +63 -39
- package/.storybook/apca-check/index.ts +0 -150
- package/.storybook/main.ts +0 -64
- package/.storybook/preview.tsx +0 -92
- package/.storybook/vitest.setup.ts +0 -13
- package/docs/architecture-decisions/adr-0001-consumer-component-apis.md +0 -177
- package/docs/architecture-decisions/adr-0002-compound-component-extraction.md +0 -82
- package/src/components/accordion/accordion-context.tsx +0 -17
- package/src/components/accordion/accordion.mdx +0 -172
- package/src/components/accordion/accordion.recipe.tsx +0 -98
- package/src/components/accordion/accordion.slots.tsx +0 -39
- package/src/components/accordion/accordion.stories.tsx +0 -188
- package/src/components/accordion/accordion.tsx +0 -16
- package/src/components/accordion/accordion.types.tsx +0 -54
- package/src/components/accordion/components/accordion-content.tsx +0 -28
- package/src/components/accordion/components/accordion-group.tsx +0 -27
- package/src/components/accordion/components/accordion-header.tsx +0 -63
- package/src/components/accordion/components/accordion-item.tsx +0 -87
- package/src/components/accordion/index.ts +0 -2
- package/src/components/alert/alert.mdx +0 -92
- package/src/components/alert/alert.recipe.tsx +0 -65
- package/src/components/alert/alert.slots.tsx +0 -46
- package/src/components/alert/alert.stories.tsx +0 -308
- package/src/components/alert/alert.tsx +0 -18
- package/src/components/alert/alert.types.tsx +0 -70
- package/src/components/alert/components/alert.actions.tsx +0 -27
- package/src/components/alert/components/alert.description.tsx +0 -27
- package/src/components/alert/components/alert.dismiss-button.tsx +0 -41
- package/src/components/alert/components/alert.root.tsx +0 -92
- package/src/components/alert/components/alert.title.tsx +0 -29
- package/src/components/alert/index.ts +0 -2
- package/src/components/avatar/avatar.mdx +0 -80
- package/src/components/avatar/avatar.recipe.tsx +0 -36
- package/src/components/avatar/avatar.slots.tsx +0 -16
- package/src/components/avatar/avatar.stories.tsx +0 -136
- package/src/components/avatar/avatar.tsx +0 -34
- package/src/components/avatar/avatar.types.ts +0 -33
- package/src/components/avatar/index.ts +0 -2
- package/src/components/badge/badge.mdx +0 -91
- package/src/components/badge/badge.recipe.tsx +0 -72
- package/src/components/badge/badge.slots.tsx +0 -8
- package/src/components/badge/badge.stories.tsx +0 -124
- package/src/components/badge/badge.tsx +0 -35
- package/src/components/badge/badge.types.tsx +0 -40
- package/src/components/badge/index.ts +0 -2
- package/src/components/bleed/bleed.tsx +0 -1
- package/src/components/bleed/index.ts +0 -1
- package/src/components/box/box.mdx +0 -115
- package/src/components/box/box.stories.tsx +0 -71
- package/src/components/box/box.tsx +0 -11
- package/src/components/box/index.ts +0 -1
- package/src/components/button/button.mdx +0 -169
- package/src/components/button/button.recipe.ts +0 -185
- package/src/components/button/button.slots.tsx +0 -45
- package/src/components/button/button.stories.tsx +0 -369
- package/src/components/button/button.tsx +0 -37
- package/src/components/button/button.types.ts +0 -14
- package/src/components/button/index.ts +0 -2
- package/src/components/card/card.mdx +0 -92
- package/src/components/card/card.recipe.tsx +0 -71
- package/src/components/card/card.slots.tsx +0 -50
- package/src/components/card/card.stories.tsx +0 -175
- package/src/components/card/card.tsx +0 -9
- package/src/components/card/card.types.ts +0 -22
- package/src/components/card/components/card.content.tsx +0 -29
- package/src/components/card/components/card.header.tsx +0 -28
- package/src/components/card/components/card.root.tsx +0 -62
- package/src/components/card/index.ts +0 -2
- package/src/components/checkbox/checkbox.mdx +0 -78
- package/src/components/checkbox/checkbox.recipe.tsx +0 -116
- package/src/components/checkbox/checkbox.slots.tsx +0 -33
- package/src/components/checkbox/checkbox.stories.tsx +0 -200
- package/src/components/checkbox/checkbox.tsx +0 -77
- package/src/components/checkbox/checkbox.types.tsx +0 -22
- package/src/components/checkbox/index.ts +0 -2
- package/src/components/code/code.mdx +0 -17
- package/src/components/code/code.recipe.ts +0 -63
- package/src/components/code/code.tsx +0 -1
- package/src/components/code/index.ts +0 -1
- package/src/components/dialog/dialog.mdx +0 -20
- package/src/components/dialog/dialog.recipe.ts +0 -254
- package/src/components/dialog/dialog.tsx +0 -61
- package/src/components/dialog/index.ts +0 -1
- package/src/components/em/em.mdx +0 -17
- package/src/components/em/em.tsx +0 -1
- package/src/components/em/index.ts +0 -1
- package/src/components/flex/flex.mdx +0 -41
- package/src/components/flex/flex.tsx +0 -1
- package/src/components/flex/index.ts +0 -1
- package/src/components/grid/grid.mdx +0 -156
- package/src/components/grid/grid.stories.tsx +0 -151
- package/src/components/grid/grid.tsx +0 -29
- package/src/components/grid/index.ts +0 -1
- package/src/components/heading/heading.mdx +0 -23
- package/src/components/heading/heading.recipe.ts +0 -49
- package/src/components/heading/heading.tsx +0 -1
- package/src/components/heading/index.ts +0 -1
- package/src/components/highlight/highlight.mdx +0 -18
- package/src/components/highlight/highlight.tsx +0 -1
- package/src/components/highlight/index.ts +0 -1
- package/src/components/icon-button/icon-button.mdx +0 -98
- package/src/components/icon-button/icon-button.stories.tsx +0 -188
- package/src/components/icon-button/icon-button.tsx +0 -21
- package/src/components/icon-button/icon-button.types.tsx +0 -10
- package/src/components/icon-button/index.ts +0 -2
- package/src/components/index.ts +0 -33
- package/src/components/input/index.ts +0 -1
- package/src/components/input/input.mdx +0 -20
- package/src/components/input/input.recipe.ts +0 -95
- package/src/components/input/input.tsx +0 -1
- package/src/components/input-group/index.ts +0 -1
- package/src/components/input-group/input-group.mdx +0 -20
- package/src/components/input-group/input-group.tsx +0 -44
- package/src/components/kbd/index.ts +0 -1
- package/src/components/kbd/kbd.mdx +0 -18
- package/src/components/kbd/kbd.recipe.ts +0 -57
- package/src/components/kbd/kbd.tsx +0 -1
- package/src/components/link/index.ts +0 -2
- package/src/components/link/link.mdx +0 -77
- package/src/components/link/link.recipe.ts +0 -52
- package/src/components/link/link.slots.tsx +0 -29
- package/src/components/link/link.stories.tsx +0 -204
- package/src/components/link/link.tsx +0 -38
- package/src/components/link/link.types.tsx +0 -26
- package/src/components/list/index.ts +0 -1
- package/src/components/list/list.mdx +0 -18
- package/src/components/list/list.recipe.ts +0 -68
- package/src/components/list/list.tsx +0 -9
- package/src/components/loading-spinner/index.ts +0 -2
- package/src/components/loading-spinner/loading-spinner.mdx +0 -92
- package/src/components/loading-spinner/loading-spinner.recipe.tsx +0 -70
- package/src/components/loading-spinner/loading-spinner.slots.tsx +0 -38
- package/src/components/loading-spinner/loading-spinner.stories.tsx +0 -97
- package/src/components/loading-spinner/loading-spinner.tsx +0 -50
- package/src/components/loading-spinner/loading-spinner.types.tsx +0 -21
- package/src/components/nimbus-provider/color-mode.tsx +0 -32
- package/src/components/nimbus-provider/index.ts +0 -2
- package/src/components/nimbus-provider/nimbus-provider.mdx +0 -21
- package/src/components/nimbus-provider/nimbus-provider.tsx +0 -51
- package/src/components/select/components/select.clear-button.tsx +0 -31
- package/src/components/select/components/select.option-group.tsx +0 -48
- package/src/components/select/components/select.option.tsx +0 -21
- package/src/components/select/components/select.options.tsx +0 -23
- package/src/components/select/components/select.root.tsx +0 -81
- package/src/components/select/index.ts +0 -2
- package/src/components/select/select.mdx +0 -170
- package/src/components/select/select.recipe.tsx +0 -216
- package/src/components/select/select.slots.tsx +0 -58
- package/src/components/select/select.stories.tsx +0 -841
- package/src/components/select/select.tsx +0 -18
- package/src/components/select/select.types.tsx +0 -37
- package/src/components/simple-grid/index.ts +0 -1
- package/src/components/simple-grid/simple-grid.mdx +0 -133
- package/src/components/simple-grid/simple-grid.stories.tsx +0 -143
- package/src/components/simple-grid/simple-grid.tsx +0 -31
- package/src/components/stack/index.ts +0 -1
- package/src/components/stack/stack.mdx +0 -88
- package/src/components/stack/stack.stories.tsx +0 -82
- package/src/components/stack/stack.tsx +0 -15
- package/src/components/table/index.ts +0 -1
- package/src/components/table/table.mdx +0 -23
- package/src/components/table/table.recipe.ts +0 -170
- package/src/components/table/table.tsx +0 -43
- package/src/components/text/index.ts +0 -1
- package/src/components/text/text.mdx +0 -244
- package/src/components/text/text.tsx +0 -23
- package/src/components/text-input/index.ts +0 -2
- package/src/components/text-input/text-input.mdx +0 -118
- package/src/components/text-input/text-input.recipe.tsx +0 -68
- package/src/components/text-input/text-input.slots.tsx +0 -24
- package/src/components/text-input/text-input.stories.tsx +0 -282
- package/src/components/text-input/text-input.tsx +0 -39
- package/src/components/text-input/text-input.types.ts +0 -7
- package/src/components/toggle-button-group/components/toggle-button-group.button.tsx +0 -14
- package/src/components/toggle-button-group/components/toggle-button-group.root.tsx +0 -15
- package/src/components/toggle-button-group/index.ts +0 -2
- package/src/components/toggle-button-group/toggle-button-group.mdx +0 -94
- package/src/components/toggle-button-group/toggle-button-group.recipe.tsx +0 -64
- package/src/components/toggle-button-group/toggle-button-group.slots.tsx +0 -26
- package/src/components/toggle-button-group/toggle-button-group.stories.tsx +0 -311
- package/src/components/toggle-button-group/toggle-button-group.tsx +0 -12
- package/src/components/toggle-button-group/toggle-button-group.types.tsx +0 -62
- package/src/components/tooltip/index.ts +0 -4
- package/src/components/tooltip/make-element-focusable.stories.tsx +0 -56
- package/src/components/tooltip/make-element-focusable.tsx +0 -57
- package/src/components/tooltip/tooltip-trigger.stories.tsx +0 -157
- package/src/components/tooltip/tooltip-trigger.tsx +0 -15
- package/src/components/tooltip/tooltip.mdx +0 -48
- package/src/components/tooltip/tooltip.recipe.ts +0 -26
- package/src/components/tooltip/tooltip.slots.ts +0 -35
- package/src/components/tooltip/tooltip.stories.tsx +0 -139
- package/src/components/tooltip/tooltip.tsx +0 -31
- package/src/components/tooltip/tooltip.types.ts +0 -44
- package/src/components/visually-hidden/index.ts +0 -1
- package/src/components/visually-hidden/visually-hidden.mdx +0 -61
- package/src/components/visually-hidden/visually-hidden.stories.tsx +0 -124
- package/src/components/visually-hidden/visually-hidden.tsx +0 -18
- package/src/docs/accessibility.mdx +0 -21
- package/src/docs/background.mdx +0 -154
- package/src/docs/border.mdx +0 -226
- package/src/docs/changelog.mdx +0 -17
- package/src/docs/components-layout.mdx +0 -22
- package/src/docs/components.mdx +0 -17
- package/src/docs/data-display.mdx +0 -23
- package/src/docs/display.mdx +0 -55
- package/src/docs/effects.mdx +0 -73
- package/src/docs/feedback.mdx +0 -22
- package/src/docs/filters.mdx +0 -268
- package/src/docs/flex-and-grid.mdx +0 -445
- package/src/docs/forms.mdx +0 -22
- package/src/docs/generated/index.mdx +0 -16
- package/src/docs/getting-started.mdx +0 -17
- package/src/docs/home.mdx +0 -56
- package/src/docs/hooks.mdx +0 -16
- package/src/docs/inputs.mdx +0 -21
- package/src/docs/installation.mdx +0 -60
- package/src/docs/interactivity.mdx +0 -278
- package/src/docs/known-issues.mdx +0 -19
- package/src/docs/layout.mdx +0 -301
- package/src/docs/list.mdx +0 -82
- package/src/docs/markdown.mdx +0 -234
- package/src/docs/media.mdx +0 -22
- package/src/docs/naivgation.mdx +0 -22
- package/src/docs/playground.mdx +0 -16
- package/src/docs/rfcs-component-structure-rfcs.mdx +0 -17
- package/src/docs/rfcs-component-structure.mdx +0 -74
- package/src/docs/rfcs-hook-structure.mdx +0 -59
- package/src/docs/sizing.mdx +0 -210
- package/src/docs/spacing.mdx +0 -193
- package/src/docs/style-props-typography.mdx +0 -373
- package/src/docs/style-props.mdx +0 -15
- package/src/docs/svg.mdx +0 -58
- package/src/docs/tables.mdx +0 -95
- package/src/docs/toc.mdx +0 -39
- package/src/docs/tokens/animations.mdx +0 -68
- package/src/docs/tokens/aspect-ratios.mdx +0 -21
- package/src/docs/tokens/blurs.mdx +0 -20
- package/src/docs/tokens/borders.mdx +0 -25
- package/src/docs/tokens/breakpoints.mdx +0 -35
- package/src/docs/tokens/colors.mdx +0 -86
- package/src/docs/tokens/cursors.mdx +0 -21
- package/src/docs/tokens/radii.mdx +0 -23
- package/src/docs/tokens/shadows.mdx +0 -21
- package/src/docs/tokens/sizes.mdx +0 -54
- package/src/docs/tokens/spacing.mdx +0 -35
- package/src/docs/tokens/typography.mdx +0 -61
- package/src/docs/tokens/z-indices.mdx +0 -23
- package/src/docs/tokens-other.mdx +0 -17
- package/src/docs/tokens.mdx +0 -16
- package/src/docs/transforms.mdx +0 -150
- package/src/docs/transitions.mdx +0 -164
- package/src/docs/typography.mdx +0 -17
- package/src/docs/utilities.mdx +0 -17
- package/src/hooks/index.ts +0 -2
- package/src/hooks/use-copy-to-clipboard/use-copy-to-clipboard.mdx +0 -54
- package/src/hooks/use-copy-to-clipboard/use-copy-to-clipboard.ts +0 -1
- package/src/hooks/use-hotkeys/use-hotkeys.mdx +0 -48
- package/src/hooks/use-hotkeys/use-hotkeys.stories.tsx +0 -69
- package/src/hooks/use-hotkeys/use-hotkeys.ts +0 -1
- package/src/index.ts +0 -3
- package/src/test/utils.tsx +0 -20
- package/src/theme/animation-styles.ts +0 -52
- package/src/theme/breakpoints.ts +0 -32
- package/src/theme/global-css.ts +0 -53
- package/src/theme/index.ts +0 -35
- package/src/theme/keyframes.ts +0 -192
- package/src/theme/layer-styles.ts +0 -12
- package/src/theme/recipes/index.ts +0 -21
- package/src/theme/semantic-tokens/colors.ts +0 -55
- package/src/theme/semantic-tokens/index.ts +0 -9
- package/src/theme/semantic-tokens/radii.ts +0 -3
- package/src/theme/semantic-tokens/shadows.ts +0 -4
- package/src/theme/slot-recipes/index.ts +0 -15
- package/src/theme/text-styles.ts +0 -8
- package/src/theme/tokens/animations.ts +0 -4
- package/src/theme/tokens/aspect-ratios.ts +0 -5
- package/src/theme/tokens/blurs.ts +0 -5
- package/src/theme/tokens/borders.ts +0 -4
- package/src/theme/tokens/colors.ts +0 -8
- package/src/theme/tokens/cursor.ts +0 -4
- package/src/theme/tokens/durations.ts +0 -4
- package/src/theme/tokens/easings.ts +0 -4
- package/src/theme/tokens/font-sizes.ts +0 -4
- package/src/theme/tokens/font-weights.ts +0 -4
- package/src/theme/tokens/fonts.ts +0 -4
- package/src/theme/tokens/index.ts +0 -57
- package/src/theme/tokens/letter-spacings.ts +0 -24
- package/src/theme/tokens/line-heights.ts +0 -4
- package/src/theme/tokens/radii.ts +0 -4
- package/src/theme/tokens/sizes.ts +0 -120
- package/src/theme/tokens/spacing.ts +0 -4
- package/src/theme/tokens/z-index.ts +0 -4
- package/src/utils/extractStyleProps.ts +0 -26
- package/src/utils/fixedForwardRef.ts +0 -17
- package/tsconfig.json +0 -38
- package/vite.config.ts +0 -54
- package/vitest.config.ts +0 -50
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: TokensBorders
|
|
3
|
-
title: Borders
|
|
4
|
-
description: The list of available border tokens
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Borders
|
|
10
|
-
tags:
|
|
11
|
-
- border
|
|
12
|
-
icon: BorderStyle
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Borders
|
|
16
|
-
|
|
17
|
-
The list of available border tokens:
|
|
18
|
-
|
|
19
|
-
<GenericTokenTableDemo category="borders" demoProperty="border" />
|
|
20
|
-
|
|
21
|
-
> [!IMPORTANT]
|
|
22
|
-
> The design system uses `box-sizing: border-box` as a default. If you assign an
|
|
23
|
-
> element a `width` of `100px`, the computed `border-width` value will be
|
|
24
|
-
> included in the `100px`, effectively reducing the amount of space available
|
|
25
|
-
> for content.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Breakpoints
|
|
3
|
-
title: Breakpoints
|
|
4
|
-
description: The list of available breakpoints
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Other
|
|
10
|
-
- Breakpoints
|
|
11
|
-
tags:
|
|
12
|
-
- z-index
|
|
13
|
-
- layer
|
|
14
|
-
- stacking
|
|
15
|
-
- context
|
|
16
|
-
icon: DesktopWindows
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Breakpoints
|
|
20
|
-
|
|
21
|
-
Breakpoints define specific screen widths at which your design should adapt to
|
|
22
|
-
provide an optimal viewing experience for users. They are thresholds that
|
|
23
|
-
represent a starting point for changes in styling, such as font sizes, layouts,
|
|
24
|
-
and visibility of elements.
|
|
25
|
-
|
|
26
|
-
Each breakpoint is a minimum width, meaning that styles associated with that
|
|
27
|
-
breakpoint apply to screen sizes equal to or larger than the specified width.
|
|
28
|
-
The styles remain active until the next breakpoint threshold is reached.
|
|
29
|
-
|
|
30
|
-
## Tokens
|
|
31
|
-
|
|
32
|
-
The breakpoints **start** at the specified value and **end** at the next
|
|
33
|
-
breakpoint value. The following breakpoint-tokens are supported:
|
|
34
|
-
|
|
35
|
-
<GenericTokenTableDemo category="breakpoints" />
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Colors
|
|
3
|
-
title: Colors
|
|
4
|
-
description: available colors
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Colors
|
|
10
|
-
tags:
|
|
11
|
-
- colors
|
|
12
|
-
icon: Palette
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Colors
|
|
16
|
-
|
|
17
|
-
In our design system, colors are organized into **scales** based on **contrast**
|
|
18
|
-
levels to ensure clarity and **usability** across various contexts. Each scale
|
|
19
|
-
provides a range of tones, from subtle backgrounds to high-contrast elements
|
|
20
|
-
like text and interactive borders, enabling a consistent and accessible user
|
|
21
|
-
experience.
|
|
22
|
-
|
|
23
|
-
The scales are _interchangeable_, meaning a color like red can be swapped with
|
|
24
|
-
green without losing the intended contrast levels. This flexibility ensures that
|
|
25
|
-
our designs remain adaptable while maintaining visual hierarchy. Additionally,
|
|
26
|
-
_the contrast-based approach eliminates the need for a separate "dark mode"
|
|
27
|
-
design_, as the scales naturally support both light and dark environments
|
|
28
|
-
seamlessly.
|
|
29
|
-
|
|
30
|
-
## Scale steps
|
|
31
|
-
|
|
32
|
-
Below is a list of steps with corresponding use cases for various background,
|
|
33
|
-
border, and text styles in the design system:
|
|
34
|
-
|
|
35
|
-
| **Step** | **Use Case** |
|
|
36
|
-
| -------- | ------------------------------------------------------ |
|
|
37
|
-
| 1 | App background |
|
|
38
|
-
| 2 | Subtle background |
|
|
39
|
-
| 3 | UI element background |
|
|
40
|
-
| 4 | Hovered UI element background |
|
|
41
|
-
| 5 | Active / Selected UI element background |
|
|
42
|
-
| 6 | Subtle borders and separators |
|
|
43
|
-
| 7 | UI element border and focus rings |
|
|
44
|
-
| 8 | Hovered UI element border |
|
|
45
|
-
| 9 | Solid backgrounds |
|
|
46
|
-
| 10 | Hovered solid backgrounds |
|
|
47
|
-
| 11 | Low-contrast text |
|
|
48
|
-
| 12 | High-contrast text |
|
|
49
|
-
| contrast | a contrast color (black/white) that works on step 9+10 |
|
|
50
|
-
|
|
51
|
-
## System Colors
|
|
52
|
-
|
|
53
|
-
Colors available for decoration or reference.
|
|
54
|
-
|
|
55
|
-
<br />
|
|
56
|
-
|
|
57
|
-
<ColorScales ids="tomato,red,ruby, crimson, pink, plum, purple, violet, iris,indigo,blue,cyan, teal,jade,green,grass,bronze,gold,brown,orange,amber,yellow,lime,mint,sky" />
|
|
58
|
-
|
|
59
|
-
## Blacks & Whites
|
|
60
|
-
|
|
61
|
-
Black and white color scales do not adapt to the selected color-mode. Means a
|
|
62
|
-
white will always be white, a black will always be black.
|
|
63
|
-
|
|
64
|
-
> [!TIP]
|
|
65
|
-
> Use the `neutral` color scales if you want to refer to a gray-tone that works
|
|
66
|
-
> on the current background color (light-/dark-mode dependent).
|
|
67
|
-
|
|
68
|
-
<br />
|
|
69
|
-
|
|
70
|
-
<ColorScales ids="blackAlpha, whiteAlpha" />
|
|
71
|
-
|
|
72
|
-
## Brand Colors
|
|
73
|
-
|
|
74
|
-
Custom colors, tailored to the brand.
|
|
75
|
-
|
|
76
|
-
<br />
|
|
77
|
-
|
|
78
|
-
<ColorScales ids="ctviolet, ctteal, ctyellow" />
|
|
79
|
-
|
|
80
|
-
## Semantic Colors
|
|
81
|
-
|
|
82
|
-
Colors with meaning, used to communicate status or state.
|
|
83
|
-
|
|
84
|
-
<br />
|
|
85
|
-
|
|
86
|
-
<ColorScales ids="primary, neutral, info, success, danger, error" />
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: TokensCursors
|
|
3
|
-
title: Cursors
|
|
4
|
-
description: The list of available cursor tokens
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Other
|
|
10
|
-
- Cursors
|
|
11
|
-
tags:
|
|
12
|
-
- cursor
|
|
13
|
-
icon: Mouse
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# Cursors
|
|
17
|
-
|
|
18
|
-
The list of available cursors. **Hover over the gray box** to see the cursor in
|
|
19
|
-
action.
|
|
20
|
-
|
|
21
|
-
<GenericTokenTableDemo category="cursor" demoProperty="cursor" />
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: TokensRadii
|
|
3
|
-
title: Radii
|
|
4
|
-
description: The list of available radius tokens
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Radii
|
|
10
|
-
tags:
|
|
11
|
-
- radius
|
|
12
|
-
- radii
|
|
13
|
-
- border-radius
|
|
14
|
-
icon: Architecture
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# Radii
|
|
18
|
-
|
|
19
|
-
The list of available radius tokens
|
|
20
|
-
|
|
21
|
-
## Tokens
|
|
22
|
-
|
|
23
|
-
<GenericTokenTableDemo category="radii" demoProperty="borderRadius" />
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: TokensShadows
|
|
3
|
-
title: Shadows
|
|
4
|
-
description: The list of available shadow tokens
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Shadows
|
|
10
|
-
tags:
|
|
11
|
-
- shadows
|
|
12
|
-
icon: Texture
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Shadows
|
|
16
|
-
|
|
17
|
-
The list of available shadow tokens
|
|
18
|
-
|
|
19
|
-
## Tokens
|
|
20
|
-
|
|
21
|
-
<GenericTokenTableDemo category="shadows" demoProperty="boxShadow" />
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: TokensSizes
|
|
3
|
-
title: Sizes
|
|
4
|
-
description: The list of available size tokens
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Sizes
|
|
10
|
-
tags:
|
|
11
|
-
- sizes
|
|
12
|
-
icon: Straighten
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Sizes
|
|
16
|
-
|
|
17
|
-
Different size type tokens are available to suit various design needs, including
|
|
18
|
-
numerical, proportional, named, breakpoint, and others.
|
|
19
|
-
|
|
20
|
-
The list of available size tokens:
|
|
21
|
-
|
|
22
|
-
## Numerical sizes
|
|
23
|
-
|
|
24
|
-
Precise, incrementally scaled units for defining fixed dimensions
|
|
25
|
-
|
|
26
|
-
<SizesTokenDemo group="regular" />
|
|
27
|
-
|
|
28
|
-
## Proportional sizes
|
|
29
|
-
|
|
30
|
-
Proportional dimensional values expressed as fractions, suitable for dividing
|
|
31
|
-
elements in layouts.
|
|
32
|
-
|
|
33
|
-
<SizesTokenDemo group="fraction" />
|
|
34
|
-
|
|
35
|
-
## Large sizes
|
|
36
|
-
|
|
37
|
-
Semantic size labels providing consistent values for specific dimensions,
|
|
38
|
-
ensuring clarity and reusability.
|
|
39
|
-
|
|
40
|
-
<SizesTokenDemo group="large" />
|
|
41
|
-
|
|
42
|
-
## Breakpoint
|
|
43
|
-
|
|
44
|
-
Predefined screen width thresholds to adjust dimensional values for responsive
|
|
45
|
-
layouts.
|
|
46
|
-
|
|
47
|
-
<SizesTokenDemo group="breakpoint" />
|
|
48
|
-
|
|
49
|
-
## Others
|
|
50
|
-
|
|
51
|
-
Viewport-based or content-driven dimensional values for flexible and adaptive
|
|
52
|
-
element sizing.
|
|
53
|
-
|
|
54
|
-
<SizesTokenDemo group="other" />
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Spacing
|
|
3
|
-
title: Spacing
|
|
4
|
-
description: Spacing tokens are used to define the space between elements.
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Spacing
|
|
10
|
-
tags:
|
|
11
|
-
- space
|
|
12
|
-
- spacing
|
|
13
|
-
icon: SpaceBar
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# Spacing Tokens
|
|
17
|
-
|
|
18
|
-
Spacing tokens are used to define the space between elements. They are used to
|
|
19
|
-
create consistent spacing between elements and to ensure that the layout is
|
|
20
|
-
visually balanced.
|
|
21
|
-
|
|
22
|
-
> [!NOTE]
|
|
23
|
-
> Every token has a negative equivalent, in case you need to apply a negative
|
|
24
|
-
> margin etc. Access the negative version by prependind the token name with a
|
|
25
|
-
> dash. e.g. `-100`, `-400`, `-1000`, etc.
|
|
26
|
-
|
|
27
|
-
<br />
|
|
28
|
-
|
|
29
|
-
<SpacingTokenDemo />
|
|
30
|
-
|
|
31
|
-
<br />
|
|
32
|
-
|
|
33
|
-
> [!TIP]
|
|
34
|
-
> To quickly calculate the token value in px, take the token name and divide it
|
|
35
|
-
> by 25. e.g. `100 / 25 = 4px`, `400 / 25 = 16px`, `1000 / 25 = 40px`, etc.
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: TokensTypography
|
|
3
|
-
title: Typography
|
|
4
|
-
description: everything typography related
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Typography
|
|
10
|
-
tags:
|
|
11
|
-
- text
|
|
12
|
-
- headings
|
|
13
|
-
- strong
|
|
14
|
-
- bold
|
|
15
|
-
- italic
|
|
16
|
-
- emphasize
|
|
17
|
-
icon: FormatSize
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
# Typography
|
|
21
|
-
|
|
22
|
-
Below you'll find the raw tokens to change typography styles on a text-element.
|
|
23
|
-
|
|
24
|
-
## Text Styles
|
|
25
|
-
|
|
26
|
-
Text styles are collections of multiple typography rules (such as `font-size`,
|
|
27
|
-
`line-height`, `letter-spacing` etc.) that create a specific, reusable style.
|
|
28
|
-
|
|
29
|
-
> [!NOTE]
|
|
30
|
-
> I added `caption`, `detail` & `body` from our existing styles, but they are
|
|
31
|
-
> essentially just combinations of font-size & line-height and can be mapped to
|
|
32
|
-
> `xs`, `sm` & `md`. The `headline` looks can be achieved by using the
|
|
33
|
-
> textStyles on the `<Heading/>` component.
|
|
34
|
-
|
|
35
|
-
```jsx
|
|
36
|
-
<Text textStyle="nameOfDesiredTextStyle">Heading 1</Text>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Available Text Styles
|
|
40
|
-
|
|
41
|
-
<TextStylesDemo />
|
|
42
|
-
|
|
43
|
-
## Fonts
|
|
44
|
-
|
|
45
|
-
<GenericTokenTableDemo category="fonts" demoProperty="fontFamily" />
|
|
46
|
-
|
|
47
|
-
## Font Sizes
|
|
48
|
-
|
|
49
|
-
<GenericTokenTableDemo category="fontSizes" demoProperty="fontSize" />
|
|
50
|
-
|
|
51
|
-
## Font Weights
|
|
52
|
-
|
|
53
|
-
<GenericTokenTableDemo category="fontWeights" demoProperty="fontWeight" />
|
|
54
|
-
|
|
55
|
-
## Letter Spacings
|
|
56
|
-
|
|
57
|
-
<GenericTokenTableDemo category="letterSpacings" demoProperty="letterSpacing" />
|
|
58
|
-
|
|
59
|
-
## Line Heights
|
|
60
|
-
|
|
61
|
-
<GenericTokenTableDemo category="lineHeights" demoProperty="lineHeight" />
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: ZIndex
|
|
3
|
-
title: Z-Indices
|
|
4
|
-
description: The list of available z-index tokens
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Other
|
|
10
|
-
- Z-Indices
|
|
11
|
-
tags:
|
|
12
|
-
- z-index
|
|
13
|
-
- layer
|
|
14
|
-
- stacking
|
|
15
|
-
- context
|
|
16
|
-
icon: Layers
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Z-Indices
|
|
20
|
-
|
|
21
|
-
The list of available z-index tokens.
|
|
22
|
-
|
|
23
|
-
<GenericTokenTableDemo category="zIndex" />
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Tokens-Other
|
|
3
|
-
title: Other
|
|
4
|
-
description: Less frequently used design-tokens
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 9999
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
- Other
|
|
10
|
-
tags:
|
|
11
|
-
- document
|
|
12
|
-
icon: MoreHoriz
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# Other
|
|
16
|
-
|
|
17
|
-
Less frequently used design-tokens
|
package/src/docs/tokens.mdx
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Tokens
|
|
3
|
-
title: Tokens
|
|
4
|
-
description: design tokens to be used in conjunction with the ui components
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 2
|
|
7
|
-
menu:
|
|
8
|
-
- Tokens
|
|
9
|
-
tags:
|
|
10
|
-
- tokens
|
|
11
|
-
- design
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Tokens
|
|
15
|
-
|
|
16
|
-
A collection of design tokens
|
package/src/docs/transforms.mdx
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Style Props-Transforms
|
|
3
|
-
title: Transforms
|
|
4
|
-
description: JSX style props for transforming elements.
|
|
5
|
-
documentState: InitialDraft
|
|
6
|
-
order: 999
|
|
7
|
-
menu:
|
|
8
|
-
- Style Props
|
|
9
|
-
- Transforms
|
|
10
|
-
tags:
|
|
11
|
-
- document
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Transforms
|
|
15
|
-
|
|
16
|
-
JSX style props for transforming elements.
|
|
17
|
-
|
|
18
|
-
## Scale
|
|
19
|
-
|
|
20
|
-
Use the `scale` prop to control the scale of an element.
|
|
21
|
-
|
|
22
|
-
```jsx
|
|
23
|
-
<Box scale="1.2" />
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
When the `scale` prop is set to `auto`, the `scaleX` and `scaleY` props are used
|
|
27
|
-
to control the scale of the element.
|
|
28
|
-
|
|
29
|
-
| Prop | CSS Property | Token Category |
|
|
30
|
-
| ------- | ------------ | -------------- |
|
|
31
|
-
| `scale` | `scale` | - |
|
|
32
|
-
|
|
33
|
-
## Scale X
|
|
34
|
-
|
|
35
|
-
Use the `scaleX` prop to control the scaleX property of an element. This
|
|
36
|
-
requires the `scale` prop to be set to `auto`.
|
|
37
|
-
|
|
38
|
-
```jsx
|
|
39
|
-
<Box scale="auto" scaleX="1.3" />
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
| Prop | CSS Property | Token Category |
|
|
43
|
-
| -------- | ------------ | -------------- |
|
|
44
|
-
| `scaleX` | `--scale-x` | - |
|
|
45
|
-
|
|
46
|
-
## Scale Y
|
|
47
|
-
|
|
48
|
-
Use the `scaleY` prop to control the scaleY property of an element. This
|
|
49
|
-
requires the `scale` prop to be set to `auto`.
|
|
50
|
-
|
|
51
|
-
```jsx
|
|
52
|
-
<Box scale="auto" scaleY="0.4" />
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
| Prop | CSS Property | Token Category |
|
|
56
|
-
| -------- | ------------ | -------------- |
|
|
57
|
-
| `scaleY` | `--scale-y` | - |
|
|
58
|
-
|
|
59
|
-
## Rotate
|
|
60
|
-
|
|
61
|
-
Use the `rotate` prop to control the rotate property of an element.
|
|
62
|
-
|
|
63
|
-
```jsx
|
|
64
|
-
<Box rotate="45deg" />
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
When the `rotate` prop is set to `auto`, the `rotateX` and `rotateY` props are
|
|
68
|
-
used to control the rotate of the element.
|
|
69
|
-
|
|
70
|
-
| Prop | CSS Property | Token Category |
|
|
71
|
-
| -------- | ------------ | -------------- |
|
|
72
|
-
| `rotate` | `rotate` | - |
|
|
73
|
-
|
|
74
|
-
## Rotate X
|
|
75
|
-
|
|
76
|
-
Use the `rotateX` prop to control the rotateX property of an element.
|
|
77
|
-
|
|
78
|
-
```jsx
|
|
79
|
-
<Box rotateX="45deg" />
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
| Prop | CSS Property | Token Category |
|
|
83
|
-
| --------- | ------------ | -------------- |
|
|
84
|
-
| `rotateX` | `--rotate-x` | - |
|
|
85
|
-
|
|
86
|
-
## Rotate Y
|
|
87
|
-
|
|
88
|
-
Use the `rotateY` prop to control the rotateY property of an element.
|
|
89
|
-
|
|
90
|
-
```jsx
|
|
91
|
-
<Box rotateY="45deg" />
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
| Prop | CSS Property | Token Category |
|
|
95
|
-
| --------- | ------------ | -------------- |
|
|
96
|
-
| `rotateY` | `--rotate-y` | - |
|
|
97
|
-
|
|
98
|
-
## Translate
|
|
99
|
-
|
|
100
|
-
Use the `translate` prop to control the translate property of an element.
|
|
101
|
-
|
|
102
|
-
```jsx
|
|
103
|
-
<Box translate="40px" />
|
|
104
|
-
<Box translate="50% -40%" />
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
When the `translate` prop is set to `auto`, the `translateX` and `translateY`
|
|
108
|
-
props are used to control the translate of the element.
|
|
109
|
-
|
|
110
|
-
| Prop | CSS Property | Token Category |
|
|
111
|
-
| ----------- | ------------ | -------------- |
|
|
112
|
-
| `translate` | `translate` | - |
|
|
113
|
-
|
|
114
|
-
## Translate X
|
|
115
|
-
|
|
116
|
-
Use the `translateX` prop to control the translateX property of an element. This
|
|
117
|
-
requires the `translate` prop to be set to `auto`.
|
|
118
|
-
|
|
119
|
-
```jsx
|
|
120
|
-
// hardcoded values
|
|
121
|
-
<Box translate="auto" translateX="50%" />
|
|
122
|
-
<Box translate="auto" translateX="20px" />
|
|
123
|
-
|
|
124
|
-
// token values
|
|
125
|
-
<Box translate="auto" translateX="4" />
|
|
126
|
-
<Box translate="auto" translateX="-10" />
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
| Prop | CSS Property | Token Category |
|
|
130
|
-
| ------------ | --------------- | -------------- |
|
|
131
|
-
| `translateX` | `--translate-x` | `spacing` |
|
|
132
|
-
|
|
133
|
-
## Translate Y
|
|
134
|
-
|
|
135
|
-
Use the `translateY` prop to control the translateY property of an element. This
|
|
136
|
-
requires the `translate` prop to be set to `auto`.
|
|
137
|
-
|
|
138
|
-
```jsx
|
|
139
|
-
// hardcoded values
|
|
140
|
-
<Box translate="auto" translateY="-40%" />
|
|
141
|
-
<Box translate="auto" translateY="4rem" />
|
|
142
|
-
|
|
143
|
-
// token values
|
|
144
|
-
<Box translate="auto" translateY="4" />
|
|
145
|
-
<Box translate="auto" translateY="-10" />
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
| Prop | CSS Property | Token Category |
|
|
149
|
-
| ------------ | --------------- | -------------- |
|
|
150
|
-
| `translateY` | `--translate-y` | `spacing` |
|