Skip to content

Commit

Permalink
chore: corrected design tokens types
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Sep 3, 2024
1 parent 95b9de0 commit e78b1ec
Show file tree
Hide file tree
Showing 74 changed files with 98 additions and 79 deletions.
6 changes: 3 additions & 3 deletions styles/css/core/variables.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly, this file was auto-generated.
* Generated on Mon, 02 Sep 2024 19:21:13 GMT
* Generated on Tue, 03 Sep 2024 13:57:51 GMT
*/

:root {
Expand Down Expand Up @@ -89,9 +89,9 @@
--pgn-typography-font-size-sm: 0.875rem; /* Small font size. */
--pgn-typography-font-size-lg: var(--pgn-typography-font-size-base) * 1.25; /* Lead text font size. */
--pgn-typography-font-size-base: 1.125rem; /* Base font size. */
--pgn-typography-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, '"Liberation Mono"', '"Courier New"', monospace; /* Monospace font family. */
--pgn-typography-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; /* Monospace font family. */
--pgn-typography-font-family-serif: serif; /* Serif font family. */
--pgn-typography-font-family-sans-serif: -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, '"Helvetica Neue"', Arial, '"Noto Sans"', sans-serif, '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"'; /* Sans-serif font family. */
--pgn-typography-font-family-sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; /* Sans-serif font family. */
--pgn-typography-font-family-base: var(--pgn-typography-font-family-sans-serif); /* Basic font family. */
--pgn-typography-blockquote-font-size: calc(var(--pgn-typography-font-size-base) * 1.25);
--pgn-typography-blockquote-small-font-size: var(--pgn-typography-font-size-sm);
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/alias/size.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"border": {
"width": { "source": "$border-width", "$value": "1px", "$description": "Default border width." },
"radius": {
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/ActionRow.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"action-row": {
"gap": {
"x": { "source": "$action-row-gap-x", "$value": ".5rem" },
Expand Down
7 changes: 4 additions & 3 deletions tokens/src/core/components/Annotation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"annotation": {
"padding": { "source": "$annotation-padding", "$value": ".5rem" },
"arrow-side": {
Expand All @@ -10,11 +10,12 @@
},
"typography": {
"annotation": {
"font-size": { "source": "$annotation-font-size", "$value": "{typography.font.size.sm}" },
"line-height": { "source": "$annotation-line-height", "$value": "{typography.line-height.sm}", "type": "number" }
"font-size": { "source": "$annotation-font-size", "$value": "{typography.font.size.sm}", "$type": "dimension" },
"line-height": { "source": "$annotation-line-height", "$value": "{typography.line-height.sm}", "$type": "number" }
}
},
"size": {
"$type": "dimension",
"annotation": {
"arrow-border": {
"width": { "source": "$annotation-arrow-border-width", "$value": ".5rem" }
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/AvatarButton.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"avatar-button": {
"padding-left": {
"base": { "source": "$avatar-button-padding-left", "$value": ".25em" },
Expand Down
3 changes: 2 additions & 1 deletion tokens/src/core/components/Breadcrumb.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"breadcrumb": {
"margin": {
"left": { "source": "$breadcrumb-margin-left", "$value": ".5rem" }
}
}
},
"size": {
"$type": "dimension",
"breadcrumb": {
"border": {
"radius": {
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Bubble.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "transition",
"spacing": {
"$type": "transition",
"bubble": {
"expandable-padding": {
"y": { "source": "$bubble-expandable-padding-y", "$value": "0" },
Expand Down
4 changes: 3 additions & 1 deletion tokens/src/core/components/Card.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"card": {
"spacer": {
"x": { "source": "$card-spacer-x", "$value": "1.25rem" },
Expand Down Expand Up @@ -40,6 +40,7 @@
}
},
"size": {
"$type": "dimension",
"card": {
"border": {
"width": { "source": "$card-border-width", "$value": "{size.border.width}" },
Expand Down Expand Up @@ -74,6 +75,7 @@
}
},
"typography": {
"$type": "dimension",
"footer": {
"text": {
"font-size": { "source": "$card-footer-text-font-size", "$value": "{typography.font.size.xs}" }
Expand Down
3 changes: 2 additions & 1 deletion tokens/src/core/components/Chip.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"chip": {
"margin": {
"base": { "source": "$chip-margin", "$value": ".125rem" },
Expand All @@ -24,6 +24,7 @@
}
},
"size": {
"$type": "dimension",
"chip": {
"border-radius": { "source": "$chip-border-radius", "$value": ".375rem" },
"icon": { "source": "$chip-icon-size", "$value": "1.5rem" }
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/ChipCarousel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"chip-carousel": {
"controls-top-offset": { "source": "$chip-carousel-controls-top-offset", "$value": ".375rem" },
"container": {
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Collapsible.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"collapsible": {
"card": {
"spacer": {
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/ColorPicker.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"color-picker": {
"sm": { "source": "$picker-size-sm", "$value": "2rem" },
"md": { "source": "$picker-size-md", "$value": "calc(1.3333em + 1.125rem + 2px)" }
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Container.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"container": {
"max-width": {
"xs": { "source": "$max-width-xs", "$value": "464px" },
Expand Down
3 changes: 2 additions & 1 deletion tokens/src/core/components/Dropzone.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$type": "dimension",
"typography": {
"$type": "dimension",
"dropzone": {
"restriction-msg": {
"font-size": { "source": "$dropzone-restriction-msg-font-size", "$value": "{typography.font.size.xs}" }
}
}
},
"spacing": {
"$type": "dimension",
"dropzone": {
"padding": { "source": "$dropzone-padding", "$value": "1.5rem" },
"border": {
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Form/spacing.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"form": {
"input": {
"padding": {
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Form/transition.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "transition",
"transition": {
"$type": "transition",
"form": {
"input": {
"source": "$input-transition",
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Icon.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"icon": {
"inline": { "source": "$icon-inline", "$value": ".8em" },
"xs": { "source": "$icon-xs", "$value": "1rem" },
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/IconButton.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"icon-button": {
"diameter": {
"md": { "source": "$btn-icon-diameter-md", "$value": "2.75rem" },
Expand Down
4 changes: 3 additions & 1 deletion tokens/src/core/components/Navbar.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"navbar": {
"padding": {
"y": { "source": "$navbar-padding-y", "$value": "calc({spacing.spacer.base} / 2)" },
Expand All @@ -23,6 +23,7 @@
}
},
"typography": {
"$type": "dimension",
"navbar": {
"brand": {
"font-size": { "source": "$navbar-brand-font-size", "$value": "{typography.font.size.lg}" }
Expand All @@ -36,6 +37,7 @@
}
},
"size": {
"$type": "dimension",
"navbar": {
"nav": {
"scroll": {
Expand Down
4 changes: 3 additions & 1 deletion tokens/src/core/components/Pagination.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"$type": "dimension",
"typography": {
"pagination": {
"font-size": {
"$type": "dimension",
"sm": { "source": "$pagination-font-size-sm", "$value": ".875rem" }
},
"line-height": { "source": "$pagination-line-height", "$value": "1.5rem", "$type": "number" }
}
},
"spacing": {
"$type": "dimension",
"pagination": {
"padding": {
"y": {
Expand All @@ -25,6 +26,7 @@
}
},
"size": {
"$type": "dimension",
"pagination": {
"icon": {
"width": { "source": "$pagination-icon-width", "$value": "2.25rem" },
Expand Down
3 changes: 2 additions & 1 deletion tokens/src/core/components/SearchField.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"search-field": {
"border": {
"width": {
Expand All @@ -13,6 +13,7 @@
}
},
"spacing": {
"$type": "dimension",
"search-field": {
"margin-button": { "source": "$search-button-margin", "$value": ".5rem" }
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/SelectableBox.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"selectable-box": {
"padding": { "source": "$selectable-box-padding", "$value": "1rem" },
"border-radius": { "source": "$selectable-box-border-radius", "$value": ".25rem" },
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Sheet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "ratio",
"elevation": {
"$type": "ratio",
"sheet": {
"zindex": {
"backdrop": { "source": "$zindex-sheet-backdrop", "$value": "1031" },
Expand Down
3 changes: 2 additions & 1 deletion tokens/src/core/components/Spinner.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"spinner": {
"base": {
"width": { "source": "$spinner-width", "$value": "2rem" },
Expand All @@ -15,6 +15,7 @@
}
},
"spacing": {
"$type": "dimension",
"vertical-align": { "source": "$spinner-vertical-align", "$value": ".125em" }
}
}
2 changes: 1 addition & 1 deletion tokens/src/core/components/Stack.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"stack": {
"gap": { "source": "$stack-gap", "$value": "0" }
}
Expand Down
3 changes: 2 additions & 1 deletion tokens/src/core/components/Stepper.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"stepper": {
"header": {
"padding": {
Expand All @@ -21,6 +21,7 @@
}
},
"size": {
"$type": "dimension",
"stepper": {
"header": {
"height-min": { "source": "$stepper-header-min-height", "$value": "5.13rem" }
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Sticky.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"sticky": {
"offset": { "source": "$sticky-offset", "$value": "0" }
}
Expand Down
2 changes: 1 addition & 1 deletion tokens/src/core/components/Tab.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"spacing": {
"$type": "dimension",
"tab": {
"more-link-dropdown-toggle": {
"padding-x": { "source": "$tab-more-link-dropdown-toggle-padding-x", "$value": ".7rem" },
Expand Down
3 changes: 2 additions & 1 deletion tokens/src/core/components/Tabs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"tabs": {
"notification": {
"height": { "source": "$tab-notification-height", "$value": "1rem" },
Expand All @@ -9,6 +9,7 @@
}
},
"typography": {
"$type": "dimension",
"tabs": {
"notification": {
"font-size": { "source": "$tab-notification-font-size", "$value": "{typography.font.size.xs}" }
Expand Down
4 changes: 3 additions & 1 deletion tokens/src/core/components/Toast.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"$type": "dimension",
"typography": {
"$type": "dimension",
"toast": {
"font-size": { "source": "$toast-font-size", "$value": ".875rem" }
}
},
"size": {
"$type": "dimension",
"toast": {
"max-width": { "source": "$toast-max-width", "$value": "400px" },
"border": {
Expand All @@ -15,6 +16,7 @@
}
},
"spacing": {
"$type": "dimension",
"toast": {
"padding": {
"x": { "source": "$toast-padding-x", "$value": ".75rem" },
Expand Down
3 changes: 2 additions & 1 deletion tokens/src/core/components/general/caret.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"$type": "dimension",
"size": {
"$type": "dimension",
"caret": {
"width": { "source": "$caret-width", "$value": ".3em" }
}
},
"spacing": {
"$type": "dimension",
"caret": {
"base": { "source": "$caret-spacing", "$value": ".255em" },
"vertical-align": { "source": "$caret-vertical-align", "$value": ".255em" }
Expand Down
Loading

0 comments on commit e78b1ec

Please sign in to comment.