Skip to content

Commit

Permalink
Update color utility naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jonamil committed Jun 21, 2024
1 parent ba2ac58 commit 303c32e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
}

:root {
--color-bg-base: var(--light-0);
--color-bg-hover: var(--light-50);
--color-bg-controls: var(--light-100);
--color-bg-blank: var(--light-0);
--color-bg-selection: var(--accent-200);

--color-text-primary: var(--light-950);
Expand Down
2 changes: 1 addition & 1 deletion src/components/PageColumnBody.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="flex-1 overflow-y-auto bg-base-color">
<div class="flex-1 overflow-y-auto bg-blank-color">
<slot />
</div>
</template>
2 changes: 1 addition & 1 deletion src/components/TheCategorySelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/>
</ListboxButton>
<ListboxOptions
class="absolute top-[2.4375rem] -translate-x-[1.375rem] rounded bg-base-color py-1.5 shadow-menu focus:outline-none"
class="absolute top-[2.4375rem] -translate-x-[1.375rem] rounded bg-blank-color py-1.5 shadow-menu focus:outline-none"
>
<ListboxOption
v-for="(categoryName, category) in content.categoryNames"
Expand Down
2 changes: 1 addition & 1 deletion src/components/TheCommentsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</Suspense>
<div
v-show="hasComments && someThreadInstancesVisible"
class="sticky top-0 z-10 mx-auto max-w-150 bg-gradient-to-b from-base-color from-20% to-base-color/0 px-2 pt-2"
class="sticky top-0 z-10 mx-auto max-w-150 bg-gradient-to-b from-blank-color from-20% to-blank-color/0 px-2 pt-2"
>
<div class="flex rounded-outline border border-separator-color bg-controls-color px-2 py-1">
<div class="flex flex-1 items-center gap-1"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TheSettingsMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
title="Settings"
/>
<MenuItems
class="absolute bottom-[2.1875rem] right-1 w-max divide-y divide-separator-color rounded bg-base-color shadow-menu focus:outline-none"
class="absolute bottom-[2.1875rem] right-1 w-max divide-y divide-separator-color rounded bg-blank-color shadow-menu focus:outline-none"
>
<div
v-for="(group, index) in menuContents"
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
colors: {
transparent: 'transparent',
current: 'currentColor',
'base-color': 'hsl(var(--color-bg-base) / <alpha-value>)',
'blank-color': 'hsl(var(--color-bg-blank) / <alpha-value>)',
'hover-color': 'hsl(var(--color-bg-hover) / <alpha-value>)',
'controls-color': 'hsl(var(--color-bg-controls) / <alpha-value>)',
'selection-color': 'hsl(var(--color-bg-selection) / <alpha-value>)',
Expand Down

0 comments on commit 303c32e

Please sign in to comment.