Skip to content

Commit e746d3d

Browse files
feat(ds): update design system (#33)
1 parent 6608f90 commit e746d3d

File tree

25 files changed

+292
-181
lines changed

25 files changed

+292
-181
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Home from './pages/home/Home.tsx';
2-
import { StylesProvider } from './styles/styles.provider.tsx';
2+
import { StylesProvider } from 'providers/StylesProvider.tsx';
33

44
function App() {
55
return (

src/components/CloseIcon/InfoIcon.styled.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { css } from '@emotion/react';
44
export const Closed = styled.svg(
55
({ theme }) => css`
66
cursor: pointer;
7-
fill: ${theme.custom.colors.onContainerNormal};
7+
fill: ${theme.custom.colors.onContainer.normal};
88
99
&:hover {
10-
fill: ${theme.custom.colors.text};
10+
fill: ${theme.custom.colors.onContainer.contrast};
1111
}
1212
`
1313
);

src/components/InfoIcon/InfoIcon.styled.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export const Info = styled.svg(
77
top: 4px;
88
right: 4px;
99
cursor: pointer;
10-
fill: ${theme.custom.colors.onContainerNormal};
10+
fill: ${theme.custom.colors.onContainer.normal};
1111
1212
&:hover {
13-
fill: ${theme.custom.colors.text};
13+
fill: ${theme.custom.colors.onContainer.contrast};
1414
}
1515
`
1616
);

src/components/MoonIcon/MoonIcon.styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { css } from '@emotion/react';
44
export const Sun = styled.svg(
55
({ theme }) => css`
66
cursor: pointer;
7-
fill: ${theme.custom.colors.text};
7+
fill: ${theme.custom.colors.onContainer.contrast};
88
`
99
);

src/components/MoonIcon/MoonIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function MoonIcon({
99
onClick: () => void;
1010
}) {
1111
const theme = useTheme();
12-
const textColor = theme.custom.colors.text;
12+
const textColor = theme.custom.colors.onContainer.contrast;
1313

1414
return (
1515
<Styled.Sun

src/components/SunIcon/SunIcon.styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { css } from '@emotion/react';
44
export const Sun = styled.svg(
55
({ theme }) => css`
66
cursor: pointer;
7-
fill: ${theme.custom.colors.text};
7+
fill: ${theme.custom.colors.onContainer.contrast};
88
`
99
);

src/components/SunIcon/SunIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function SunIcon({
99
onClick: () => void;
1010
}) {
1111
const theme = useTheme();
12-
const textColor = theme.custom.colors.text;
12+
const textColor = theme.custom.colors.onContainer.contrast;
1313

1414
return (
1515
<Styled.Sun

src/emotion.d.ts

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import '@emotion/react';
33
declare module '@emotion/react' {
44
export interface Theme {
55
custom: {
6+
mode: 'light' | 'dark';
67
breakpoints: {
78
desktop: number;
89
};
@@ -14,26 +15,16 @@ declare module '@emotion/react' {
1415
};
1516
colors: {
1617
background: string;
18+
onBackground: string;
1719
container: string;
18-
onContainerNormal: string;
19-
onContainerContrast: string;
20-
text: string;
21-
22-
wheel: {
23-
background: string;
24-
microtask: {
25-
disabled: string;
26-
enabled: string;
27-
};
28-
macrotask: {
29-
disabled: string;
30-
enabled: string;
31-
};
32-
render: {
33-
disabled: string;
34-
enabled: string;
35-
};
20+
onContainer: {
21+
dim: string;
22+
normal: string;
23+
contrast: string;
3624
};
25+
primary: string;
26+
secondary: string;
27+
tertiary: string;
3728
};
3829
};
3930
}

src/pages/home/Home.styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const NarrowColumn = styled.div(
5959

6060
export const BaseLayoutElement = styled.div(
6161
({ theme }) => css`
62-
border: 1px solid ${theme.custom.colors.wheel.background};
62+
border: 1px solid ${theme.custom.colors.onContainer.dim};
6363
background: ${theme.custom.colors.container};
6464
margin: 0;
6565
padding: 10px;

src/pages/home/sections/Callstack/Callstack.styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const Callstack = styled.div`
1212

1313
export const CallstackElement = styled.div(
1414
({ theme }) => css`
15-
background: ${theme.custom.colors.onContainerNormal};
15+
background: ${theme.custom.colors.onContainer.dim};
1616
border-radius: 5px;
1717
padding: 10px;
1818
word-wrap: break-word;

0 commit comments

Comments
 (0)