Skip to content

Commit

Permalink
A small revision of the colors and font size
Browse files Browse the repository at this point in the history
  • Loading branch information
melnikga committed Jun 29, 2024
1 parent 90f42ff commit c88c802
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/Editor/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Console = () => {
<p className="text-gray-500 dark:text-[#BDBDBD] font-medium uppercase text-[13px] leading-6">
Console
</p>
<div className="leading-6 text-[16px] text-gray-400 dark:text-darkMode-text">
<div className="leading-6 text-tiny text-gray-400 dark:text-darkMode-text">
{consoleLog.map((log, index) => (
<pre key={toKeyIndex('line', index)} className=" font-ibm-plex-sans">
{log.type === LogType.Error && (
Expand Down
2 changes: 1 addition & 1 deletion components/Editor/EditorFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function EditorFooter() {
return (
<div
className={cn(
'px-5 bg-gray-100 dark:bg-black-700 border border-gray-200 dark:border-black-500 text-xs h-[42px] items-center text-gray-600 ml-auto flex justify-between',
'px-5 bg-gray-100 dark:bg-darkMode-secondary border border-gray-200 dark:border-darkMode-primary text-xs h-[42px] items-center text-gray-600 ml-auto flex justify-between',
!isFullScreen && 'rounded-b-lg',
)}
>
Expand Down
1 change: 1 addition & 0 deletions components/Editor/cairoLangConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export function registerCairoLanguageSupport(_monaco: typeof MonacoEditor) {
},
],
colors: {
'editor.background': '#f9fafb',
'editor.foreground': '#000000',
'editorCursor.foreground': '#8B0000',
'editor.lineHighlightBackground': '#E8573310',
Expand Down
4 changes: 2 additions & 2 deletions components/KBar/ResultItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ResultItem = forwardRef(
className={cn(
'flex items-center justify-between cursor-pointer py-3 px-4 border-l-2',
{
'bg-gray-50 dark:bg-black-500 border-indigo-500': active,
'bg-gray-50 dark:bg-black-500 border-icons': active,
'bg-white dark:bg-black-600 border-transparent': !active,
},
)}
Expand All @@ -39,7 +39,7 @@ const ResultItem = forwardRef(
{action.shortcut.map((sc) => (
<kbd
key={sc}
className="box-border py px-1 bg-gray-100 dark:bg-black-400 text-indigo-500 rounded"
className="box-border py px-1 bg-gray-100 dark:bg-black-400 text-icons rounded"
>
{sc}
</kbd>
Expand Down
6 changes: 3 additions & 3 deletions components/Tracer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ function DebugInfoTab({
Callstack
</dt>
<dd className="font-mono mb-2">
<table className="w-full font-mono text-tiny border border-gray-300 dark:border-black-500">
<table className="w-full font-mono text-tiny border border-gray-300 dark:border-[#46373A]">
<thead>
<tr className="text-left sticky z-[1] top-0 bg-gray-50 dark:bg-black-600 text-gray-400 dark:text-gray-600 border-b border-gray-300 dark:border-black-500">
<tr className="text-left sticky z-[1] top-0 bg-gray-50 dark:bg-darkMode-secondary text-gray-400 dark:text-gray-600 border-b border-gray-300 dark:border-[#46373A]">
{debugMode === ProgramDebugMode.Execution && (
<>
<th className="py-1 px-2 font-thin min-w-16">FP</th>
Expand Down Expand Up @@ -308,7 +308,7 @@ function DebugInfoTab({
return (
<tr
key={index}
className="relative border-b border-gray-300 dark:border-black-500 text-gray-400 dark:text-gray-600"
className="relative border-b border-gray-300 dark:border-[#46373A] text-gray-400 dark:text-gray-600"
>
{debugMode === ProgramDebugMode.Execution && (
<>
Expand Down
2 changes: 1 addition & 1 deletion components/ui/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const Input: React.FC<Props> = forwardRef(
onFocus={handleFocus}
onBlur={handleBlur}
onInput={handleInput}
className={`${inputClassName} w-full outline-none bg-transparent placeholder-[#E85733] dark:placeholder-[#FFCDD2] placeholder:text-center`}
className={`${inputClassName} w-full outline-none bg-transparent placeholder-[#E85733] dark:placeholder-[#FFCDD2]`}
{...rest}
/>
{searchable && (
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
500: '#1B1B1B',
400: '#2F2F2F',
},
icons: '#E85733',
darkMode: {
primary: '#0F0E0F',
secondary: '#1C1E22',
Expand Down

0 comments on commit c88c802

Please sign in to comment.