diff --git a/apps/docs/.eslintrc.json b/apps/docs/.eslintrc.json
index d8fc1b3c2..861810985 100644
--- a/apps/docs/.eslintrc.json
+++ b/apps/docs/.eslintrc.json
@@ -13,6 +13,7 @@
"globals": {
"Card": true,
"Table": true,
- "Tabs": true
+ "Tabs": true,
+ "TableSection": true
}
}
diff --git a/apps/docs/components/tableSection/TableSection.tsx b/apps/docs/components/tableSection/TableSection.tsx
new file mode 100644
index 000000000..d40156086
--- /dev/null
+++ b/apps/docs/components/tableSection/TableSection.tsx
@@ -0,0 +1,29 @@
+import React from "react";
+import Table from "@/components/ui/table/Table";
+
+import "@hopper-ui/tokens/fonts.css";
+
+interface TokenProps {
+ name: string;
+ value: string;
+}
+interface TableSectionProps {
+ tokens: TokenProps[];
+ categories: string[];
+ excludedCategories?: string[];
+ categoryKey: string;
+}
+
+const TableSection = ({ tokens, categories, excludedCategories, categoryKey }: TableSectionProps) => {
+ const categoryTokens = tokens.filter(token => {
+ const excludedCategoryTokens = excludedCategories?.some(category => token.name.includes(category));
+
+ return categories.some(category => token.name.includes(category)) && !excludedCategoryTokens;
+ });
+
+ return
;
+};
+
+export default TableSection;
diff --git a/apps/docs/components/ui/mdx/Mdx.tsx b/apps/docs/components/ui/mdx/Mdx.tsx
index 28dfd3037..2587f0c22 100644
--- a/apps/docs/components/ui/mdx/Mdx.tsx
+++ b/apps/docs/components/ui/mdx/Mdx.tsx
@@ -7,6 +7,7 @@ import Pre from "@/components/ui/pre/Pre";
import Title from "@/components/ui/title/Title";
import Table from "@/components/ui/table/Table";
import Tabs from "@/components/tabs/Tabs";
+import TableSection from "@/components/tableSection/TableSection";
type HeadingProps = React.DetailedHTMLProps, HTMLHeadingElement>;
@@ -16,6 +17,7 @@ const components = {
pre: Pre,
Table: Table,
Tabs: Tabs,
+ TableSection: TableSection,
h1: (props: HeadingProps) => {
return ;
},
diff --git a/apps/docs/content/tokens/semantic/dimensions.mdx b/apps/docs/content/tokens/semantic/dimensions.mdx
index 86050ca01..f3d687662 100644
--- a/apps/docs/content/tokens/semantic/dimensions.mdx
+++ b/apps/docs/content/tokens/semantic/dimensions.mdx
@@ -8,4 +8,46 @@ import tokens from '../../../datas/tokens.json';
export const categoryKey = "size";
-
+## Padding
+
+### Inset
+
+Inset space refers to the space within a block or container from which elements are separated from the edge. By default, the inset is equal on all four sides. Inset is also known as padding.
+
+
+
+### Inset Squish
+
+Squish inset reduces the top and bottom padding by one space increment relative to the default inset space.
+
+
+
+### Inset Stretch
+
+Stretch inset increases the top and bottom padding by one space increment relative to the default inset space.
+
+
+
+## Margin
+
+### Stack
+
+Stack is the space that separates elements or containers arranged vertically within a column. The last element of the stack should omit this space.
+
+
+
+### Inline
+
+Inline refers to the space that separates inline elements arranged horizontally and that may wrap on the right. The last element should omit this space.
+
+
diff --git a/apps/docs/datas/tokens-dark.json b/apps/docs/datas/tokens-dark.json
index a5dca088f..bb58ce84b 100644
--- a/apps/docs/datas/tokens-dark.json
+++ b/apps/docs/datas/tokens-dark.json
@@ -781,7 +781,7 @@
},
{
"name": "hop-upsell-surface-hover",
- "value": "#7e5e0a"
+ "value": "#eac96d"
},
{
"name": "hop-upsell-border-disabled",
@@ -1077,7 +1077,7 @@
},
{
"name": "hop-decorative-option8-surface",
- "value": "#ffbcb7"
+ "value": "#ffd6d3"
},
{
"name": "hop-decorative-option8-text",
diff --git a/apps/docs/datas/tokens.json b/apps/docs/datas/tokens.json
index 45a0b3a45..e8174b483 100644
--- a/apps/docs/datas/tokens.json
+++ b/apps/docs/datas/tokens.json
@@ -1077,7 +1077,7 @@
},
{
"name": "hop-decorative-option8-surface",
- "value": "#ffbcb7"
+ "value": "#ffd6d3"
},
{
"name": "hop-decorative-option8-text",
@@ -1395,6 +1395,10 @@
"name": "hop-neutral-border-disabled",
"value": "#ecebe8"
},
+ {
+ "name": "hop-neutral-border-strong-hover",
+ "value": "#505050"
+ },
{
"name": "hop-neutral-border-strong",
"value": "#3c3c3c"
diff --git a/packages/tokens/src/tokens/semantic/dark/colors.tokens.json b/packages/tokens/src/tokens/semantic/dark/colors.tokens.json
index 8c0f7eded..678036ab9 100644
--- a/packages/tokens/src/tokens/semantic/dark/colors.tokens.json
+++ b/packages/tokens/src/tokens/semantic/dark/colors.tokens.json
@@ -22,7 +22,7 @@
},
"surface-hover": {
"$type": "color",
- "$value": "{sunken-treasure.600}"
+ "$value": "{sunken-treasure.100}"
},
"border-disabled": {
"$type": "color",
@@ -327,7 +327,7 @@
},
"surface": {
"$type": "color",
- "$value": "{amanita.100}"
+ "$value": "{amanita.75}"
},
"text": {
"$type": "color",
diff --git a/packages/tokens/src/tokens/semantic/light/colors.tokens.json b/packages/tokens/src/tokens/semantic/light/colors.tokens.json
index 0dc264675..8dc7ee17e 100644
--- a/packages/tokens/src/tokens/semantic/light/colors.tokens.json
+++ b/packages/tokens/src/tokens/semantic/light/colors.tokens.json
@@ -327,7 +327,7 @@
},
"surface": {
"$type": "color",
- "$value": "{amanita.100}"
+ "$value": "{amanita.75}"
},
"text": {
"$type": "color",
@@ -662,6 +662,10 @@
"$type": "color",
"$value": "{rock.50}"
},
+ "border-strong-hover": {
+ "$type": "color",
+ "$value": "{rock.700}"
+ },
"border-strong": {
"$type": "color",
"$value": "{rock.800}"