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

Add accentColor to css properties #2472

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Conversation

jhbell
Copy link
Contributor

@jhbell jhbell commented Jan 2, 2024

Summary of Changes

This PR adds accentColor to the list of theme-supported properties under the color space. This way, the chose accent-color can be set using a color from the theme.

The Problem

Today, setting the accent color to a key in the theme does not pull the corresponding value from the theme. Our team ran into this issue recently trying to set the accent color for a checkbox element.

i.e. accentColor: 'primary' -> accentColor: 'primary'

Expected Behavior

accentColor: 'primary' -> accentColor: 'tomato' ('tomato' would be the value in the theme in this example)

Version

Published prerelease version: v0.16.2-develop.2

Changelog

🎉 This release contains work from new contributors! 🎉

Thanks for all your work!

❤️ Jeff Bell (@jhbell)

❤️ Paweł Kowalewski (@pawkow)

🐛 Bug Fix

🏠 Internal

Authors: 2

Copy link

vercel bot commented Jan 2, 2024

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

Name Status Preview Comments Updated (UTC)
theme-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 4:51pm

Copy link

codesandbox-ci bot commented Jan 2, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a797834:

Sandbox Source
next-theme-ui-example Configuration
gatsby-plugin-theme-ui-example Configuration

Copy link
Member

@lachlanjc lachlanjc left a comment

Choose a reason for hiding this comment

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

Omg, sorry we didn't have that yet! Thanks for the thorough PR.

@hasparus hasparus merged commit b55b6b5 into system-ui:develop Jan 5, 2024
8 checks passed
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

3 participants