Skip to content

Commit

Permalink
Colors
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno committed Mar 2, 2024
1 parent c0e535c commit 9105e6a
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 75 deletions.
75 changes: 75 additions & 0 deletions colors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
export const colors = {
transparent: "transparent",
current: "currentColor",

// primary
coral: {
light: '#F17A5D',
DEFAULT: '#F17A5D',
},
caramel: {
light: '#EAD6CE',
DEFAULT: '#EAD6CE',
},
cream: {
light: '#FCE8DE',
DEFAULT: '#FCE8DE',
},

// accent
yellow: {
light: '#F8B03D',
DEFAULT: '#F8B03D',
},
green: {
light: '#34B4A1',
DEFAULT: '#34B4A1',
},
purple: {
light: '#9473B0',
DEFAULT: '#9473B0',
},
pink: {
light: '#DD9BC7',
DEFAULT: '#DD9BC7',
},
blue: {
light: '#79CDE0',
DEFAULT: '#79CDE0',
},
fake: "#C51D34",
// status
red: {
light: '#D75353',
DEFAULT: '#D75353',
},
error: {
light: '#D75353',
DEFAULT: '#D75353',
},
success: {
light: '#33BC8B',
DEFAULT: '#33BC8B',
},
warning: {
light: '#F8B03D',
DEFAULT: '#F8B03D',
},
neutral: {
light: '#538AD4',
DEFAULT: '#538AD4',
},

// grey scale
black: '#0E1116',
white: '#FAF5F3',
grey: {
900: '#1A1C21',
700: '#494A4D',
500: '#848384',
250: '#BFBCBC',
100: '#E2DEDD',
50: '#EEEAE8',
},
milk: '#FAF5F3',
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ export { HeroIllustration } from "./hero-illustration";

// tailwind config
export { default as tailwindConfig } from "../tailwind.config";
export { colors } from '../colors'
78 changes: 3 additions & 75 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { colors } = require('./colors');

module.exports= {
content: ["./src/**/*.{js,jsx,ts,tsx,vue}"],
theme: {
Expand Down Expand Up @@ -53,81 +55,7 @@ module.exports= {
'4xl': '7.5rem', // 120px
'4xl-fluid': 'clamp(2.9rem, 12vw, 7.5rem)', // 120px
},
colors: {
transparent: "transparent",
current: "currentColor",

// primary
coral: {
light: '#F17A5D',
DEFAULT: '#F17A5D',
},
caramel: {
light: '#EAD6CE',
DEFAULT: '#EAD6CE',
},
cream: {
light: '#FCE8DE',
DEFAULT: '#FCE8DE',
},

// accent
yellow: {
light: '#F8B03D',
DEFAULT: '#F8B03D',
},
green: {
light: '#34B4A1',
DEFAULT: '#34B4A1',
},
purple: {
light: '#9473B0',
DEFAULT: '#9473B0',
},
pink: {
light: '#DD9BC7',
DEFAULT: '#DD9BC7',
},
blue: {
light: '#79CDE0',
DEFAULT: '#79CDE0',
},
fake: "#C51D34",
// status
red: {
light: '#D75353',
DEFAULT: '#D75353',
},
error: {
light: '#D75353',
DEFAULT: '#D75353',
},
success: {
light: '#33BC8B',
DEFAULT: '#33BC8B',
},
warning: {
light: '#F8B03D',
DEFAULT: '#F8B03D',
},
neutral: {
light: '#538AD4',
DEFAULT: '#538AD4',
},

// grey scale
black: '#0E1116',
white: '#FAF5F3',
grey: {
900: '#1A1C21',
700: '#494A4D',
500: '#848384',
250: '#BFBCBC',
100: '#E2DEDD',
50: '#EEEAE8',
},
milk: '#FAF5F3',
},
colors,
extend: {
animation: {
"marquee-slow": "marquee 60s linear infinite",
Expand Down

0 comments on commit 9105e6a

Please sign in to comment.