-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Changing font & color - Exploring presetWebFonts preset #159
Comments
If I can help you just ping me. |
oh, So nice of you 🙏🏻 Sure, I will let you know 😇 |
Hey @sandros94 Thanks for your patience and reporting the issue. Anu now no longer handles the font-family customization, Instead we now allow using From the next release (now on, if you are using edge releases) you will be able to customize the fonts via web fonts UnoCSS preset. For color, We now have CSS variable for each theme so that can you can have different color for each theme: https://github.com/jd-solanki/anu/blob/main/packages/anu-vue/src/plugin.ts#L39 Please let me know your thoughts on this. |
I'll checkout the edge release as soon as I get back home/office. The changes look perfect already |
In the end its quite late here and I'll check it out tomorrow. But while thinking about it I've come to notice that I don't have a clear understanding on how to change the color (or add a new one) only using |
EDITjust read your last comment on the other issue:
I was creating a test branch to test this, under the same branch for #155. But then I got distracted on new info for that issue. Anyway, here is the new test branch, and I need your help to understand how to use Anu with As you can see in that branch I still need to specify the changes as css: <style>
body {
color: hsla(var(--a-base-c), 1.0);
@apply bg-white dark:bg-#101010 font-sans;
}
h1, h2, h3, h4, h5, h6 {
color: inherit;
@apply font-sans;
}
</style> even though I do have the export default defineConfig({
[...]
presets: [
[...]
presetWebFonts({
fonts: {
sans: 'Jost:100,200,300,400,500,600,700,800,900',
mono: ['Fira Code:400,500,600,700', 'Fira Mono:400,500,600,700']
},
}),
[...]
}) while for the color configuration of the Anu theme, as I said in the last comment, I really didn't understand how to do it in the I would like to understand these a bit more, so that I could potentially improve the Anu documentation, especially for newcomers like me that don't have all that experience (yet). P.S.: I did try out the |
Hi, I have made a new release. Can you please give it a try? |
I've tested v0.14.0 and indeed it picks up the Another thing that is still not clear to me on how to customize my presetAnu: One last thing:
|
You mean you still have to write
I'm willing to add docs for this. If you have something to ask regarding this, let's discuss this in discord thread.
🤔 Strange, I'll look into this |
Yes, and indeed this is the case: on a fresh unocss install (without anu) I have to specify the font-family (even for sans).
Sounds good, later I'll open the discussion there. |
Can you please raise issue on uno repo and reference here for tracking? |
it has been a busy day, doing it now. |
Hi @sandros94 Apart from mentioned issue. I think everything is resolved now from Anu's side, Am I right? |
I would say yes. We'll see how it goes there from this point on. |
@jd-solanki following the reply we got there I would close this issue as fully completed now. |
@sandros94 Yes, Let's close this. |
Discussed in #158
Originally posted by Sandros94 April 11, 2023
I noticed that the scss from the presetThemeDefault applies the
Inter
font:anu/packages/preset-theme-default/src/scss/index.scss
Lines 9 to 11 in d1e14de
anu/packages/preset-theme-default/src/scss/index.scss
Lines 89 to 107 in d1e14de
Can I change it from
uno.config.ts
or should I just overwrite the body and heading styles?The text was updated successfully, but these errors were encountered: