Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors page - Caroline #2284

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/knapsack/data/blocks/block.0rZ0OosspG.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "0rZ0OosspG",
"data": {
"md": [
"# Anatomy\nAn alert is composed of (up to) five elements:\n- Status icon\n- Title\n- Description (optional)\n- Call to action button\n- Icon"
"# Anatomy\nAn alert is composed of (up to) four elements:\n- Status icon\n- Title\n- Description (optional)\n- Call to action button\n- Icon"
],
"columns": 1
},
Expand Down
22 changes: 22 additions & 0 deletions apps/knapsack/data/blocks/block.1afPQDw2W.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"id": "1afPQDw2W",
"data": {
"items": [
{
"fileId": "KvXVAmYdCVAS7hzkOa73Em",
"nodeId": "13963:36643"
},
{
"fileId": "KvXVAmYdCVAS7hzkOa73Em",
"nodeId": "13963:36738"
}
],
"columns": "2",
"imageStyles": {
"fit": "fill",
"size": "auto",
"seamless": true
}
},
"blockType": "design-src-tiles"
}
247 changes: 247 additions & 0 deletions apps/knapsack/data/blocks/block.4kllIYgCNE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
{
"id": "4kllIYgCNE",
"data": {
"content": {
"type": "doc",
"content": [
{
"type": "heading",
"attrs": {
"level": 1,
"textAlign": "left"
},
"content": [
{
"text": "Color roles",
"type": "text"
}
]
},
{
"type": "bulletList",
"content": [
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"attrs": {
"textAlign": "left"
},
"content": [
{
"text": "Surface ",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": "– A role used for backgrounds and large, low-emphasis areas of the screen.",
"type": "text"
}
]
}
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"attrs": {
"textAlign": "left"
},
"content": [
{
"text": "Primary, Secondary, Tertiary",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": " – Accent color roles used to emphasize or de-emphasize foreground elements.",
"type": "text"
}
]
}
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"attrs": {
"textAlign": "left"
},
"content": [
{
"text": "Container",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": " – Roles used as a fill color for foreground elements like buttons. They should not be used for text or icons.",
"type": "text"
}
]
}
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"attrs": {
"textAlign": "left"
},
"content": [
{
"text": "On",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": " – Roles starting with this term indicate a color for text or icons ",
"type": "text"
},
{
"text": "on top",
"type": "text",
"marks": [
{
"type": "italic"
}
]
},
{
"text": " of its paired parent color. For example, ",
"type": "text"
},
{
"text": "on primary",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": " is used for text and icons against the ",
"type": "text"
},
{
"text": "primary",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": " fill color.",
"type": "text"
}
]
}
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"attrs": {
"textAlign": "left"
},
"content": [
{
"text": "Variant",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": " – Roles ending with this term offer a lower emphasis alternative to its non-variant pair. For example, ",
"type": "text"
},
{
"text": "outline variant ",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": "is a less emphasized version of the ",
"type": "text"
},
{
"text": "outline ",
"type": "text",
"marks": [
{
"type": "bold"
}
]
},
{
"text": "color.",
"type": "text"
}
]
}
]
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": "left"
},
"content": [
{
"text": "Sourced from Material Design 3 color role guidelines.",
"type": "text",
"marks": [
{
"type": "link",
"attrs": {
"rel": "noopener noreferrer nofollow",
"href": "https://m3.material.io/styles/color/roles",
"class": null,
"target": "_blank"
}
}
]
}
]
}
]
}
},
"blockType": "text-editor"
}
22 changes: 22 additions & 0 deletions apps/knapsack/data/blocks/block.5YzqIaqreA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"id": "5YzqIaqreA",
"data": {
"items": [
{
"fileId": "KvXVAmYdCVAS7hzkOa73Em",
"nodeId": "13963:36547"
},
{
"fileId": "KvXVAmYdCVAS7hzkOa73Em",
"nodeId": "13963:36595"
}
],
"columns": "2",
"imageStyles": {
"fit": "fill",
"size": "auto",
"seamless": true
}
},
"blockType": "design-src-tiles"
}
17 changes: 17 additions & 0 deletions apps/knapsack/data/blocks/block.5id0UoGXW.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"id": "5id0UoGXW",
"data": {
"items": [
{
"fileId": "KvXVAmYdCVAS7hzkOa73Em",
"nodeId": "14193:2620"
}
],
"columns": "1",
"imageStyles": {
"size": "auto",
"seamless": true
}
},
"blockType": "design-src-tiles"
}
6 changes: 3 additions & 3 deletions apps/knapsack/data/blocks/block.9I8NeStdCB.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{
"id": "aZr6RjLvBS",
"link": {
"path": "https://m2.material.io/design/color/the-color-system.html",
"path": "https://m3.material.io/styles/color/roles",
"external": true
},
"image": "https://knapsack.imgix.net/site/covalent/material-design-logo-zc-urjolqmpng",
"title": "Material Design color system",
"description": "Our colors follow the model laid out by Material Design 2"
"description": "Our colors follows the model laid out by Material Design 3"
},
{
"id": "yw4ZIprLbc",
Expand All @@ -29,7 +29,7 @@
"imageSize": "small"
},
"gridStyles": {
"columns": "4"
"columns": "3"
}
},
"blockType": "shortcut-tiles"
Expand Down
5 changes: 5 additions & 0 deletions apps/knapsack/data/blocks/block.ECyzkuFsGc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"id": "ECyzkuFsGc",
"data": {},
"blockType": "divider-block"
}
22 changes: 22 additions & 0 deletions apps/knapsack/data/blocks/block.HYwWRuR4Ew.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"id": "HYwWRuR4Ew",
"data": {
"items": [
{
"fileId": "KvXVAmYdCVAS7hzkOa73Em",
"nodeId": "13871:2992"
},
{
"fileId": "KvXVAmYdCVAS7hzkOa73Em",
"nodeId": "13871:2903"
}
],
"columns": "2",
"imageStyles": {
"fit": "fill",
"size": "auto",
"seamless": true
}
},
"blockType": "design-src-tiles"
}
Loading
Loading