Skip to content

Commit

Permalink
bug: improve text colors and default button color
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarluedke committed Feb 23, 2024
1 parent fd93ccc commit ab5b123
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
18 changes: 9 additions & 9 deletions packages/theme/src/colors/semantic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const base: SemanticBaseColors = {
},
foreground: {
...gray,
DEFAULT: gray[950]
DEFAULT: gray[800]
},
divider: {
DEFAULT: 'rgba(17, 17, 17, 0.15)'
Expand All @@ -28,19 +28,19 @@ const base: SemanticBaseColors = {
},
content1: {
DEFAULT: '#FFFFFF',
foreground: gray[950]
foreground: gray[800]
},
content2: {
DEFAULT: gray[100],
foreground: gray[800]
},
content3: {
DEFAULT: gray[200],
foreground: gray[700]
foreground: gray[800]
},
content4: {
DEFAULT: gray[300],
foreground: gray[600]
foreground: gray[800]
}
},
dark: {
Expand All @@ -49,7 +49,7 @@ const base: SemanticBaseColors = {
},
foreground: {
...swapColorValues(gray),
DEFAULT: gray[50]
DEFAULT: gray[200]
},
focus: {
DEFAULT: blue[500]
Expand All @@ -62,19 +62,19 @@ const base: SemanticBaseColors = {
},
content1: {
DEFAULT: gray[900],
foreground: gray[50]
foreground: gray[200]
},
content2: {
DEFAULT: gray[800],
foreground: gray[100]
foreground: gray[200]
},
content3: {
DEFAULT: gray[700],
foreground: gray[200]
foreground: gray[100]
},
content4: {
DEFAULT: gray[600],
foreground: gray[300]
foreground: gray[50]
}
}
};
Expand Down
5 changes: 2 additions & 3 deletions packages/theme/src/components/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ const button = tv({
{
appearance: 'default',
intent: 'default',
class:
'bg-default-800 text-default-50 hover:bg-default-800/80 dark:bg-default dark:text-default-950 dark:hover:bg-default/40'
class: 'bg-default-800 text-default-100 hover:bg-default-800/80'
},
{
appearance: 'default',
Expand All @@ -114,7 +113,7 @@ const button = tv({
{
appearance: 'default',
intent: 'danger',
class: 'bg-danger-500 text-danger-foreground hover:bg-danger-500/80'
class: 'bg-danger text-danger-foreground hover:bg-danger/80'
},

// APPEARANCE: minimal
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/components/forms/form-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const select = tv({
trigger: [
input(),
'flex items-center justify-between',
'disabled:cursor-not-allowed disabled:opacity-50'
'disabled:cursor-not-allowed'
],
placeholder: 'text-default-400',
listbox: 'scroll-py-6 max-h-64',
Expand Down
10 changes: 5 additions & 5 deletions test-app/app/templates/index.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{page-title "Frontile Home"}}
<div class="grid grid-flow-col justify-center gap-4 font-mono font-bold text-xs text-center">
<div class="items-center justify-center bg-content1 rounded-lg shadow-lg size-40 hidden md:grid">bg-content1</div>
<div class="items-center justify-center bg-content2 rounded-lg shadow-lg size-40 hidden md:grid">bg-content2</div>
<div class="items-center justify-center bg-content3 rounded-lg shadow-lg size-40 hidden md:grid">bg-content3</div>
<div class="items-center justify-center bg-content4 rounded-lg shadow-lg size-40 hidden md:grid">bg-content4</div>
<div class="items-center justify-center text-content1-foreground bg-content1 rounded-lg shadow-lg size-40 hidden md:grid">bg-content1</div>
<div class="items-center justify-center text-content2-foreground bg-content2 rounded-lg shadow-lg size-40 hidden md:grid">bg-content2</div>
<div class="items-center justify-center text-content3-foreground bg-content3 rounded-lg shadow-lg size-40 hidden md:grid">bg-content3</div>
<div class="items-center justify-center text-content4-foreground bg-content4 rounded-lg shadow-lg size-40 hidden md:grid">bg-content4</div>
</div>


Expand Down Expand Up @@ -42,4 +42,4 @@
</div>
</div>
{{/each}}
</div>
</div>

0 comments on commit ab5b123

Please sign in to comment.