Skip to content

Commit

Permalink
udpates version and some theme stuff for drodown and toast
Browse files Browse the repository at this point in the history
  • Loading branch information
skuhlmann committed Aug 25, 2023
1 parent dce8a92 commit 6830935
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 202 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"preview": "vite preview"
},
"dependencies": {
"@daohaus/connect": "^0.2.0",
"@daohaus/contract-utils": "^0.2.0",
"@daohaus/form-builder": "^0.2.0",
"@daohaus/moloch-v3-fields": "^0.2.0",
"@daohaus/moloch-v3-hooks": "^0.2.0",
"@daohaus/moloch-v3-legos": "^0.2.0",
"@daohaus/moloch-v3-macro-ui": "^0.2.0",
"@daohaus/tx-builder": "^0.2.0",
"@daohaus/ui": "^0.2.0",
"@daohaus/utils": "^0.2.0",
"@daohaus/connect": "^0.2.1",
"@daohaus/contract-utils": "^0.2.1",
"@daohaus/form-builder": "^0.2.1",
"@daohaus/moloch-v3-fields": "^0.2.1",
"@daohaus/moloch-v3-hooks": "^0.2.1",
"@daohaus/moloch-v3-legos": "^0.2.1",
"@daohaus/moloch-v3-macro-ui": "^0.2.1",
"@daohaus/tx-builder": "^0.2.1",
"@daohaus/ui": "^0.2.1",
"@daohaus/utils": "^0.2.1",
"react": "^18.2.0",
"react-confetti": "^6.1.0",
"react-dom": "^18.2.0",
Expand Down
106 changes: 69 additions & 37 deletions src/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import {
secondaryDarkBtn,
successDarkBtn,
warningDarkBtn,
} from '@daohaus/ui';
} from "@daohaus/ui";

export const invokeMono = {
step1: 'hsl(0, 0%, 100%)',
step2: 'hsl(0, 0%, 66%)',
step3: 'hsl(0, 0%, 22%)',
step4: 'hsl(0, 0%, 0%)',
step5: 'rgba(255, 0, 0, 0)',
step1: "hsl(0, 0%, 100%)",
step2: "hsl(0, 0%, 66%)",
step3: "hsl(0, 0%, 22%)",
step4: "hsl(0, 0%, 0%)",
step5: "rgba(255, 0, 0, 0)",
};

export const invokePrimaryBtn = {
Expand Down Expand Up @@ -62,11 +62,11 @@ const invokeFontFamily = {
};

export const invokeTheme: ThemeOverrides = {
themeName: 'invoke',
rootBgColor: 'rgba(0,0,0,0.5)',
themeName: "invoke",
rootBgColor: "rgba(0,0,0,0.5)",
rootFontColor: invokeMono.step1,
border: {
radius: '1px',
radius: "1px",
},
collapser: {
iconColor: invokeMono.step2,
Expand All @@ -75,14 +75,14 @@ export const invokeTheme: ThemeOverrides = {
font: {
family: invokeFontFamily,
size: {
xs: '1.2rem',
sm: '1.4rem',
md: '1.6rem',
lg: '2rem',
xl: '2.4rem',
xxl: '3.2rem',
xxxl: '4rem',
xxxxl: '4.8rem',
xs: "1.2rem",
sm: "1.4rem",
md: "1.6rem",
lg: "2rem",
xl: "2.4rem",
xxl: "3.2rem",
xxxl: "4rem",
xxxxl: "4.8rem",
},
weight: {
extraLight: 200,
Expand All @@ -92,12 +92,12 @@ export const invokeTheme: ThemeOverrides = {
bold: 700,
black: 900,
},
lineHeight: '150%',
letterSpacing: '1.5px',
lineHeight: "150%",
letterSpacing: "1.5px",
},
field: {
...defaultDarkTheme.field,
radius: '4px',
radius: "4px",
inputFont: invokeFontFamily.data,
labelFont: invokeFontFamily.header,
},
Expand All @@ -107,12 +107,12 @@ export const invokeTheme: ThemeOverrides = {
success: successDarkBtn,
warning: warningDarkBtn,
danger: dangerDarkBtn,
radius: '4px',
radius: "4px",
},
card: {
bg: invokeMono.step4,
border: invokeMono.step1,
radius: '8px',
radius: "8px",
},
input: {
...defaultDarkTheme.input,
Expand All @@ -128,19 +128,51 @@ export const invokeTheme: ThemeOverrides = {
border: invokeMono.step1,
},
},
// dropdown: {
// content: {
// primary: {
// bg: invokeMono.step3,
// },
// },
// },
// toast: {
// bg: invokeMono.step3,
// border: invokeMono.step5,
// success: {
// bg: invokeMono.step3,
// border: invokeMono.step5,
// },
// },
dropdown: {
...defaultDarkTheme.dropdown,
content: {
primary: {
bg: invokeMono.step3,
},
secondary: {
bg: invokeMono.step3,
},
},
item: {
primary: {
bg: "transparent",
},
secondary: {
bg: invokeMono.step3,
},
focus: {
primary: {
bg: "transparent",
},
secondary: {
bg: "transparent",
},
},
highlight: {
primary: {
bg: invokeMono.step4,
},
secondary: {
bg: invokeMono.step4,
},
},
disabled: {
color: invokeMono.step3,
},
},
},
toast: {
...defaultDarkTheme.dropdown,
bg: invokeMono.step3,
border: invokeMono.step5,
success: {
bg: invokeMono.step3,
border: invokeMono.step5,
},
},
};
Loading

0 comments on commit 6830935

Please sign in to comment.