-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add colors semantics and commons (#340)
- Loading branch information
Sebastián García
authored
Jun 13, 2024
1 parent
a8a01fc
commit f080a0e
Showing
22 changed files
with
440 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const azure = { | ||
50: '#F5F8FF', | ||
100: '#D8E4FD', | ||
200: '#B4CDFD', | ||
300: '#75A3FF', | ||
400: '#4D7FFF', | ||
500: '#305EFF', | ||
600: '#2920DA', | ||
700: '#2243B6', | ||
800: '#1B3591', | ||
900: '#14286D', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const cider = { | ||
50: '#FFF3EB', | ||
100: '#FFE1CC', | ||
200: '#FFC499', | ||
300: '#FFAC70', | ||
400: '#FF9040', | ||
500: '#FF7A1A', | ||
600: '#E9690C', | ||
700: '#C65C10', | ||
800: '#A24D10', | ||
900: '#813E0E', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const cloud = { | ||
50: '#EDF4F7', | ||
100: '#E6EFF4', | ||
200: '#CBDDE6', | ||
300: '#97BBCD', | ||
400: '#6091A9', | ||
500: '#387594', | ||
600: '#1F5C7A', | ||
700: '#1D4B63', | ||
800: '#143D52', | ||
900: '#032A3E', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { azure } from './azure' | ||
import { cider } from './cider' | ||
import { cloud } from './cloud' | ||
import { crimson } from './crimson' | ||
import { emerald } from './emerald' | ||
import { sapphire } from './sapphire' | ||
import { sea } from './sea' | ||
import { neutral } from './neutral' | ||
|
||
export const commonColors = { | ||
white: '#ffffff', | ||
black: '#000000', | ||
azure, | ||
cider, | ||
cloud, | ||
crimson, | ||
emerald, | ||
sapphire, | ||
sea, | ||
neutral, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const crimson = { | ||
50: '#FFF5F5', | ||
100: '#FEE4E2', | ||
200: '#FEC6C3', | ||
300: '#FD9D96', | ||
400: '#F96C62', | ||
500: '#F04428', | ||
600: '#D92D20', | ||
700: '#B42318', | ||
800: '#9A0E0E', | ||
900: '#880C0C', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const emerald = { | ||
50: '#EBFAF3', | ||
100: '#DAF5E8', | ||
200: '#B6ECD1', | ||
300: '#91E3BA', | ||
400: '#48D08C', | ||
500: '#00BD5F', | ||
600: '#00A251', | ||
700: '#008743', | ||
800: '#006C36', | ||
900: '#005128', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,9 @@ | ||
import type { BaseColors } from '@typings/theme' | ||
import { commonColors } from './commons' | ||
import { semanticColors } from './semantics' | ||
|
||
export const colors: BaseColors = { | ||
light: { | ||
background: { | ||
DEFAULT: '#ffffff', | ||
}, | ||
foreground: { | ||
DEFAULT: '#000000', | ||
}, | ||
default: { | ||
DEFAULT: '#d4d4d4', | ||
foreground: '#ffffff', | ||
}, | ||
primary: { | ||
DEFAULT: '#1a5cff', | ||
foreground: '#ffffff', | ||
}, | ||
success: { | ||
DEFAULT: '#46c93a', | ||
foreground: '#ffffff', | ||
}, | ||
warn: { | ||
DEFAULT: '#FFBA00', | ||
foreground: '#ffffff', | ||
}, | ||
error: { | ||
DEFAULT: '#ff4757', | ||
foreground: '#ffffff', | ||
}, | ||
}, | ||
dark: { | ||
background: { | ||
DEFAULT: '#000000', | ||
}, | ||
foreground: { | ||
DEFAULT: '#ffffff', | ||
}, | ||
default: { | ||
DEFAULT: '#262626', | ||
foreground: '#ffffff', | ||
}, | ||
primary: { | ||
DEFAULT: '#1a5cff', | ||
foreground: '#ffffff', | ||
}, | ||
success: { | ||
DEFAULT: '#46c93a', | ||
foreground: '#ffffff', | ||
}, | ||
warn: { | ||
DEFAULT: '#FFBA00', | ||
foreground: '#ffffff', | ||
}, | ||
error: { | ||
DEFAULT: '#ff4757', | ||
foreground: '#ffffff', | ||
}, | ||
}, | ||
const colors = { | ||
...commonColors, | ||
...semanticColors, | ||
} | ||
|
||
export { colors, commonColors, semanticColors } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const neutral = { | ||
50: '#fafafa', | ||
100: '#f4f4f5', | ||
200: '#e4e4e7', | ||
300: '#d4d4d8', | ||
400: '#a1a1aa', | ||
500: '#71717a', | ||
600: '#52525b', | ||
700: '#3f3f46', | ||
800: '#27272a', | ||
900: '#18181b', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const sapphire = { | ||
50: '#E7F6FE', | ||
100: '#CFEDFC', | ||
200: '#A8DFFA', | ||
300: '#79CEF8', | ||
400: '#57C1F6', | ||
500: '#15B0F3', | ||
600: '#1291D0', | ||
700: '#0F78AD', | ||
800: '#0C608A', | ||
900: '#094868', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const sea = { | ||
50: '#EDF7F7', | ||
100: '#E2F3F3', | ||
200: '#C2E0E0', | ||
300: '#97CDCD', | ||
400: '#60A9A9', | ||
500: '#389494', | ||
600: '#1F7A7A', | ||
700: '#1D6363', | ||
800: '#145252', | ||
900: '#033E3E', | ||
} |
Oops, something went wrong.