Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

feat: new token style source color (#2609)

Taylor Nowotny107c8e48bc7c
diff --git a/packages/design-system/src/__generated__/figma-design-tokens.json b/packages/design-system/src/__generated__/figma-design-tokens.json
index d1308ce86d..0fb4d41ccd 100644
--- a/packages/design-system/src/__generated__/figma-design-tokens.json
+++ b/packages/design-system/src/__generated__/figma-design-tokens.json
@@ -3,19 +3,19 @@
"menu drop shadow": {
"value": [
{
- "color": "#0000004d",
+ "color": "#0000001a",
"type": "dropShadow",
"x": 0,
- "y": 5,
- "blur": 17,
+ "y": 2,
+ "blur": 7,
"spread": 0
},
{
- "color": "#0000001a",
+ "color": "#0000004d",
"type": "dropShadow",
"x": 0,
- "y": 2,
- "blur": 7,
+ "y": 5,
+ "blur": 17,
"spread": 0
}
],
@@ -551,6 +551,11 @@
"value": "#e9ebed",
"type": "color",
"description": "disabled state for button"
+ },
+ "disabled-dark": {
+ "value": "#646464",
+ "type": "color",
+ "description": "For disabled controls that are against a dark background."
}
},
"item": {
@@ -606,9 +611,9 @@
},
"style-source": {
"token": {
- "value": "#096cff",
+ "value": "#834df4",
"type": "color",
- "description": "For the token variant of the Style Source component."
+ "description": "Style sources that are tokens"
},
"tag": {
"value": "#d54113",
@@ -632,7 +637,7 @@
},
"gradient": {
"token": {
- "value": "linear-gradient(90deg, #096cff00 0%, #096cff 31.87%)",
+ "value": "linear-gradient(90deg, #834df400 0%, #834df4 31.87%)",
"type": "color"
},
"tag": {
@@ -642,12 +647,21 @@
"unselected": {
"value": "linear-gradient(90deg, #68707600 0%, #687076 31.87%)",
"type": "color"
+ },
+ "local": {
+ "value": "linear-gradient(90deg, #096cff00 0%, #096cff 31.87%)",
+ "type": "color"
}
},
"breakpoint": {
"value": "#bd2fdb",
"type": "color",
"description": "The color of the style source badge that represents a breakpoint. Used in tooltips."
+ },
+ "local": {
+ "value": "#096cff",
+ "type": "color",
+ "description": "For the local variant of the Style Source component."
}
},
"canvas": {
@@ -717,6 +731,11 @@
"type": "color",
"description": "Hover background for overwritten labels."
}
+ },
+ "disabled-dark": {
+ "value": "#323232",
+ "type": "color",
+ "description": "For disabled controls that are against a dark background."
}
},
"brand": {
@@ -921,7 +940,7 @@
"description": "default color for all text and icons"
},
"subtle": {
- "value": "#707375",
+ "value": "#656869",
"type": "color",
"description": "color for less prominent elements. Used in small icon button, nested select button, input field, color input, select button, panel button, text area, search field & toast"
},
@@ -961,14 +980,14 @@
"description": "color for hidden item element within navigator item component"
},
"link": {
- "value": "#006ADC",
+ "value": "#006adc",
"type": "color",
"description": "color for link text"
},
"link-visited": {
- "value": "#793AAF",
+ "value": "#793aaf",
"type": "color",
- "description": "color for visited links"
+ "description": "Text links that the user has visited."
},
"flex-ui": {
"main": {
@@ -1089,11 +1108,6 @@
"value": "#006adc",
"type": "color",
"description": "Text links that are not yet visited."
- },
- "link-visited": {
- "value": "#793aaf",
- "type": "color",
- "description": "Text links that the user has visited."
}
},
"Brand": {
@@ -1358,16 +1372,16 @@
"color": "#00000014",
"type": "dropShadow",
"x": 0,
- "y": 1,
- "blur": 7,
+ "y": 4,
+ "blur": 15,
"spread": 0
},
{
"color": "#00000014",
"type": "dropShadow",
"x": 0,
- "y": 4,
- "blur": 15,
+ "y": 1,
+ "blur": 7,
"spread": 0
}
],
@@ -1441,4 +1455,4 @@
"global"
]
}
-}
+}
\ No newline at end of file
diff --git a/packages/design-system/src/__generated__/figma-design-tokens.ts b/packages/design-system/src/__generated__/figma-design-tokens.ts
index 854f6f9ac3..d31471c506 100644
--- a/packages/design-system/src/__generated__/figma-design-tokens.ts
+++ b/packages/design-system/src/__generated__/figma-design-tokens.ts
@@ -1,11 +1,11 @@
// Generated by transform-figma-tokens.ts from ./src/__generated__/figma-design-tokens.json
export const boxShadow = {
- menuDropShadow: "0px 5px 17px 0px #0000004d, 0px 2px 7px 0px #0000001a",
+ menuDropShadow: "0px 2px 7px 0px #0000001a, 0px 5px 17px 0px #0000004d",
brandElevationSmall: "0px 4px 4px 0px #1717171a",
brandElevationBig: "0px 8px 16px 0px #1717171a",
panelSectionDropShadow:
- "0px 1px 7px 0px #00000014, 0px 4px 15px 0px #00000014",
+ "0px 4px 15px 0px #00000014, 0px 1px 7px 0px #00000014",
} as const;
export const fontFamilies = {
@@ -373,6 +373,7 @@ export const color = {
backgroundButtonHover: "#ffffff17",
backgroundButtonPressed: "#0000001c",
backgroundButtonDisabled: "#e9ebed",
+ backgroundButtonDisabledDark: "#646464",
backgroundItemCurrent: "#096cff",
backgroundItemCurrentChild: "#e1f0ff",
backgroundItemCurrentHidden: "#7e868c",
@@ -383,18 +384,21 @@ export const color = {
backgroundSpacingTopBottom: "#f1f3f5",
backgroundSpacingLeftRight: "#f1f3f5",
backgroundSpacingHover: "#d7dbdf",
- backgroundStyleSourceToken: "#096cff",
+ backgroundStyleSourceToken: "#834df4",
backgroundStyleSourceTag: "#d54113",
backgroundStyleSourceState: "#00894a",
backgroundStyleSourceNeutral: "#687076",
backgroundStyleSourceDisabled: "#9da2a6",
backgroundStyleSourceGradientToken:
- "linear-gradient(90deg, #096cff00 0%, #096cff 31.87%)",
+ "linear-gradient(90deg, #834df400 0%, #834df4 31.87%)",
backgroundStyleSourceGradientTag:
"linear-gradient(90deg, #d5411300 0%, #d54113 31.87%)",
backgroundStyleSourceGradientUnselected:
"linear-gradient(90deg, #68707600 0%, #687076 31.87%)",
+ backgroundStyleSourceGradientLocal:
+ "linear-gradient(90deg, #096cff00 0%, #096cff 31.87%)",
backgroundStyleSourceBreakpoint: "#bd2fdb",
+ backgroundStyleSourceLocal: "#096cff",
backgroundCanvas: "#c7c7c7",
backgroundTopbar: "#2d2d2d",
backgroundGradientPrimary:
@@ -412,6 +416,7 @@ export const color = {
backgroundPrimaryLight: "#2e82ff",
backgroundOverwrittenMain: "#ffd9d9",
backgroundOverwrittenHover: "#fec4c4",
+ backgroundDisabledDark: "#323232",
brandBackgroundProjectCardFront:
"linear-gradient(0deg, #fbf8ff 0%, #e2e2e2 100%)",
brandBackgroundProjectCardBack:
@@ -456,7 +461,7 @@ export const color = {
borderOverwrittenFlexUi: "#dc3d43",
borderPrimary: "#096cff",
foregroundMain: "#11181c",
- foregroundSubtle: "#707375",
+ foregroundSubtle: "#656869",
foregroundCategoryLabel: "#889096",
foregroundTextSubtle: "#687076",
foregroundDestructive: "#d13a3a",
@@ -464,6 +469,8 @@ export const color = {
foregroundInfo: "#096cff",
foregroundDisabled: "#c1c8cd",
foregroundHiddenItem: "#7e868c",
+ foregroundLink: "#006adc",
+ foregroundLinkVisited: "#793aaf",
foregroundFlexUiMain: "#c7c7c7",
foregroundFlexUiHover: "#96c7f2",
foregroundContrastMain: "#ffffff",
@@ -486,7 +493,6 @@ export const color = {
foregroundOverwrittenFlexUi: "#dc3d43",
foregroundInversePrimary: "#ff22ae",
foregroundLinkNotVisited: "#006adc",
- foregroundLinkVisited: "#793aaf",
maintenanceLight: "#ededed",
maintenanceMedium: "#c7c7c7",
maintenanceDark: "#858585",