-
Notifications
You must be signed in to change notification settings - Fork 192
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
feat: dark mode #977
feat: dark mode #977
Changes from all commits
ce01002
1d026d6
8717ea9
0cd1805
590d72d
a5c23c8
95f2aca
fd9ed11
acbb1f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { fill } from '../../styles/theme'; | ||
|
||
export const baseNameSvg = ( | ||
<svg | ||
data-testid="ockbaseNameSvg" | ||
|
@@ -12,11 +14,11 @@ export const baseNameSvg = ( | |
> | ||
<path | ||
d="M11.75 3.75C11.75 5.82107 10.0711 7.5 8 7.5C5.92893 7.5 4.25 5.82107 4.25 3.75C4.25 1.67893 5.92893 0 8 0C10.0711 0 11.75 1.67893 11.75 3.75Z" | ||
fill="#0A0B0D" | ||
className={fill.defaultReverse} | ||
/> | ||
<path | ||
d="M10.99 8.01001C12.21 8.04001 13.3 8.80001 13.73 9.95001L16 16H0L2.27 9.95001C2.7 8.80001 3.79 8.03001 5.01 8.01001C5.05 8.04001 6.37 9.00001 8 9.00001C9.63 9.00001 10.95 8.04001 10.99 8.01001Z" | ||
fill="#0A0B0D" | ||
className={fill.defaultReverse} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dope |
||
/> | ||
</svg> | ||
); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,113 @@ | ||
@import url("../token/components/TokenSelectDropdown.css"); | ||
/* Border */ | ||
.border-ock-default { | ||
border-color: var(--bg-ock-default); | ||
} | ||
|
||
/* Fill */ | ||
.fill-ock-default-reverse { | ||
fill: var(--bg-ock-default-reverse); | ||
} | ||
|
||
/* Placeholder */ | ||
.placeholder-ock-default::placeholder { | ||
color: var(--text-ock-foreground-muted); | ||
} | ||
|
||
/* Scrollbar */ | ||
.ock-scrollbar { | ||
scrollbar-width: thin; | ||
scrollbar-color: #d1d5db #ffffff; | ||
} | ||
|
||
/* Shadow */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looooooooove the comments |
||
.shadow-ock-default { | ||
box-shadow: 0px 8px 12px 0px #5B616E1F; | ||
} | ||
|
||
.dark .shadow-ock-default { | ||
box-shadow: 0px 8px 12px 0px #5B616E1F; | ||
} | ||
|
||
/* Text */ | ||
.text-ock-inverse { | ||
color: var(--text-ock-inverse); | ||
} | ||
.text-ock-foreground { | ||
color: var(--text-ock-foreground); | ||
} | ||
.text-ock-foreground-muted { | ||
color: var(--text-ock-foreground-muted); | ||
} | ||
.text-ock-error { | ||
color: var(--text-ock-error); | ||
} | ||
.text-ock-primary { | ||
color: var(--text-ock-primary); | ||
} | ||
.text-ock-success { | ||
color: var(--text-ock-success); | ||
} | ||
.text-ock-warning { | ||
color: var(--text-ock-warning); | ||
} | ||
.text-ock-disabled { | ||
color: var(--text-ock-disabled); | ||
} | ||
/* Background */ | ||
.bg-ock-default { | ||
background-color: var(--bg-ock-default); | ||
} | ||
.bg-ock-default-hover { | ||
background-color: var(--bg-ock-default-hover); | ||
} | ||
.bg-ock-default-active { | ||
background-color: var(--bg-ock-default-active); | ||
} | ||
.bg-ock-alternate { | ||
background-color: var(--bg-ock-alternate); | ||
} | ||
.bg-ock-alternate-hover { | ||
background-color: var(--bg-ock-alternate-hover); | ||
} | ||
.bg-ock-alternate-active { | ||
background-color: var(--bg-ock-alternate-active); | ||
} | ||
.bg-ock-inverse { | ||
background-color: var(--bg-ock-inverse); | ||
} | ||
.bg-ock-inverse-hover { | ||
background-color: var(--bg-ock-inverse-hover); | ||
} | ||
.bg-ock-inverse-active { | ||
background-color: var(--bg-ock-inverse-active); | ||
} | ||
.bg-ock-primary { | ||
background-color: var(--bg-ock-primary); | ||
} | ||
.bg-ock-primary-hover { | ||
background-color: var(--bg-ock-primary-hover); | ||
} | ||
.bg-ock-primary-active { | ||
background-color: var(--bg-ock-primary-active); | ||
} | ||
.bg-ock-secondary { | ||
background-color: var(--bg-ock-secondary); | ||
} | ||
.bg-ock-secondary-hover { | ||
background-color: var(--bg-ock-secondary-hover); | ||
} | ||
.bg-ock-secondary-active { | ||
background-color: var(--bg-ock-secondary-active); | ||
} | ||
.bg-ock-error { | ||
background-color: var(--bg-ock-error); | ||
} | ||
.bg-ock-warning { | ||
background-color: var(--bg-ock-warning); | ||
} | ||
.bg-ock-success { | ||
background-color: var(--bg-ock-success); | ||
} | ||
.bg-ock-default-reverse { | ||
background-color: var(--bg-ock-default-reverse); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ export const pressable = { | |
'cursor-pointer bg-ock-primary active:bg-ock-primary-active hover:bg-ock-primary-hover', | ||
secondary: | ||
'cursor-pointer bg-ock-secondary active:bg-ock-secondary-active hover:bg-ock-secondary-hover', | ||
shadow: 'shadow-[0px_8px_12px_0px_#5B616E1F]', | ||
shadow: 'shadow-ock-default', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. smart |
||
disabled: 'opacity-[0.38]', | ||
} as const; | ||
|
||
|
@@ -54,12 +54,14 @@ export const color = { | |
} as const; | ||
|
||
export const fill = { | ||
inverse: 'fill-inverse', | ||
foreground: 'fill-foreground', | ||
foregroundMuted: 'fill-foreground-muted', | ||
error: 'fill-error', | ||
primary: 'fill-primary', | ||
success: 'fill-success', | ||
warning: 'fill-warning', | ||
disabled: 'fill-disabled', | ||
defaultReverse: 'fill-ock-default-reverse', | ||
inverse: 'fill-ock-inverse', | ||
} as const; | ||
|
||
export const border = { | ||
default: 'border-ock-default', | ||
} as const; | ||
|
||
export const placeholder = { | ||
default: 'placeholder-ock-default', | ||
} as const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice