Skip to content

Commit 8842657

Browse files
authored
Update color theme (#3863)
* - add primary new primary and secondary palettes in app.css - also add testing palettes that have stronger contrast with existing colors * - add definitions for primary colors to tailwind config - find and replace `-blue-` with `-primary-` throughtout the app * clean up generateColorPalette * a bit more cleanup in actions.ts * removing code commented out between 12-14 months ago * update comment * remove unused chip color defs * color defs moved to tailwind.config.js * - get color maps working - move color defs to color-config.ts as single source of truth - update tailwind config to ts * cleanups * add comment * update colors for "welcome to Rill" page * fix typo * fix typos * add comments * update ShadCN primary and secondary * more ShadCN update
1 parent 5a2e57e commit 8842657

48 files changed

Lines changed: 426 additions & 362 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web-admin/src/features/dashboards/listing/DashboardList.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<li class="w-full h-[52px] border rounded">
2727
<a
2828
href={`/${organization}/${project}/${dashboard.meta.name.name}`}
29-
class="w-full h-full overflow-x-auto p-3 flex items-center gap-x-6 text-gray-700 hover:text-blue-600 hover:bg-slate-50"
29+
class="w-full h-full overflow-x-auto p-3 flex items-center gap-x-6 text-gray-700 hover:text-primary-600 hover:bg-slate-50"
3030
>
3131
<!-- Icon -->
3232
<div

web-admin/src/features/dashboards/listing/DashboardsTableCompositeCell.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
>
2424
<div class="flex gap-x-2 items-center">
2525
<DashboardIcon size={"14px"} className="text-slate-500" />
26-
<div class="text-gray-700 text-sm font-semibold group-hover:text-blue-600">
26+
<div
27+
class="text-gray-700 text-sm font-semibold group-hover:text-primary-600"
28+
>
2729
{title !== "" ? title : name}
2830
</div>
2931
{#if error !== ""}

web-admin/src/features/projects/status/ProjectDeploymentStatusChip.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@
8080
const statusDisplays: Record<V1DeploymentStatus, StatusDisplay> = {
8181
[V1DeploymentStatus.DEPLOYMENT_STATUS_OK]: {
8282
icon: CheckCircle,
83-
iconProps: { className: "text-blue-600 hover:text-blue-500" },
83+
iconProps: { className: "text-primary-600 hover:text-primary-500" },
8484
text: "ready",
85-
textClass: "text-blue-600",
86-
wrapperClass: "bg-blue-50 border-blue-300",
85+
textClass: "text-primary-600",
86+
wrapperClass: "bg-primary-50 border-primary-300",
8787
},
8888
[V1DeploymentStatus.DEPLOYMENT_STATUS_PENDING]: {
8989
icon: Spinner,

web-admin/src/features/scheduled-reports/listing/ReportsTableActionCell.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</script>
66

77
<button
8-
class="text-gray-500 hover:text-blue-500 hover:bg-slate-200 grid place-items-center rounded-sm"
8+
class="text-gray-500 hover:text-primary-500 hover:bg-slate-200 grid place-items-center rounded-sm"
99
on:click={() => console.log(`open actions for ${reportName}`)}
1010
>
1111
<ThreeDot size="16px" />

web-admin/src/features/scheduled-reports/listing/ReportsTableCompositeCell.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@
2323
<a href={`reports/${id}`} class="flex flex-col gap-y-0.5 group px-4 py-[5px]">
2424
<div class="flex gap-x-2 items-center">
2525
<ReportIcon size={"14px"} className="text-slate-500" />
26-
<div class="text-gray-700 text-sm font-semibold group-hover:text-blue-600">
26+
<div
27+
class="text-gray-700 text-sm font-semibold group-hover:text-primary-600"
28+
>
2729
{title}
2830
</div>
2931
{#if lastRun}
3032
{#if lastRunErrorMessage}
3133
<CancelCircleInverse className="text-red-500" />
3234
{:else}
33-
<CheckCircleOutline className="text-blue-500" />
35+
<CheckCircleOutline className="text-primary-500" />
3436
{/if}
3537
{/if}
3638
</div>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
2-
presets: [require('../web-common/tailwind.config.cjs')],
2+
presets: [require("../web-common/tailwind.config.ts")],
33
content: [
44
"./src/**/*.{html,js,svelte,ts}",
55
"../web-common/**/*.{html,js,svelte,ts}",
6-
]
6+
],
77
};

web-auth/src/components/EmailPassForm.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
let inputClasses =
2222
"h-10 px-4 py-2 border border-slate-300 rounded-sm text-base";
2323
let focusClasses =
24-
"ring-offset-2 focus:ring-2 focus:ring-blue-300 focus:outline-none";
24+
"ring-offset-2 focus:ring-2 focus:ring-primary-ry-300 focus:outline-none";
2525
2626
$: type = showPassword ? "text" : "password";
2727

web-auth/src/components/SSOForm.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
let inputClasses =
1616
"h-10 px-4 py-2 border border-slate-300 rounded-sm text-base";
1717
let focusClasses =
18-
"ring-offset-2 focus:ring-2 focus:ring-blue-300 focus:outline-none";
18+
"ring-offset-2 focus:ring-2 focus:ring-primary-300 focus:outline-none";
1919
2020
function handleSubmit() {
2121
if (!showForm) {
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
2-
presets: [require('../web-common/tailwind.config.cjs')],
2+
presets: [require("../web-common/tailwind.config.ts")],
33
content: [
44
"./src/**/*.{html,js,svelte,ts}",
55
"../web-common/**/*.{html,js,svelte,ts}",
6-
]
6+
],
77
};

0 commit comments

Comments
 (0)