Skip to content

Commit

Permalink
feat: update color token
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Jan 14, 2025
1 parent 4cfd148 commit ced78e0
Show file tree
Hide file tree
Showing 19 changed files with 112 additions and 154 deletions.
38 changes: 16 additions & 22 deletions docs/public/rootage/color.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@
},
"$color.palette.gray-800": {
"values": {
"theme-light": "#586070",
"theme-light": "#555d6d",
"theme-dark": "#dcdee3"
}
},
"$color.palette.gray-900": {
"values": {
"theme-light": "#2a3038",
"theme-dark": "#e9eaec"
}
},
"$color.palette.gray-1000": {
"values": {
"theme-light": "#1a1c20",
"theme-dark": "#f3f4f5"
Expand Down Expand Up @@ -463,18 +469,6 @@
"theme-dark": "#ffffffcc"
}
},
"$color.palette.slate-900": {
"values": {
"theme-light": "#2a3038",
"theme-dark": "#edf2f7"
}
},
"$color.palette.slate-800": {
"values": {
"theme-light": "#545c6e",
"theme-dark": "#dde3ed"
}
},
"$color.palette.static-white-alpha-200": {
"values": {
"theme-light": "#ffffff33",
Expand All @@ -483,8 +477,8 @@
},
"$color.fg.neutral": {
"values": {
"theme-light": "$color.palette.gray-900",
"theme-dark": "$color.palette.gray-900"
"theme-light": "$color.palette.gray-1000",
"theme-dark": "$color.palette.gray-1000"
}
},
"$color.fg.neutral-muted": {
Expand Down Expand Up @@ -544,7 +538,7 @@
"$color.fg.informative": {
"values": {
"theme-light": "$color.palette.blue-700",
"theme-dark": "$color.palette.blue-800"
"theme-dark": "$color.palette.blue-700"
}
},
"$color.fg.informative-contrast": {
Expand Down Expand Up @@ -675,8 +669,8 @@
},
"$color.bg.neutral-inverted": {
"values": {
"theme-light": "$color.palette.slate-900",
"theme-dark": "$color.palette.gray-900"
"theme-light": "$color.palette.gray-900",
"theme-dark": "$color.palette.gray-1000"
}
},
"$color.bg.neutral-weak-pressed": {
Expand Down Expand Up @@ -801,19 +795,19 @@
},
"$color.bg.neutral-solid-muted": {
"values": {
"theme-light": "$color.palette.slate-800",
"theme-light": "$color.palette.gray-800",
"theme-dark": "$color.palette.gray-400"
}
},
"$color.bg.floating-solid": {
"$color.bg.neutral-solid": {
"values": {
"theme-light": "$color.palette.gray-900",
"theme-light": "$color.palette.gray-1000",
"theme-dark": "$color.palette.gray-300"
}
},
"$color.bg.neutral-solid-muted-pressed": {
"values": {
"theme-light": "$color.palette.slate-900",
"theme-light": "$color.palette.gray-900",
"theme-dark": "$color.palette.gray-500"
}
},
Expand Down
4 changes: 2 additions & 2 deletions docs/public/rootage/components/help-bubble.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"base": {
"enabled": {
"root": {
"color": "$color.bg.floating-solid",
"color": "$color.bg.neutral-solid",
"cornerRadius": "$radius.s3",
"paddingX": "$unit.s3",
"paddingY": "$unit.s3"
},
"arrow": {
"color": "$color.bg.floating-solid",
"color": "$color.bg.neutral-solid",
"size": "$unit.s2_5"
},
"title": {
Expand Down
2 changes: 1 addition & 1 deletion docs/public/rootage/components/snackbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"offsetTimingFunction": "$timing-function.easing"
},
"root": {
"color": "$color.bg.floating-solid",
"color": "$color.bg.neutral-solid",
"cornerRadius": "$radius.s2",
"minHeight": "44px",
"paddingX": "$unit.s4",
Expand Down
107 changes: 40 additions & 67 deletions docs/public/rootage/parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"mode": "theme-light",
"value": {
"type": "color",
"value": "#586070"
"value": "#555d6d"
}
},
{
Expand All @@ -268,6 +268,33 @@
],
"key": "gray-900"
},
"values": [
{
"mode": "theme-light",
"value": {
"type": "color",
"value": "#2a3038"
}
},
{
"mode": "theme-dark",
"value": {
"type": "color",
"value": "#e9eaec"
}
}
]
},
{
"collection": "color",
"token": {
"type": "token",
"group": [
"color",
"palette"
],
"key": "gray-1000"
},
"values": [
{
"mode": "theme-light",
Expand Down Expand Up @@ -2067,60 +2094,6 @@
}
]
},
{
"collection": "color",
"token": {
"type": "token",
"group": [
"color",
"palette"
],
"key": "slate-900"
},
"values": [
{
"mode": "theme-light",
"value": {
"type": "color",
"value": "#2a3038"
}
},
{
"mode": "theme-dark",
"value": {
"type": "color",
"value": "#edf2f7"
}
}
]
},
{
"collection": "color",
"token": {
"type": "token",
"group": [
"color",
"palette"
],
"key": "slate-800"
},
"values": [
{
"mode": "theme-light",
"value": {
"type": "color",
"value": "#545c6e"
}
},
{
"mode": "theme-dark",
"value": {
"type": "color",
"value": "#dde3ed"
}
}
]
},
{
"collection": "color",
"token": {
Expand Down Expand Up @@ -2167,7 +2140,7 @@
"color",
"palette"
],
"key": "gray-900"
"key": "gray-1000"
}
},
{
Expand All @@ -2178,7 +2151,7 @@
"color",
"palette"
],
"key": "gray-900"
"key": "gray-1000"
}
}
]
Expand Down Expand Up @@ -2528,7 +2501,7 @@
"color",
"palette"
],
"key": "blue-800"
"key": "blue-700"
}
}
]
Expand Down Expand Up @@ -3287,7 +3260,7 @@
"color",
"palette"
],
"key": "slate-900"
"key": "gray-900"
}
},
{
Expand All @@ -3298,7 +3271,7 @@
"color",
"palette"
],
"key": "gray-900"
"key": "gray-1000"
}
}
]
Expand Down Expand Up @@ -4022,7 +3995,7 @@
"color",
"palette"
],
"key": "slate-800"
"key": "gray-800"
}
},
{
Expand All @@ -4046,7 +4019,7 @@
"color",
"bg"
],
"key": "floating-solid"
"key": "neutral-solid"
},
"values": [
{
Expand All @@ -4057,7 +4030,7 @@
"color",
"palette"
],
"key": "gray-900"
"key": "gray-1000"
}
},
{
Expand Down Expand Up @@ -4092,7 +4065,7 @@
"color",
"palette"
],
"key": "slate-900"
"key": "gray-900"
}
},
{
Expand Down Expand Up @@ -15682,7 +15655,7 @@
"color",
"bg"
],
"key": "floating-solid"
"key": "neutral-solid"
}
},
{
Expand Down Expand Up @@ -15728,7 +15701,7 @@
"color",
"bg"
],
"key": "floating-solid"
"key": "neutral-solid"
}
},
{
Expand Down Expand Up @@ -19690,7 +19663,7 @@
"color",
"bg"
],
"key": "floating-solid"
"key": "neutral-solid"
}
},
{
Expand Down
Loading

0 comments on commit ced78e0

Please sign in to comment.