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

feat(theme names): short css theme names initial changes #2122

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

ehxxn
Copy link
Member

@ehxxn ehxxn commented Jan 21, 2024

No description provided.

Copy link

vercel bot commented Jan 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 8, 2024 7:33am
studio 🔄 Building (Inspect) Visit Preview Feb 8, 2024 7:33am

@ehxxn ehxxn changed the title feat(short css): initial changes feat(short css theme names): initial changes Jan 21, 2024
@ehxxn ehxxn changed the title feat(short css theme names): initial changes feat(theme names): short css theme names initial changes Jan 21, 2024
@@ -211,11 +211,18 @@ const monoFont = createGenericFont(
}
)

let themeKeysOnly = Object.fromEntries(
Object.entries(themesIn).map(([key], index) => [key, index])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just use the index of the array and just use Object.keys()?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh i see its for type compat

const noThemes = areThemesJustNames
? false
: Object.keys(configIn.themes).length === 0
const noThemes = areThemesJustNames ? true : Object.keys(configIn.themes).length === 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How hard is backward compat?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be backward compat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants