Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unused theme variables #621

Merged
merged 3 commits into from
Jan 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 7 additions & 31 deletions packages/curve-ui-kit/src/themes/design/2_theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Blues, Grays, Greens, Reds, Violet, TransitionFunction } from './0_primitives'
import { Blues, Grays, Greens, Reds, TransitionFunction, Violet } from './0_primitives'
import { SurfacesAndText } from './1_surfaces_text'

const { plain, inverted } = SurfacesAndText
Expand Down Expand Up @@ -148,13 +148,6 @@ export const createLightDesign = (Light: typeof plain.Light | typeof inverted.Li
},
} as const

const Feedback = {
Success: Greens[300],
Info: Layer[3].Fill,
Warning: Reds[400],
Error: Reds[500],
} as const

const Tabs = {
Transition,
UnderLined: {
Expand Down Expand Up @@ -246,7 +239,7 @@ export const createLightDesign = (Light: typeof plain.Light | typeof inverted.Li
Default: Grays[400],
Active: Light.Text.highlight,
Filled: Grays[850],
Error: Feedback.Error,
Error: Reds[500],
},
},
Nested: {
Expand All @@ -256,7 +249,7 @@ export const createLightDesign = (Light: typeof plain.Light | typeof inverted.Li
Default: Grays[400],
Active: Light.Text.highlight,
Filled: Grays[850],
Error: Feedback.Error,
Error: Reds[500],
},
},
},
Expand Down Expand Up @@ -285,7 +278,6 @@ export const createLightDesign = (Light: typeof plain.Light | typeof inverted.Li
Color,
Text,
Button,
Feedback,
Layer,
Tabs,
Chips,
Expand Down Expand Up @@ -493,13 +485,6 @@ export const createDarkDesign = (Dark: typeof plain.Dark | typeof inverted.Dark)
},
} as const

const Feedback = {
Success: Greens[400],
Info: Layer[3].Fill,
Warning: Reds[300],
Error: Reds[500],
} as const

const Tabs = {
Transition,
UnderLined: {
Expand Down Expand Up @@ -589,7 +574,7 @@ export const createDarkDesign = (Dark: typeof plain.Dark | typeof inverted.Dark)
Default: color[600],
Active: Dark.Text.highlight,
Filled: color[75],
Error: Feedback.Error,
Error: Reds[500],
},
},
Nested: {
Expand All @@ -599,7 +584,7 @@ export const createDarkDesign = (Dark: typeof plain.Dark | typeof inverted.Dark)
Default: color[600],
Active: Dark.Text.highlight,
Filled: color[75],
Error: Feedback.Error,
Error: Reds[500],
},
},
},
Expand Down Expand Up @@ -628,7 +613,6 @@ export const createDarkDesign = (Dark: typeof plain.Dark | typeof inverted.Dark)
Color,
Text,
Button,
Feedback,
Layer,
Tabs,
Chips,
Expand Down Expand Up @@ -779,13 +763,6 @@ export const createChadDesign = (Chad: typeof plain.Chad | typeof inverted.Chad)
},
} as const

const Feedback = {
Success: Greens[400],
Info: Layer[3].Fill,
Warning: Reds[400],
Error: Reds[500],
} as const

const Tabs = {
Transition,
UnderLined: {
Expand Down Expand Up @@ -877,7 +854,7 @@ export const createChadDesign = (Chad: typeof plain.Chad | typeof inverted.Chad)
Default: Violet[200],
Active: Chad.Text.highlight,
Filled: Violet[400],
Error: Feedback.Error,
Error: Reds[500],
},
},
Nested: {
Expand All @@ -887,7 +864,7 @@ export const createChadDesign = (Chad: typeof plain.Chad | typeof inverted.Chad)
Default: Violet[200],
Active: Chad.Text.highlight,
Filled: Violet[400],
Error: Feedback.Error,
Error: Reds[500],
},
},
},
Expand Down Expand Up @@ -916,7 +893,6 @@ export const createChadDesign = (Chad: typeof plain.Chad | typeof inverted.Chad)
Color,
Text,
Button,
Feedback,
Layer,
Tabs,
Chips,
Expand Down
Loading