Skip to content

Commit

Permalink
update colors (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thykof authored May 4, 2023
1 parent 134217e commit 583bbfb
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 11 deletions.
55 changes: 45 additions & 10 deletions presets/massa-station-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { createThemes } = require("tw-colors");

const colorBrand = "#1AE19D";
const colorGreen = "#1AE19D";
const colorWhite = "#FFFFFF";
const colorDarkGrey = "#DADADA";
const colorLightGrey = "#F1F1F1";
const colorDarkBlue = "#151A26";
const colorBasicBlue = "#1A202E";
const colorLightBlue = "#2E374C";
const colorError = "#FF4F4F";
const colorWarning = "#FFA41D";

/** @type {import('tailwindcss').Config} */
import plugin from "tailwindcss/plugin";
Expand All @@ -19,11 +21,6 @@ module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
extend: {
backgroundImage: {
"landing-page": "url('./src/assets/bg-image-landing-page.svg')",
},
},
fontFamily: {
Urbane: ["Urbane", "sans-serif"],
Poppins: ["Poppins", "sans-serif"],
Expand All @@ -35,19 +32,57 @@ module.exports = {
primary: colorWhite,
secondary: colorLightGrey,
tertiary: colorDarkGrey,
brand: colorBrand,
brand: colorGreen,
neutral: colorDarkBlue,
info: colorLightBlue,
success: colorBrand,
// states:
"s-success": colorGreen,
"s-error": colorError,
"-warning": colorWarning,
"s-info": colorDarkGrey,
// components:
"c-default": colorDarkBlue,
"c-hover": colorBasicBlue,
"c-pressed": colorLightBlue,
"c-disabled-1": colorDarkGrey,
"c-disabled-2": colorLightGrey,
// icons:
"i-primary": colorDarkBlue,
"i-secondary": colorWhite,
"i-tertiary": colorGreen,
// fonts:
"f-primary": colorDarkBlue,
"f-secondary": colorWhite,
"f-tertiary": colorGreen,
"f-disabled": colorDarkGrey,
},
dark: {
primary: colorDarkBlue,
secondary: colorBasicBlue,
tertiary: colorLightBlue,
brand: colorBrand,
brand: colorGreen,
neutral: colorWhite,
info: colorDarkGrey,
success: colorBrand,
// states:
"s-success": colorGreen,
"s-error": colorError,
"-warning": colorWarning,
"s-info": colorDarkGrey,
// components:
"c-default": colorWhite,
"c-hover": colorLightGrey,
"c-pressed": colorDarkGrey,
"c-disabled-1": colorDarkGrey,
"c-disabled-2": colorLightGrey,
// icons:
"i-primary": colorWhite,
"i-secondary": colorDarkBlue,
"i-tertiary": colorGreen,
// fonts:
"f-primary": colorWhite,
"f-secondary": colorDarkBlue,
"f-tertiary": colorGreen,
"f-disabled": colorDarkGrey,
},
}),
plugin(function ({ addComponents, theme }) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default { title: "Icons", component: FiSun };
export const _Icons = {
render: () => (
<div data-testid="fi-sun">
<FiSun className="text-brand" />
<FiSun className="text-i-tertiary" />
</div>
),
};

0 comments on commit 583bbfb

Please sign in to comment.