Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
resource11 committed Nov 8, 2024
1 parent a5a46a0 commit 6954bb9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion technical-reports/color/token-naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const SubbrandContext = React.createContext();

const Theme = React.forwardRef(function Theme(
{ theme = 'light', subbrand, children },
forwardedRef
forwardedRef,
) {
return (
<SubbrandContext.Provider value={subbrand}>
Expand Down
6 changes: 3 additions & 3 deletions technical-reports/format/groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Group keys without a dollar sign (`$`) prefix denote:
"$description": "This is an example of a group containing a single token",
"Token name": {
"$value": "#000000",
"$type": "color",
"$type": "color"
}
}
}
Expand All @@ -95,11 +95,11 @@ Group keys without a dollar sign (`$`) prefix denote:
"Subgroup of tokens": {
"Token 1 name": {
"$value": "#aabbcc",
"$type": "color",
"$type": "color"
},
"Token 2 name": {
"$value": "#ddeeff",
"$type": "color",
"$type": "color"
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions technical-reports/format/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ If an explicit type is set, but the value does not match the expected syntax the

Represents a color in the UI. The `$type` property MUST be set to the string `color`. The `$value` property MUST be an object string containing a string `colorSpace`, a numeric `coordinates` array, optional numeric `alpha`, string `colorProfile`, and string `fallback` to support legacy color spaces as needed.

| Key | Type | Required | Description |
| :------ | :------: | :------: | :----------------------------------------------------------------- |
| `colorSpace` | `string` | Y | An string representing the color space. |
| `colorProfile` | `string` | | String representing url of color profile. |
| `coordinates` | `number array` | Y | An array of numeric values representing individual color coordinates. |
| `alpha` | `number` | | An integer or floating-point value representing the numeric value. |
| `fallback` | `string` | | Unit of distance. Supported values: [HEX 6](https://www.w3.org/TR/css-color-4/#typedef-hex-color) including the preceding `#` character. |
| Key | Type | Required | Description |
| :------------- | :------------: | :------: | :--------------------------------------------------------------------------------------------------------------------------------------- |
| `colorSpace` | `string` | Y | An string representing the color space. |
| `colorProfile` | `string` | | String representing url of color profile. |
| `coordinates` | `number array` | Y | An array of numeric values representing individual color coordinates. |
| `alpha` | `number` | | An integer or floating-point value representing the numeric value. |
| `fallback` | `string` | | Unit of distance. Supported values: [HEX 6](https://www.w3.org/TR/css-color-4/#typedef-hex-color) including the preceding `#` character. |

For example, initially the color tokens MAY be defined as such:

Expand All @@ -35,7 +35,7 @@ For example, initially the color tokens MAY be defined as such:
"colorProfile": "http://example.org/display-p3.icc",
"coordinates": [0.92, 0.2, 0.97],
"alpha": 1,
"fallback": "#ff00ff", // HEX 6 supported only
"fallback": "#ff00ff" // HEX 6 supported only
}
},
"Translucent shadow": {
Expand All @@ -46,7 +46,7 @@ For example, initially the color tokens MAY be defined as such:
"colorProfile": "http://example.org/display-p3.icc",
"coordinates": [0, 0, 0],
"alpha": 0.5,
"fallback": "#000000", // HEX 6 supported only
"fallback": "#000000" // HEX 6 supported only
}
}
}
Expand Down

0 comments on commit 6954bb9

Please sign in to comment.