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: visually editable site theme #1614

Conversation

agurtovoy
Copy link

Kapture.2024-11-10.at.23.24.02.mp4

Copy link

linear bot commented Nov 11, 2024

Copy link

changeset-bot bot commented Nov 11, 2024

⚠️ No Changeset found

Latest commit: 698c6cb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Nov 11, 2024

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

Name Status Preview Comments Updated (UTC)
catalyst 🔄 Building (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 6:05am
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 6:05am
catalyst-soul ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 6:05am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 6:05am
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 6:05am
catalyst-unstable ⬜️ Ignored (Inspect) Visit Preview Nov 11, 2024 6:05am

@agurtovoy agurtovoy changed the base branch from main to vibes/soul-with-makeswift November 11, 2024 05:40
@agurtovoy agurtovoy changed the title Aleksey/vib 851 add theme embedded component for tailwind colors feat: visually editable site theme Nov 11, 2024
<NextIntlClientProvider locale={locale} messages={messages}>
<NuqsAdapter>
<MakeswiftProvider previewMode={draftMode().isEnabled}>
<MakeswiftProvider previewMode={draftMode().isEnabled}>
Copy link
Author

Choose a reason for hiding this comment

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

Moved up <MakeswiftProvider> so that it wraps the whole document, including <head> where <CssTheme> is injecting the styles.

--contrast-200: 0 0% 82%;
--contrast-300: 0 0% 70%;
--contrast-400: 0 0% 54%;
--contrast-500: 0 0% 34%;
Copy link
Author

@agurtovoy agurtovoy Nov 11, 2024

Choose a reason for hiding this comment

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

Moved out of CSS to a Typescript file so we can reuse these values in theme component registration to provide props with default values.

Choose a reason for hiding this comment

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

I'm wondering if there's a better way than deleting things for when we need to separate Makeswift related integration code from main. Ideally we don't have to delete anything from the base repo, just add Makeswift related code. Maybe that's wishful thinking.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is a good goal and we can accomplish it by overriding these values with Makeswift CSS variables further down. That being said, sometimes conflicts are good as we would want to know when this list changes to that we can do the equivalent change on integrations/makeswift.

fikrikarim
fikrikarim previously approved these changes Nov 11, 2024
@agurtovoy agurtovoy force-pushed the aleksey/vib-851-add-theme-embedded-component-for-tailwind-colors branch from e73a2e5 to 698c6cb Compare November 11, 2024 05:59
--contrast-200: 0 0% 82%;
--contrast-300: 0 0% 70%;
--contrast-400: 0 0% 54%;
--contrast-500: 0 0% 34%;

Choose a reason for hiding this comment

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

I'm wondering if there's a better way than deleting things for when we need to separate Makeswift related integration code from main. Ideally we don't have to delete anything from the base repo, just add Makeswift related code. Maybe that's wishful thinking.

@apledger apledger merged commit 1fef0b7 into vibes/soul-with-makeswift Nov 11, 2024
9 checks passed
@apledger apledger deleted the aleksey/vib-851-add-theme-embedded-component-for-tailwind-colors branch November 11, 2024 06:12
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.

4 participants